aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sra-api/src/parameters.ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-08-08 08:58:38 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-08-08 08:58:38 +0800
commit4e30bc3e16d7e0e8876fab09a61e9446c2c9d93f (patch)
tree19fd0e5a8f86f0cd262c6e359fba90d224c8f1f5 /packages/sra-api/src/parameters.ts
parent95b656f360f635447725e00bb90642f1b859477a (diff)
downloaddexon-sol-tools-4e30bc3e16d7e0e8876fab09a61e9446c2c9d93f.tar.gz
dexon-sol-tools-4e30bc3e16d7e0e8876fab09a61e9446c2c9d93f.tar.zst
dexon-sol-tools-4e30bc3e16d7e0e8876fab09a61e9446c2c9d93f.zip
Add POST order endpoint
Diffstat (limited to 'packages/sra-api/src/parameters.ts')
-rw-r--r--packages/sra-api/src/parameters.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/sra-api/src/parameters.ts b/packages/sra-api/src/parameters.ts
index dac898931..bfa261df0 100644
--- a/packages/sra-api/src/parameters.ts
+++ b/packages/sra-api/src/parameters.ts
@@ -20,7 +20,7 @@ export const paginationParameters: ParameterObject[] = [
},
];
-export const networkdIdParameter = {
+export const networkdIdParameter: ParameterObject = {
name: 'network_id',
in: 'query',
description: 'The id of the Ethereum network',
@@ -33,5 +33,5 @@ export const networkdIdParameter = {
export const generateParameters = (parameters: ParameterObject[], isPaginated: boolean = false): ParameterObject[] => {
const optionalParameters = isPaginated ? paginationParameters : [];
- return [...optionalParameters, ...parameters];
+ return [networkdIdParameter, ...optionalParameters, ...parameters];
};