format code

This commit is contained in:
Patrick Nagurny
2020-01-14 14:29:00 -05:00
parent 83f3cfc983
commit f2877230e2
7 changed files with 267 additions and 267 deletions

View File

@@ -54,39 +54,39 @@ func GetOrg(w rest.ResponseWriter, r *rest.Request) {
} }
/** /**
* @api {get} /orgs Get a User's Orgs * @api {get} /orgs Get a User's Orgs
* @apiVersion 1.4.0 * @apiVersion 1.4.0
* @apiName GetOrgs * @apiName GetOrgs
* @apiGroup Org * @apiGroup Org
* *
* @apiHeader {String} Authorization HTTP Basic Auth * @apiHeader {String} Authorization HTTP Basic Auth
* @apiHeader {String} Accept-Version ^1.4.0 semver versioning * @apiHeader {String} Accept-Version ^1.4.0 semver versioning
* *
* @apiSuccess {String} id Id of the Org. * @apiSuccess {String} id Id of the Org.
* @apiSuccess {Date} inserted Date Org was created * @apiSuccess {Date} inserted Date Org was created
* @apiSuccess {Date} updated Date Org was updated * @apiSuccess {Date} updated Date Org was updated
* @apiSuccess {String} name Name of the Org. * @apiSuccess {String} name Name of the Org.
* @apiSuccess {String} currency Three letter currency code. * @apiSuccess {String} currency Three letter currency code.
* @apiSuccess {Number} precision How many digits the currency goes out to. * @apiSuccess {Number} precision How many digits the currency goes out to.
@apiSuccess {String} timezone Timezone to use for accounting. @apiSuccess {String} timezone Timezone to use for accounting.
* *
* @apiSuccessExample Success-Response: * @apiSuccessExample Success-Response:
* HTTP/1.1 200 OK * HTTP/1.1 200 OK
* [ * [
* { * {
* "id": "11111111111111111111111111111111", * "id": "11111111111111111111111111111111",
* "inserted": "2018-09-11T18:05:04.420Z", * "inserted": "2018-09-11T18:05:04.420Z",
* "updated": "2018-09-11T18:05:04.420Z", * "updated": "2018-09-11T18:05:04.420Z",
* "name": "MyOrg", * "name": "MyOrg",
* "currency": "USD", * "currency": "USD",
* "precision": 2, * "precision": 2,
* "timezone": "America/New_York" * "timezone": "America/New_York"
* } * }
* ] * ]
* *
* @apiUse NotAuthorizedError * @apiUse NotAuthorizedError
* @apiUse InternalServerError * @apiUse InternalServerError
*/ */
func GetOrgs(w rest.ResponseWriter, r *rest.Request) { func GetOrgs(w rest.ResponseWriter, r *rest.Request) {
user := r.Env["USER"].(*types.User) user := r.Env["USER"].(*types.User)