Docs: Use bearer auth not basic auth in IAM doc examples (#88984)

use bearer auth not basic auth in examples
This commit is contained in:
Ieva
2024-06-11 10:35:22 +03:00
committed by GitHub
parent 3d40caf819
commit 10857c5400
3 changed files with 13 additions and 13 deletions

View File

@ -53,7 +53,7 @@ See note in the [introduction]({{< ref "#team-api" >}}) for an explanation.
GET /api/teams/search?perpage=10&page=1&query=mytestteam HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Basic YWRtaW46YWRtaW4=
Authorization: Bearer glsa_kcVxDhZtu5ISOZIEt
```
**Example Response**:
@ -119,7 +119,7 @@ See note in the [introduction]({{< ref "#team-api" >}}) for an explanation.
- **200** - Ok
- **401** - Unauthorized
- **403** - Permission denied
- **403** - Permission denied
- **404** - Team not found
## Add Team
@ -165,7 +165,7 @@ See note in the [introduction]({{< ref "#team-api" >}}) for an explanation.
There are two fields that can be updated for a team: `name` and `email`.
`PUT /api/teams/:id`
`PUT /api/teams/:id`
**Required permissions**
@ -210,7 +210,7 @@ See note in the [introduction]({{< ref "#team-api" >}}) for an explanation.
See note in the [introduction]({{< ref "#team-api" >}}) for an explanation.
| Action | Scope |
| ------------ | -------- |
| ------------ | -------- |
| teams:delete | teams:\* |
**Example Request**:
@ -253,7 +253,7 @@ See note in the [introduction]({{< ref "#team-api" >}}) for an explanation.
```http
GET /api/teams/1/members HTTP/1.1
Accept: application/json
Accept: application/json
Content-Type: application/json
Authorization: Bearer glsa_kcVxDhZtu5ISOZIEt
```
@ -290,7 +290,7 @@ See note in the [introduction]({{< ref "#team-api" >}}) for an explanation.
POST /api/teams/1/members HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Basic YWRtaW46YWRtaW4=
Authorization: Bearer glsa_kcVxDhZtu5ISOZIEt
```
@ -343,7 +343,7 @@ See note in the [introduction]({{< ref "#team-api" >}}) for an explanation.
- **200** - Ok
- **401** - Unauthorized
- **403** - Permission denied
- **403** - Permission denied
- **404** - Team not found/Team member not found
## Get Team Preferences
@ -385,7 +385,7 @@ See note in the [introduction]({{< ref "#team-api" >}}) for an explanation.
| Action | Scope |
| ----------- | -------- |
| teams:write | teams:\* |
| teams:write | teams:\* |
**Example Request**:

View File

@ -45,7 +45,7 @@ See note in the [introduction]({{< ref "#external-group-synchronization-api" >}}
GET /api/teams/1/groups HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Basic YWRtaW46YWRtaW4=
Authorization: Bearer glsa_kcVxDhZtu5ISOZIEt
```
**Example Response**:
@ -87,7 +87,7 @@ See note in the [introduction]({{< ref "#external-group-synchronization-api" >}}
**Example Response**:
```http
HTTP/1.1 200
HTTP/1.1 200
Content-Type: application/json
```
@ -129,7 +129,7 @@ See note in the [introduction]({{< ref "#external-group-synchronization-api" >}}
```
Status Codes:
Status Codes:
- **200** - Ok
- **401** - Unauthorized