mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: correct authorization header spelling in api docs (#27721)
Corrects the misspelled `Authorizaiton` Swagger header name to `Authorization` in the source annotation and checked-in generated API documentation. This prevents generated API specs and SCIM examples from documenting the wrong HTTP header name.
This commit is contained in:
Generated
+1
-1
@@ -29983,7 +29983,7 @@ const docTemplate = `{
|
||||
},
|
||||
"Authorization": {
|
||||
"type": "apiKey",
|
||||
"name": "Authorizaiton",
|
||||
"name": "Authorization",
|
||||
"in": "header"
|
||||
},
|
||||
"CoderSessionToken": {
|
||||
|
||||
Generated
+1
-1
@@ -27675,7 +27675,7 @@
|
||||
},
|
||||
"Authorization": {
|
||||
"type": "apiKey",
|
||||
"name": "Authorizaiton",
|
||||
"name": "Authorization",
|
||||
"in": "header"
|
||||
},
|
||||
"CoderSessionToken": {
|
||||
|
||||
+1
-1
@@ -351,7 +351,7 @@ type Options struct {
|
||||
|
||||
// @securitydefinitions.apiKey Authorization
|
||||
// @in header
|
||||
// @name Authorizaiton
|
||||
// @name Authorization
|
||||
|
||||
// @securitydefinitions.apiKey CoderSessionToken
|
||||
// @in header
|
||||
|
||||
Generated
+5
-5
@@ -5182,7 +5182,7 @@ curl -X GET http://coder-server:8080/scim/v2/ServiceProviderConfig
|
||||
```sh
|
||||
# Example request using curl
|
||||
curl -X GET http://coder-server:8080/scim/v2/Users \
|
||||
-H 'Authorizaiton: API_KEY'
|
||||
-H 'Authorization: API_KEY'
|
||||
```
|
||||
|
||||
`GET /scim/v2/Users`
|
||||
@@ -5204,7 +5204,7 @@ To perform this operation, you must be authenticated. [Learn more](authenticatio
|
||||
curl -X POST http://coder-server:8080/scim/v2/Users \
|
||||
-H 'Content-Type: application/json' \
|
||||
-H 'Accept: application/json' \
|
||||
-H 'Authorizaiton: API_KEY'
|
||||
-H 'Authorization: API_KEY'
|
||||
```
|
||||
|
||||
`POST /scim/v2/Users`
|
||||
@@ -5294,7 +5294,7 @@ To perform this operation, you must be authenticated. [Learn more](authenticatio
|
||||
```sh
|
||||
# Example request using curl
|
||||
curl -X GET http://coder-server:8080/scim/v2/Users/{id} \
|
||||
-H 'Authorizaiton: API_KEY'
|
||||
-H 'Authorization: API_KEY'
|
||||
```
|
||||
|
||||
`GET /scim/v2/Users/{id}`
|
||||
@@ -5322,7 +5322,7 @@ To perform this operation, you must be authenticated. [Learn more](authenticatio
|
||||
curl -X PUT http://coder-server:8080/scim/v2/Users/{id} \
|
||||
-H 'Content-Type: application/json' \
|
||||
-H 'Accept: application/scim+json' \
|
||||
-H 'Authorizaiton: API_KEY'
|
||||
-H 'Authorization: API_KEY'
|
||||
```
|
||||
|
||||
`PUT /scim/v2/Users/{id}`
|
||||
@@ -5414,7 +5414,7 @@ To perform this operation, you must be authenticated. [Learn more](authenticatio
|
||||
curl -X PATCH http://coder-server:8080/scim/v2/Users/{id} \
|
||||
-H 'Content-Type: application/json' \
|
||||
-H 'Accept: application/scim+json' \
|
||||
-H 'Authorizaiton: API_KEY'
|
||||
-H 'Authorization: API_KEY'
|
||||
```
|
||||
|
||||
`PATCH /scim/v2/Users/{id}`
|
||||
|
||||
Reference in New Issue
Block a user