mirror of
https://github.com/Sea-Haven-Industries/seahaven-ap.git
synced 2026-10-01 19:03:22 +00:00
33 lines
923 B
YAML
33 lines
923 B
YAML
|
|
post:
|
||
|
|
tags:
|
||
|
|
- Session
|
||
|
|
summary: End the API session
|
||
|
|
description: Clears session cookies. Idempotent when already signed out.
|
||
|
|
operationId: post-api-auth-logout
|
||
|
|
security: []
|
||
|
|
responses:
|
||
|
|
"204":
|
||
|
|
description: Session cleared.
|
||
|
|
"403":
|
||
|
|
description: CSRF origin check failed.
|
||
|
|
content:
|
||
|
|
application/json:
|
||
|
|
schema:
|
||
|
|
$ref: ../components/schemas.yaml#/Error
|
||
|
|
example:
|
||
|
|
error:
|
||
|
|
code: FORBIDDEN
|
||
|
|
message: Origin is not allowed.
|
||
|
|
correlationId: 11111111-1111-4111-8111-111111111111
|
||
|
|
"400":
|
||
|
|
description: Bad request.
|
||
|
|
content:
|
||
|
|
application/json:
|
||
|
|
schema:
|
||
|
|
$ref: ../components/schemas.yaml#/Error
|
||
|
|
example:
|
||
|
|
error:
|
||
|
|
code: VALIDATION_ERROR
|
||
|
|
message: Bad request.
|
||
|
|
correlationId: 11111111-1111-4111-8111-111111111111
|