From fb334d26b6622bb26d69a6ffc314ccf17def52f7 Mon Sep 17 00:00:00 2001 From: Amin Moghaddam Date: Thu, 24 Oct 2024 10:27:43 +0200 Subject: [PATCH] fix: replace redoc to docs for ER links --- pages/express-relay/_meta.json | 2 +- pages/express-relay/integrate-as-protocol.mdx | 4 ++-- pages/express-relay/integrate-as-searcher.mdx | 4 ++-- pages/express-relay/websocket-api-reference.mdx | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/express-relay/_meta.json b/pages/express-relay/_meta.json index 8fd29aca..d6c15e48 100644 --- a/pages/express-relay/_meta.json +++ b/pages/express-relay/_meta.json @@ -25,7 +25,7 @@ "api-reference": { "title": "HTTP API Reference ↗", - "href": "https://pyth-express-relay-mainnet.asymmetric.re/redoc", + "href": "https://pyth-express-relay-mainnet.asymmetric.re/docs", "newWindow": true }, "websocket-api-reference": "Websocket API Reference", diff --git a/pages/express-relay/integrate-as-protocol.mdx b/pages/express-relay/integrate-as-protocol.mdx index ce1d2217..fc5ecf74 100644 --- a/pages/express-relay/integrate-as-protocol.mdx +++ b/pages/express-relay/integrate-as-protocol.mdx @@ -181,7 +181,7 @@ contract EasyLend is IExpressRelayFeeReceiver { DeFi protocols should fetch opportunities and expose them to Express Relay for auction. -Express Relay provides a **POST** method, [`/v1/opportunities`](https://per-staging.dourolabs.app/redoc#tag/opportunity/operation/post_opportunity), which accepts a JSON payload containing the details of the opportunity. +Express Relay provides a **POST** method, [`/v1/opportunities`](https://per-staging.dourolabs.app/docs#tag/opportunity/operation/post_opportunity), which accepts a JSON payload containing the details of the opportunity. The JSON payload should contain opportunities in the following format: @@ -233,4 +233,4 @@ The [Error Codes](./errors.mdx) page lists the error codes returned by Express R ### API Reference -The [API Reference](https://per-staging.dourolabs.app/redoc) provides detailed information on Express Relay APIs for submitting opportunities. +The [API Reference](https://per-staging.dourolabs.app/docs) provides detailed information on Express Relay APIs for submitting opportunities. diff --git a/pages/express-relay/integrate-as-searcher.mdx b/pages/express-relay/integrate-as-searcher.mdx index 058744d7..2de02988 100644 --- a/pages/express-relay/integrate-as-searcher.mdx +++ b/pages/express-relay/integrate-as-searcher.mdx @@ -65,7 +65,7 @@ await client.subscribe_chains(['op_sepolia']) -Searchers can request opportunities through an HTTP **GET** call to the [`/v1/opportunities`](https://pyth-express-relay-mainnet.asymmetric.re/redoc#tag/opportunity/operation/get_opportunities) endpoint. +Searchers can request opportunities through an HTTP **GET** call to the [`/v1/opportunities`](https://pyth-express-relay-mainnet.asymmetric.re/docs#tag/opportunity/operation/get_opportunities) endpoint. ```bash copy curl -X 'GET' \ @@ -208,7 +208,7 @@ def opportunity_callback(opportunity: Opportunity): -Searchers can submit bids through an HTTP POST call to the [`/v1/bids`](https://pyth-express-relay-mainnet.asymmetric.re/redoc#tag/bid/operation/bid) endpoint. This endpoint accepts a JSON payload containing the details of the bid. +Searchers can submit bids through an HTTP POST call to the [`/v1/bids`](https://pyth-express-relay-mainnet.asymmetric.re/docs#tag/bid/operation/bid) endpoint. This endpoint accepts a JSON payload containing the details of the bid. ```bash copy curl -X POST https://pyth-express-relay-mainnet.asymmetric.re/v1/bids \ diff --git a/pages/express-relay/websocket-api-reference.mdx b/pages/express-relay/websocket-api-reference.mdx index 62b8be30..795dfdc2 100644 --- a/pages/express-relay/websocket-api-reference.mdx +++ b/pages/express-relay/websocket-api-reference.mdx @@ -60,7 +60,7 @@ After a successful subscription, you will receive new opportunities for the sele } ``` -The schema for the opportunity is similar to what’s returned in the [HTTP requests](https://pyth-express-relay-mainnet.asymmetric.re/redoc#tag/opportunity/operation/get_opportunities) +The schema for the opportunity is similar to what’s returned in the [HTTP requests](https://pyth-express-relay-mainnet.asymmetric.re/docs#tag/opportunity/operation/get_opportunities) To unsubscribe from a list of chains, you can send the following message: