#147: Eigene Identität in der API klar dokumentiert

GET /api/public/v1/me existiert bereits — OpenAPI-Summary nennt jetzt
ausdrücklich die User-ID, api-guide (en+de) ebenso. MCP war bereits
paritätisch (list_ponds + Token-Identität); kein neuer Endpoint nötig.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0155v2aT8AG1kZDQEZiCLBWC
This commit is contained in:
Claude Fable 5 2026-07-20 00:49:53 +02:00
parent d73b120d06
commit 89ffbc0e4d
3 changed files with 7 additions and 5 deletions

View File

@ -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')) },
}, },
}, },

View File

@ -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

View File

@ -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