Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenliang123 committed Oct 16, 2024
1 parent 371af88 commit 528e55e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/client/rest/rest_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@
Note that: now the api version is v1 and the base uri is `/api/v1`.

## Authentication

REST API supports the [Basic Authentication](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization#basic_authentication) which relies on `Authorization` header in HTTP request.

```
Authorization: Basic <credentials>
```

The `<credentials>` value is the Base64 encoded string of `username:password`. For example,in the case of a user `aladdin` with the password `opensesame`, set the `Authorization` header to `Basic YWxhZGRpbjpvcGVuc2VzYW1l` as Base64 encoded `aladdin:opensesame`.

## Session Resource
Expand Down

0 comments on commit 528e55e

Please sign in to comment.