Skip to content

Commit

Permalink
feat: update from v1 to v0 and refactor it's use
Browse files Browse the repository at this point in the history
  • Loading branch information
sourabhxyz committed Mar 8, 2024
1 parent 370dbdd commit 46be1e9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
24 changes: 12 additions & 12 deletions web/swagger/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@
"version": "1.0"
},
"paths": {
"/v1/assets/{asset}": {
"/v0/assets/{asset}": {
"get": {
"description": "Get information for a specific asset.",
"parameters": [
Expand Down Expand Up @@ -392,7 +392,7 @@
]
}
},
"/v1/markets": {
"/v0/markets": {
"get": {
"description": "Returns the list of markets information supported by GeniusYield DEX.",
"produces": [
Expand All @@ -415,7 +415,7 @@
]
}
},
"/v1/orders/cancel": {
"/v0/orders/cancel": {
"post": {
"consumes": [
"application/json;charset=utf-8"
Expand Down Expand Up @@ -451,7 +451,7 @@
]
}
},
"/v1/orders/cancel/tx/generate": {
"/v0/orders/cancel/tx/generate": {
"post": {
"consumes": [
"application/json;charset=utf-8"
Expand Down Expand Up @@ -487,7 +487,7 @@
]
}
},
"/v1/orders/open": {
"/v0/orders/open": {
"post": {
"consumes": [
"application/json;charset=utf-8"
Expand Down Expand Up @@ -523,7 +523,7 @@
]
}
},
"/v1/orders/open/tx/generate": {
"/v0/orders/open/tx/generate": {
"post": {
"consumes": [
"application/json;charset=utf-8"
Expand Down Expand Up @@ -559,7 +559,7 @@
]
}
},
"/v1/orders/{market_id}": {
"/v0/orders/{market_id}": {
"get": {
"description": "Get on-chain order(s)",
"parameters": [
Expand Down Expand Up @@ -597,7 +597,7 @@
]
}
},
"/v1/settings": {
"/v0/settings": {
"get": {
"description": "Get server settings such as network, version, and revision",
"produces": [
Expand All @@ -617,7 +617,7 @@
]
}
},
"/v1/trading_fees": {
"/v0/trading_fees": {
"get": {
"description": "Get trading fees of DEX.",
"produces": [
Expand All @@ -637,7 +637,7 @@
]
}
},
"/v1/tx/sign": {
"/v0/tx/sign": {
"post": {
"consumes": [
"application/json;charset=utf-8"
Expand Down Expand Up @@ -673,7 +673,7 @@
]
}
},
"/v1/tx/sign_and_submit": {
"/v0/tx/sign_and_submit": {
"post": {
"consumes": [
"application/json;charset=utf-8"
Expand Down Expand Up @@ -709,7 +709,7 @@
]
}
},
"/v1/tx/submit": {
"/v0/tx/submit": {
"post": {
"consumes": [
"application/json;charset=utf-8"
Expand Down
24 changes: 12 additions & 12 deletions web/swagger/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ info:
title: Genius Yield DEX Server API
version: '1.0'
paths:
/v1/assets/{asset}:
/v0/assets/{asset}:
get:
description: Get information for a specific asset.
parameters:
Expand All @@ -292,7 +292,7 @@ paths:
summary: Get assets information
tags:
- Assets
/v1/markets:
/v0/markets:
get:
description: Returns the list of markets information supported by GeniusYield
DEX.
Expand All @@ -308,7 +308,7 @@ paths:
summary: Get markets information for the DEX.
tags:
- Markets
/v1/orders/cancel:
/v0/orders/cancel:
post:
consumes:
- application/json;charset=utf-8
Expand All @@ -332,7 +332,7 @@ paths:
summary: Cancel order(s)
tags:
- Orders
/v1/orders/cancel/tx/generate:
/v0/orders/cancel/tx/generate:
post:
consumes:
- application/json;charset=utf-8
Expand All @@ -355,7 +355,7 @@ paths:
summary: Build transaction to cancel order(s)
tags:
- Orders
/v1/orders/open:
/v0/orders/open:
post:
consumes:
- application/json;charset=utf-8
Expand All @@ -379,7 +379,7 @@ paths:
summary: Create an order
tags:
- Orders
/v1/orders/open/tx/generate:
/v0/orders/open/tx/generate:
post:
consumes:
- application/json;charset=utf-8
Expand All @@ -402,7 +402,7 @@ paths:
summary: Build transaction to create order
tags:
- Orders
/v1/orders/{market_id}:
/v0/orders/{market_id}:
get:
description: Get on-chain order(s)
parameters:
Expand All @@ -427,7 +427,7 @@ paths:
summary: Get order(s)
tags:
- Orders
/v1/settings:
/v0/settings:
get:
description: Get server settings such as network, version, and revision
produces:
Expand All @@ -440,7 +440,7 @@ paths:
summary: Server settings
tags:
- Settings
/v1/trading_fees:
/v0/trading_fees:
get:
description: Get trading fees of DEX.
produces:
Expand All @@ -453,7 +453,7 @@ paths:
summary: Trading fees
tags:
- Trading Fees
/v1/tx/sign:
/v0/tx/sign:
post:
consumes:
- application/json;charset=utf-8
Expand All @@ -476,7 +476,7 @@ paths:
summary: Sign a transaction
tags:
- Transaction
/v1/tx/sign_and_submit:
/v0/tx/sign_and_submit:
post:
consumes:
- application/json;charset=utf-8
Expand All @@ -500,7 +500,7 @@ paths:
summary: Sign and submit a transaction
tags:
- Transaction
/v1/tx/submit:
/v0/tx/submit:
post:
consumes:
- application/json;charset=utf-8
Expand Down

0 comments on commit 46be1e9

Please sign in to comment.