diff options
Diffstat (limited to 'docs/openapi.yaml')
| -rw-r--r-- | docs/openapi.yaml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/openapi.yaml b/docs/openapi.yaml index 4a49d2b..efda5e2 100644 --- a/docs/openapi.yaml +++ b/docs/openapi.yaml @@ -981,7 +981,7 @@ paths: get: tags: [Auth] summary: Your keys - description: Your keys, your registry entry as recorded, and under a strict policy the envelope holding it (`signed`), which signing it anew names (`prev`). + description: Your keys, your registry entry as recorded, under a strict policy the envelope holding it (`signed`), which signing it anew names (`prev`), and whether you have a password on this node (`password`), so you may remove your last key here. responses: '200': description: Yours. @@ -993,6 +993,7 @@ paths: keys: { type: object, additionalProperties: { type: string } } entry: { type: object } signed: { type: string, nullable: true } + password: { type: boolean } '404': { description: No entry of yours. } /auth/keys/{id}: @@ -1015,10 +1016,11 @@ paths: delete: tags: [Auth] summary: Remove one of your keys + description: Your last only with a password on this node (`--htpasswd`). responses: '204': { description: Done. } '404': { description: No entry of yours, or no such key. } - '409': { description: Strict policy. } + '409': { description: Strict policy, or your last key and no password on this node. } /auth/whoami: get: |
