Added GET /orgs/:orgId/accounts/:accountI API endpoint

This commit is contained in:
Tarcisio Gruppi
2019-03-27 01:49:26 -03:00
parent 3ab14b2d99
commit cbb10098d3
14 changed files with 173 additions and 71 deletions

View File

@@ -11,12 +11,12 @@ import (
/**
* @api {get} /org/:orgId/prices Get prices nearest in time or by currency
* @apiVersion 1.1.0
* @apiVersion 1.2.0
* @apiName GetPrices
* @apiGroup Price
*
* @apiHeader {String} Authorization HTTP Basic Auth
* @apiHeader {String} Accept-Version ^1.1.0 semver versioning
* @apiHeader {String} Accept-Version ^1.2.0 semver versioning
*
* @apiParam {Number} nearestDate Milliseconds since epoch
* @apiParam {String} currency Currency code
@@ -93,12 +93,12 @@ func GetPrices(w rest.ResponseWriter, r *rest.Request) {
/**
* @api {post} /orgs/:orgId/prices Create a new Price
* @apiVersion 1.1.0
* @apiVersion 1.2.0
* @apiName PostPrice
* @apiGroup Price
*
* @apiHeader {String} Authorization HTTP Basic Auth
* @apiHeader {String} Accept-Version ^1.1.0 semver versioning
* @apiHeader {String} Accept-Version ^1.2.0 semver versioning
*
* @apiParam {String} id Id 32 character hex string.
* @apiParam {String} orgId Id of the Org.
@@ -155,12 +155,12 @@ func PostPrice(w rest.ResponseWriter, r *rest.Request) {
/**
* @api {delete} /orgs/:orgId/prices/:priceId Delete a Price
* @apiVersion 1.1.0
* @apiVersion 1.2.0
* @apiName DeletePrice
* @apiGroup Price
*
* @apiHeader {String} Authorization HTTP Basic Auth
* @apiHeader {String} Accept-Version ^1.1.0 semver versioning
* @apiHeader {String} Accept-Version ^1.2.0 semver versioning
*
* @apiSuccessExample Success-Response:
* HTTP/1.1 200 OK