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
+8 -8
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.
GET /api/teams/1 HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Basic YWRtaW46YWRtaW4=
Authorization: Bearer glsa_kcVxDhZtu5ISOZIEt
```
**Example Response**:
@@ -165,7 +165,7 @@ See note in the [introduction]({{< ref "#team-api" >}}) for an explanation.
POST /api/teams HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Basic YWRtaW46YWRtaW4=
Authorization: Bearer glsa_kcVxDhZtu5ISOZIEt
{
"name": "MyTestTeam",
@@ -210,7 +210,7 @@ See note in the [introduction]({{< ref "#team-api" >}}) for an explanation.
PUT /api/teams/2 HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Basic YWRtaW46YWRtaW4=
Authorization: Bearer glsa_kcVxDhZtu5ISOZIEt
{
"name": "MyTestTeam",
@@ -253,7 +253,7 @@ See note in the [introduction]({{< ref "#team-api" >}}) for an explanation.
DELETE /api/teams/2 HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Basic YWRtaW46YWRtaW4=
Authorization: Bearer glsa_kcVxDhZtu5ISOZIEt
```
**Example Response**:
@@ -290,7 +290,7 @@ See note in the [introduction]({{< ref "#team-api" >}}) for an explanation.
GET /api/teams/1/members HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Basic YWRtaW46YWRtaW4=
Authorization: Bearer glsa_kcVxDhZtu5ISOZIEt
```
**Example Response**:
@@ -343,7 +343,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
{
"userId": 2
@@ -385,7 +385,7 @@ See note in the [introduction]({{< ref "#team-api" >}}) for an explanation.
DELETE /api/teams/2/members/3 HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Basic YWRtaW46YWRtaW4=
Authorization: Bearer glsa_kcVxDhZtu5ISOZIEt
```
**Example Response**:
@@ -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" >}}
POST /api/teams/1/groups HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Basic YWRtaW46YWRtaW4=
Authorization: Bearer YWRtaW46YWRtaW4=
{
"groupId": "cn=editors,ou=groups,dc=grafana,dc=org"
@@ -129,7 +129,7 @@ See note in the [introduction]({{< ref "#external-group-synchronization-api" >}}
DELETE /api/teams/1/groups?groupId=cn%3Deditors%2Cou%3Dgroups%2Cdc%3Dgrafana%2Cdc%3Dorg HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Basic YWRtaW46YWRtaW4=
Authorization: Bearer glsa_kcVxDhZtu5ISOZIEt
```
**Example Response**: