Skip to content

Commit

Permalink
Merge pull request #198 from dimitrov-d/main
Browse files Browse the repository at this point in the history
Fix Authorization header in API docs
  • Loading branch information
dimitrov-d authored Nov 21, 2024
2 parents aa522f0 + 25a15db commit d8f54b7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions build/11-cloud-functions-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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\",
Expand Down Expand Up @@ -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"
```

</CodeGroupItem>
Expand Down Expand Up @@ -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"
```

</CodeGroupItem>
Expand Down Expand Up @@ -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\",
Expand Down Expand Up @@ -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\" }]
Expand Down Expand Up @@ -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"
```
</CodeGroupItem>
Expand Down
10 changes: 5 additions & 5 deletions build/13-infrastructure-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |

</div>
<div class="split_side">
<br>
Expand All @@ -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\",
Expand Down Expand Up @@ -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"
```

</CodeGroupItem>
Expand Down Expand Up @@ -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"
```

</CodeGroupItem>
Expand Down Expand Up @@ -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"
```

</CodeGroupItem>
Expand Down

0 comments on commit d8f54b7

Please sign in to comment.