Skip to content

Commit d8f54b7

Browse files
authored
Merge pull request #198 from dimitrov-d/main
Fix Authorization header in API docs
2 parents aa522f0 + 25a15db commit d8f54b7

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

build/11-cloud-functions-api.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The Cloud Function API provides an interface for developers to deploy, manage, a
3535

3636
```sh
3737
curl --location --request POST "https://api.apillon.io/cloud-functions" \
38-
--header "Authorization: Bearer :credentials" \
38+
--header "Authorization: Basic :credentials" \
3939
--header "Content-Type: application/json" \
4040
--data-raw "{
4141
\"name\": \"My Cloud Function\",
@@ -104,7 +104,7 @@ All query parameters from [listing request](1-apillon-api.md#listing-requests)
104104

105105
```sh
106106
curl --location --request GET "https://api.apillon.io/cloud-functions?project_uuid=abc123-project" \
107-
--header "Authorization: Bearer :credentials"
107+
--header "Authorization: Basic :credentials"
108108
```
109109

110110
</CodeGroupItem>
@@ -188,7 +188,7 @@ curl --location --request GET "https://api.apillon.io/cloud-functions?project_uu
188188

189189
```sh
190190
curl --location --request GET "https://api.apillon.io/cloud-functions/d1e8b9f2-4d18-4ef7-9f59-87348590d5a6" \
191-
--header "Authorization: Bearer :credentials"
191+
--header "Authorization: Basic :credentials"
192192
```
193193

194194
</CodeGroupItem>
@@ -279,7 +279,7 @@ If it does not contain the boilerplate code, the deployment will not be accessib
279279

280280
```sh
281281
curl --location --request POST "https://api.apillon.io/cloud-functions/d1e8b9f2-4d18-4ef7-9f59-87348590d5a6/jobs" \
282-
--header "Authorization: Bearer :credentials" \
282+
--header "Authorization: Basic :credentials" \
283283
--header "Content-Type: application/json" \
284284
--data-raw "{
285285
\"name\": \"Price fetcher\",
@@ -353,7 +353,7 @@ curl --location --request POST "https://api.apillon.io/cloud-functions/d1e8b9f2-
353353
354354
```sh
355355
curl --location --request POST "https://api.apillon.io/cloud-functions/d1e8b9f2-4d18-4ef7-9f59-87348590d5a6/environment" \
356-
--header "Authorization: Bearer :credentials" \
356+
--header "Authorization: Basic :credentials" \
357357
--header "Content-Type: application/json" \
358358
--data-raw "{
359359
\"variables\": [{ \"key\": \"API_KEY\", \"value\": \"12345\" }]
@@ -413,7 +413,7 @@ curl --location --request POST "https://api.apillon.io/cloud-functions/d1e8b9f2-
413413
414414
```sh
415415
curl --location --request DELETE "https://api.apillon.io/cloud-functions/jobs/e3c86bb2-4190-4bda-9c8a-3852b6d04971" \
416-
--header "Authorization: Bearer :credentials"
416+
--header "Authorization: Basic :credentials"
417417
```
418418
419419
</CodeGroupItem>

build/13-infrastructure-api.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The Infrastructure API provides an interface for managing essential infrastructu
3131
| 40405001 | Project owner not found |
3232
| 50000001 | Internal server error |
3333
| 422001101| RPC API key name is missing |
34-
34+
3535
</div>
3636
<div class="split_side">
3737
<br>
@@ -40,7 +40,7 @@ The Infrastructure API provides an interface for managing essential infrastructu
4040

4141
```sh
4242
curl --location --request POST "https://api.apillon.io/rpc/api-key" \
43-
--header "Authorization: Bearer :credentials" \
43+
--header "Authorization: Basic :credentials" \
4444
--header "Content-Type: application/json" \
4545
--data-raw "{
4646
\"name\": \"RPC API Key\",
@@ -104,7 +104,7 @@ All query parameters from [listing request](1-apillon-api.md#listing-requests)
104104

105105
```sh
106106
curl --location --request GET "https://api.apillon.io/rpc/api-key" \
107-
--header "Authorization: Bearer :credentials"
107+
--header "Authorization: Basic :credentials"
108108
```
109109

110110
</CodeGroupItem>
@@ -194,7 +194,7 @@ curl --location --request GET "https://api.apillon.io/rpc/api-key" \
194194

195195
```sh
196196
curl --location --request GET "https://api.apillon.io/rpc/api-key/:id" \
197-
--header "Authorization: Bearer :credentials"
197+
--header "Authorization: Basic :credentials"
198198
```
199199

200200
</CodeGroupItem>
@@ -274,7 +274,7 @@ curl --location --request GET "https://api.apillon.io/rpc/api-key/:id" \
274274

275275
```sh
276276
curl --location --request GET "https://api.apillon.io/rpc/endpoints" \
277-
--header "Authorization: Bearer :credentials"
277+
--header "Authorization: Basic :credentials"
278278
```
279279

280280
</CodeGroupItem>

0 commit comments

Comments
 (0)