diff options
author | Francesco Agosti <francesco.agosti93@gmail.com> | 2018-08-14 06:12:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-14 06:12:01 +0800 |
commit | 0025c6640b3a5840bacfb4ab5f6e937fc9af8eff (patch) | |
tree | 7419eeab7eb49fb3769125d705f8022d66be7fb9 /packages/sra-api/src/api.ts | |
parent | 25a8554be1550e00fba023fd56a3a6e181888e81 (diff) | |
parent | 5ef84d61fa2f13986281ee9b77b992bdaff69781 (diff) | |
download | dexon-sol-tools-0025c6640b3a5840bacfb4ab5f6e937fc9af8eff.tar dexon-sol-tools-0025c6640b3a5840bacfb4ab5f6e937fc9af8eff.tar.gz dexon-sol-tools-0025c6640b3a5840bacfb4ab5f6e937fc9af8eff.tar.bz2 dexon-sol-tools-0025c6640b3a5840bacfb4ab5f6e937fc9af8eff.tar.lz dexon-sol-tools-0025c6640b3a5840bacfb4ab5f6e937fc9af8eff.tar.xz dexon-sol-tools-0025c6640b3a5840bacfb4ab5f6e937fc9af8eff.tar.zst dexon-sol-tools-0025c6640b3a5840bacfb4ab5f6e937fc9af8eff.zip |
Merge pull request #958 from 0xProject/feature/sra-api/camel-case-everything
[sra-api] Enforce camelCase for all parameters and other changes.
Diffstat (limited to 'packages/sra-api/src/api.ts')
-rw-r--r-- | packages/sra-api/src/api.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/sra-api/src/api.ts b/packages/sra-api/src/api.ts index c2236fda5..4143a663c 100644 --- a/packages/sra-api/src/api.ts +++ b/packages/sra-api/src/api.ts @@ -21,12 +21,12 @@ export const api: OpenApiSpec = { '/v2/asset_pairs': { get: { description: - 'Retrieves a list of available asset pairs and the information required to trade them (in any order). Setting only `asset_data_a` or `asset_data_b` returns pairs filtered by that asset only.', + 'Retrieves a list of available asset pairs and the information required to trade them (in any order). Setting only `assetDataA` or `assetDataB` returns pairs filtered by that asset only.', operationId: 'getAssetPairs', parameters: generateParameters( [ { - name: 'asset_data_a', + name: 'assetDataA', in: 'query', description: 'The assetData value for the first asset in the pair.', example: '0xf47261b04c32345ced77393b3530b1eed0f346429d', @@ -35,7 +35,7 @@ export const api: OpenApiSpec = { }, }, { - name: 'asset_data_b', + name: 'assetDataB', in: 'query', description: 'The assetData value for the second asset in the pair.', example: '0x0257179264389b814a946f3e92105513705ca6b990', @@ -205,7 +205,7 @@ export const api: OpenApiSpec = { }, '/v2/orderbook': { get: { - description: `Retrieves the orderbook for a given asset pair. This endpoint should be [paginated](#section/Pagination). Bids will be sorted in descending order by price, and asks will be sorted in ascending order by price. Within the price sorted orders, the orders are further sorted by _taker fee price_ which is defined as the **takerFee** divided by **takerTokenAmount**. After _taker fee price_, orders are to be sorted by expiration in ascending order. The way pagination works for this endpoint is that the **page** and **per_page** query params apply to both \`bids\` and \`asks\` collections, and if \`page\` * \`per_page\` > \`total\` for a certain collection, the \`records\` for that collection should just be empty. `, + description: `Retrieves the orderbook for a given asset pair. This endpoint should be [paginated](#section/Pagination). Bids will be sorted in descending order by price, and asks will be sorted in ascending order by price. Within the price sorted orders, the orders are further sorted by _taker fee price_ which is defined as the **takerFee** divided by **takerTokenAmount**. After _taker fee price_, orders are to be sorted by expiration in ascending order. The way pagination works for this endpoint is that the **page** and **perPage** query params apply to both \`bids\` and \`asks\` collections, and if \`page\` * \`perPage\` > \`total\` for a certain collection, the \`records\` for that collection should just be empty. `, operationId: 'getOrderbook', parameters: generateParameters( [ |