Skip to content

Commit

Permalink
Fixing REST API docs to include route changes (#3401)
Browse files Browse the repository at this point in the history
* fixing docs to reflect changes to endpoint and add more clarity

* language changes
  • Loading branch information
Defi-Moses authored Nov 19, 2024
1 parent 92ac80d commit fc48390
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
12 changes: 11 additions & 1 deletion docs/bridge/docs/02-Bridge/02-REST-API.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@ title: REST API

# REST API

Get read-only data from on-chain Synapse contracts, and generate Bridge and Swap quotes, plus additional transaction information.
The Synapse REST API is a read-only API that allows you to integrate the Synapse liquidity network into your application.

Through HTTP requests, developers can integrate Synapse cross-chain tokens and liquidity transfers dynamically into their applications. Developers can retrieve quotes, as well as generate the relevant call data for Synapse Bridges and Swaps. Example requests can be found below in the [API-docs](#api-docs) section.


The Synapse REST API is built on top of the [Synapse Bridge SDK](https://docs.synapseprotocol.com/docs/Bridge/SDK).


The API is available at [`https://api.synapseprotocol.com/`](https://api.synapseprotocol.com/).


## API-docs

Expand All @@ -17,6 +26,7 @@ Get read-only data from on-chain Synapse contracts, and generate Bridge and Swap
| Date | Description |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 2024‑10‑01 | [https://synapse-rest-api-v2.herokuapp.com/](https://synapse-rest-api-v2.herokuapp.com/) is no longer maintained and has been fully deprecated as of October 2024. |
| 2024‑11‑19 | [https://api.synapseprotocol.com/](https://api.synapseprotocol.com/) the /bridgeTxInfo endpoint has been consolidated into the /bridge endpoint, which now returns call data |

## Support

Expand Down
4 changes: 2 additions & 2 deletions packages/rest-api/src/routes/bridgeTxInfoRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const router: express.Router = express.Router()
* @openapi
* /bridgeTxInfo:
* get:
* summary: Get bridge transaction information
* description: Retrieve transaction information for bridging tokens between chains
* summary: "[Deprecated] in favor of using the /bridge endpoint, which now returns call data"
* description: "[Deprecated] Originally used to get Bridge transaction information"
* parameters:
* - in: query
* name: fromChain
Expand Down
4 changes: 2 additions & 2 deletions packages/rest-api/src/routes/swapTxInfoRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const router: express.Router = express.Router()
* @openapi
* /swapTxInfo:
* get:
* summary: Get swap transaction information
* description: Retrieve transaction information for swapping tokens on a specific chain
* summary: "[Deprecated] in favor of using the /swap endpoint, which now returns call data
* description: "[Deprecated] Originally used to get Swap transaction information
* parameters:
* - in: query
* name: chain
Expand Down
8 changes: 4 additions & 4 deletions packages/rest-api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,8 @@
},
"/bridgeTxInfo": {
"get": {
"summary": "Get bridge transaction information",
"description": "Retrieve transaction information for bridging tokens between chains",
"summary": "[Deprecated] in favor of using the /bridge endpoint, which now returns call data",
"description": "[Deprecated] Originally used to get Bridge transaction information",
"parameters": [
{
"in": "query",
Expand Down Expand Up @@ -1345,8 +1345,8 @@
},
"/swapTxInfo": {
"get": {
"summary": "Get swap transaction information",
"description": "Retrieve transaction information for swapping tokens on a specific chain",
"summary": "[Deprecated] in favor of using the /swap endpoint, which now returns call data",
"description": "[Deprecated] Originally used to get Swap transaction information",
"parameters": [
{
"in": "query",
Expand Down

0 comments on commit fc48390

Please sign in to comment.