From 25a15dbeb86e20af26cc6a3637338caae688b74b Mon Sep 17 00:00:00 2001 From: Damjan Dimitrov Date: Thu, 21 Nov 2024 11:01:07 +0100 Subject: [PATCH] Fix Authorization header in API docs --- build/11-cloud-functions-api.md | 12 ++++++------ build/13-infrastructure-api.md | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/build/11-cloud-functions-api.md b/build/11-cloud-functions-api.md index 7c5360e8..8fedd0cb 100644 --- a/build/11-cloud-functions-api.md +++ b/build/11-cloud-functions-api.md @@ -35,7 +35,7 @@ The Cloud Function API provides an interface for developers to deploy, manage, a ```sh curl --location --request POST "https://api.apillon.io/cloud-functions" \ ---header "Authorization: Bearer :credentials" \ +--header "Authorization: Basic :credentials" \ --header "Content-Type: application/json" \ --data-raw "{ \"name\": \"My Cloud Function\", @@ -104,7 +104,7 @@ All query parameters from [listing request](1-apillon-api.md#listing-requests) ```sh curl --location --request GET "https://api.apillon.io/cloud-functions?project_uuid=abc123-project" \ ---header "Authorization: Bearer :credentials" +--header "Authorization: Basic :credentials" ``` @@ -188,7 +188,7 @@ curl --location --request GET "https://api.apillon.io/cloud-functions?project_uu ```sh curl --location --request GET "https://api.apillon.io/cloud-functions/d1e8b9f2-4d18-4ef7-9f59-87348590d5a6" \ ---header "Authorization: Bearer :credentials" +--header "Authorization: Basic :credentials" ``` @@ -279,7 +279,7 @@ If it does not contain the boilerplate code, the deployment will not be accessib ```sh curl --location --request POST "https://api.apillon.io/cloud-functions/d1e8b9f2-4d18-4ef7-9f59-87348590d5a6/jobs" \ ---header "Authorization: Bearer :credentials" \ +--header "Authorization: Basic :credentials" \ --header "Content-Type: application/json" \ --data-raw "{ \"name\": \"Price fetcher\", @@ -353,7 +353,7 @@ curl --location --request POST "https://api.apillon.io/cloud-functions/d1e8b9f2- ```sh curl --location --request POST "https://api.apillon.io/cloud-functions/d1e8b9f2-4d18-4ef7-9f59-87348590d5a6/environment" \ ---header "Authorization: Bearer :credentials" \ +--header "Authorization: Basic :credentials" \ --header "Content-Type: application/json" \ --data-raw "{ \"variables\": [{ \"key\": \"API_KEY\", \"value\": \"12345\" }] @@ -413,7 +413,7 @@ curl --location --request POST "https://api.apillon.io/cloud-functions/d1e8b9f2- ```sh curl --location --request DELETE "https://api.apillon.io/cloud-functions/jobs/e3c86bb2-4190-4bda-9c8a-3852b6d04971" \ ---header "Authorization: Bearer :credentials" +--header "Authorization: Basic :credentials" ``` diff --git a/build/13-infrastructure-api.md b/build/13-infrastructure-api.md index 832cb5b5..4a7eb3eb 100644 --- a/build/13-infrastructure-api.md +++ b/build/13-infrastructure-api.md @@ -31,7 +31,7 @@ The Infrastructure API provides an interface for managing essential infrastructu | 40405001 | Project owner not found | | 50000001 | Internal server error | | 422001101| RPC API key name is missing | - +

@@ -40,7 +40,7 @@ The Infrastructure API provides an interface for managing essential infrastructu ```sh curl --location --request POST "https://api.apillon.io/rpc/api-key" \ ---header "Authorization: Bearer :credentials" \ +--header "Authorization: Basic :credentials" \ --header "Content-Type: application/json" \ --data-raw "{ \"name\": \"RPC API Key\", @@ -104,7 +104,7 @@ All query parameters from [listing request](1-apillon-api.md#listing-requests) ```sh curl --location --request GET "https://api.apillon.io/rpc/api-key" \ ---header "Authorization: Bearer :credentials" +--header "Authorization: Basic :credentials" ``` @@ -194,7 +194,7 @@ curl --location --request GET "https://api.apillon.io/rpc/api-key" \ ```sh curl --location --request GET "https://api.apillon.io/rpc/api-key/:id" \ ---header "Authorization: Bearer :credentials" +--header "Authorization: Basic :credentials" ``` @@ -274,7 +274,7 @@ curl --location --request GET "https://api.apillon.io/rpc/api-key/:id" \ ```sh curl --location --request GET "https://api.apillon.io/rpc/endpoints" \ ---header "Authorization: Bearer :credentials" +--header "Authorization: Basic :credentials" ```