diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-08-08 04:36:59 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-08-08 04:36:59 +0800 |
commit | 3b542bf356f14e7bfd5bbd740d2df55ff64e1309 (patch) | |
tree | 6f7934e2ab7526b2ee63f69ed179167855a64cfd | |
parent | be472b61e776ea44a872b54742af8664660aa27c (diff) | |
download | dexon-0x-contracts-3b542bf356f14e7bfd5bbd740d2df55ff64e1309.tar.gz dexon-0x-contracts-3b542bf356f14e7bfd5bbd740d2df55ff64e1309.tar.zst dexon-0x-contracts-3b542bf356f14e7bfd5bbd740d2df55ff64e1309.zip |
Add static site build
-rw-r--r-- | packages/sra-api/.npmignore | 1 | ||||
-rw-r--r-- | packages/sra-api/package.json | 1 | ||||
-rw-r--r-- | packages/sra-api/src/api.ts | 5 |
3 files changed, 3 insertions, 4 deletions
diff --git a/packages/sra-api/.npmignore b/packages/sra-api/.npmignore index 3a1d6805e..e610180ad 100644 --- a/packages/sra-api/.npmignore +++ b/packages/sra-api/.npmignore @@ -5,3 +5,4 @@ yarn-error.log test/ tsconfig.json /lib/src/monorepo_scripts/ +/public/
\ No newline at end of file diff --git a/packages/sra-api/package.json b/packages/sra-api/package.json index 9a0ab4971..b7bcd588b 100644 --- a/packages/sra-api/package.json +++ b/packages/sra-api/package.json @@ -19,6 +19,7 @@ "run_mocha": "mocha lib/test/**/*_test.js --exit", "clean": "shx rm -rf lib", "build": "tsc && yarn build-json", + "build-site": "yarn build-json && redoc-cli bundle lib/api.json --output public/index.html", "build-json": "ts-node scripts/buildJson.ts", "build-json:watch": "chokidar 'src/**/*' -c 'yarn build-json' " }, diff --git a/packages/sra-api/src/api.ts b/packages/sra-api/src/api.ts index da61cb1b0..762d3f4d6 100644 --- a/packages/sra-api/src/api.ts +++ b/packages/sra-api/src/api.ts @@ -19,11 +19,8 @@ export const api: OpenApiSpec = { url: 'https://www.apache.org/licenses/LICENSE-2.0.html', }, }, - servers: [ - // TODO: Use relayer registry information here? - ], paths: { - '/asset_pairs': { + '/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.', |