From 4e7a98f518742a2419320e6093d1c36fc139ea90 Mon Sep 17 00:00:00 2001 From: Rachel Nascimento Date: Mon, 23 Dec 2024 15:59:25 +0100 Subject: [PATCH] Fixed broken links in API documentation --- content/api/howto.md | 10 +++++----- content/api/v4.md | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/content/api/howto.md b/content/api/howto.md index fb4f7add..f73e1cfb 100644 --- a/content/api/howto.md +++ b/content/api/howto.md @@ -55,11 +55,11 @@ You need to set a callback URL, this is the url your user will be redirected to #### **Get a request token** -You have to make a `POST`request to get a [request token](/api/v2/#post-/oauth/request_token) to the API. +You have to make a `POST`request to get a [request token](/developers/api/v2/#post-/oauth/request_token) to the API. #### **Get the authorization URL** -Ask the API for the [authorization URL](/api/v2/#get-/oauth/authorize) and go to this URL with a browser. Log in with your account and it will send you to the callback URL. +Ask the API for the [authorization URL](/developers/api/v2/#get-/oauth/authorize) and go to this URL with a browser. Log in with your account and it will send you to the callback URL. #### **Get the verifier token** @@ -71,7 +71,7 @@ Where `` is your token. #### **Get the access token** -Make a `POST` request to get the [access token](/api/v2/#post-/oauth/access_token) with your request token and the verifier. +Make a `POST` request to get the [access token](/developers/api/v2/#post-/oauth/access_token) with your request token and the verifier. You can use this access token to make OAuth1 signed requests. More information about [OAuth dance](https://oauth.net/core/1.0/#anchor9). @@ -88,8 +88,8 @@ All the API endpoints are referenced in a swagger documentation. **The base URL {{< cards >}} - {{< card link="/api/v2" title="Base v2 Endpoints" subtitle="Our base API endpoints with users, organisations, applications, add-ons, etc." icon="endpoints" >}} - {{< card link="/api/v4" title="New v4 Endpoints" subtitle="More recent API endpoints with billing, deployments, load balancers, logs, etc." icon="new" >}} + {{< card link="/developers/api/v2/" title="Base v2 Endpoints" subtitle="Our base API endpoints with users, organisations, applications, add-ons, etc." icon="endpoints" >}} + {{< card link="/developers/api/v4/" title="New v4 Endpoints" subtitle="More recent API endpoints with billing, deployments, load balancers, logs, etc." icon="new" >}} {{< /cards >}} diff --git a/content/api/v4.md b/content/api/v4.md index 3f74d916..98749253 100644 --- a/content/api/v4.md +++ b/content/api/v4.md @@ -9,7 +9,7 @@ keywords: - endpoint - v4 --- -Clever Cloud provides a public REST API used by its own services and customers, known as [`/v2`](/api/v2). +Clever Cloud provides a public REST API used by its own services and customers, known as [`/v2`](/developers/api/v2/). As our platform evolves, we're progressively moving to `/v4` endpoints, adding functionalities, with a more modern approach: ``` https://api.clever-cloud.com/v4/