@ -251,7 +251,9 @@ export function buildOpenApiDocument(): object {
|
|||||||
paths: {
|
paths: {
|
||||||
'/me': {
|
'/me': {
|
||||||
get: {
|
get: {
|
||||||
summary: "The token's user and scope (client smoke test).",
|
summary:
|
||||||
|
"The token's user — id, username, display name — plus scope and pond " +
|
||||||
|
'restriction. The way to find your own user id (client smoke test).',
|
||||||
responses: { '200': jsonResponse('Token identity', ref('Me')) },
|
responses: { '200': jsonResponse('Token identity', ref('Me')) },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -40,8 +40,8 @@ curl -H "Authorization: Bearer dt_pat_..." \
|
|||||||
https://wiki.example.com/api/public/v1/me
|
https://wiki.example.com/api/public/v1/me
|
||||||
```
|
```
|
||||||
|
|
||||||
`GET /me` ist der Smoke-Test — er liefert dein Benutzerkonto, den
|
`GET /me` ist der Smoke-Test — er liefert dein Benutzerkonto (samt
|
||||||
Token-Scope und eine etwaige Teich-Beschränkung.
|
deiner User-ID), den Token-Scope und eine etwaige Teich-Beschränkung.
|
||||||
|
|
||||||
## Lesen
|
## Lesen
|
||||||
|
|
||||||
|
|||||||
@ -37,8 +37,8 @@ curl -H "Authorization: Bearer dt_pat_..." \
|
|||||||
https://wiki.example.com/api/public/v1/me
|
https://wiki.example.com/api/public/v1/me
|
||||||
```
|
```
|
||||||
|
|
||||||
`GET /me` is the smoke test — it returns your user, the token scope,
|
`GET /me` is the smoke test — it returns your user (including your
|
||||||
and any pond restriction.
|
user id), the token scope, and any pond restriction.
|
||||||
|
|
||||||
## Reading
|
## Reading
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user