No response body appliesNu se aplică un body al răspunsului
Response headersHeaderele răspunsului
Set-CookieAn expired session cookie.Cookie-ul sesiunii, limitat la host.
DevelopersDezvoltatori/api/v1/auth/logoutRequires Content-Type application/json and a zero-byte entity body, plus a valid host-only session, one configured exact Origin whose host equals the request Host, and the per-session CSRF token.Necesită Content-Type application/json, corp gol, sesiune validă, Origin exact și tokenul CSRF al sesiunii.
Content-TypeRequired request headerHeader obligatoriu al cereriiOriginRequired request headerHeader obligatoriu al cereriiX-CSRF-TokenRequired request headerHeader obligatoriu al cereriiOriginheader · requiredobligatoriuhttp://127.0.0.1:18081{
"type": "string",
"format": "uri"
}X-CSRF-Tokenheader · requiredobligatoriusynthetic-csrf-token{
"type": "string",
"minLength": 1
}curl --request POST "$DOCULA_URL/api/v1/auth/logout" \
--cookie "$COOKIE_JAR" \
--header "Content-Type: application/json" \
--header "Origin: $DOCULA_URL" \
--header "X-CSRF-Token: $CSRF_TOKEN"No request body applies. Use the documented method, path, headers, and parameters.Nu se aplică un body al cererii. Folosește metoda, calea, headerele și parametrii documentați.
No response body appliesNu se aplică un body al răspunsului
Set-CookieAn expired session cookie.Cookie-ul sesiunii, limitat la host.Structured response bodyBody structurat al răspunsului
Structured response bodyBody structurat al răspunsului
{
"allOf": [
{
"$ref": "#/components/schemas/Problem",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"title",
"status",
"code",
"detail",
"correlation_id"
],
"properties": {
"type": {
"type": "string",
"pattern": "^/problems/[a-z_]+$"
},
"title": {
"type": "string",
"minLength": 1
},
"status": {
"type": "integer",
"minimum": 400,
"maximum": 599
},
"code": {
"type": "string",
"enum": [
"internal_error",
"dependency_unavailable",
"invalid_credentials",
"origin_rejected",
"validation_failed",
"rate_limited",
"authentication_required",
"csrf_rejected",
"forbidden",
"conflict",
"not_found",
"method_not_allowed",
"unsupported_media_type",
"content_unavailable",
"precondition_required",
"precondition_failed"
]
},
"detail": {
"type": "string",
"minLength": 1
},
"correlation_id": {
"type": "string",
"minLength": 1
},
"dependencies": {
"type": "array",
"maxItems": 3,
"items": {
"$ref": "#/components/schemas/PublicDependency",
"type": "object",
"additionalProperties": false,
"required": [
"name",
"status"
],
"properties": {
"name": {
"type": "string",
"enum": [
"postgresql",
"nats",
"s3",
"outbox"
]
},
"status": {
"type": "string",
"enum": [
"ready",
"unavailable"
]
}
}
}
}
}
},
{
"type": "object",
"properties": {
"status": {
"const": 401
},
"code": {
"const": "authentication_required"
}
}
}
]
}{
"type": "/problems/synthetic_example",
"title": "synthetic-example",
"status": 401,
"code": "authentication_required",
"detail": "synthetic-example",
"correlation_id": "11111111-1111-4111-8111-000000000001"
}Structured response bodyBody structurat al răspunsului
Structured response bodyBody structurat al răspunsului
{
"allOf": [
{
"$ref": "#/components/schemas/Problem",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"title",
"status",
"code",
"detail",
"correlation_id"
],
"properties": {
"type": {
"type": "string",
"pattern": "^/problems/[a-z_]+$"
},
"title": {
"type": "string",
"minLength": 1
},
"status": {
"type": "integer",
"minimum": 400,
"maximum": 599
},
"code": {
"type": "string",
"enum": [
"internal_error",
"dependency_unavailable",
"invalid_credentials",
"origin_rejected",
"validation_failed",
"rate_limited",
"authentication_required",
"csrf_rejected",
"forbidden",
"conflict",
"not_found",
"method_not_allowed",
"unsupported_media_type",
"content_unavailable",
"precondition_required",
"precondition_failed"
]
},
"detail": {
"type": "string",
"minLength": 1
},
"correlation_id": {
"type": "string",
"minLength": 1
},
"dependencies": {
"type": "array",
"maxItems": 3,
"items": {
"$ref": "#/components/schemas/PublicDependency",
"type": "object",
"additionalProperties": false,
"required": [
"name",
"status"
],
"properties": {
"name": {
"type": "string",
"enum": [
"postgresql",
"nats",
"s3",
"outbox"
]
},
"status": {
"type": "string",
"enum": [
"ready",
"unavailable"
]
}
}
}
}
}
},
{
"type": "object",
"properties": {
"status": {
"const": 403
},
"code": {
"const": "csrf_rejected"
}
}
}
]
}{
"type": "/problems/synthetic_example",
"title": "synthetic-example",
"status": 403,
"code": "csrf_rejected",
"detail": "synthetic-example",
"correlation_id": "11111111-1111-4111-8111-000000000001"
}Structured response bodyBody structurat al răspunsului
AllowThe exact method or method set supported by this path.Metoda sau setul exact de metode acceptate de această cale.Structured response bodyBody structurat al răspunsului
{
"allOf": [
{
"$ref": "#/components/schemas/Problem",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"title",
"status",
"code",
"detail",
"correlation_id"
],
"properties": {
"type": {
"type": "string",
"pattern": "^/problems/[a-z_]+$"
},
"title": {
"type": "string",
"minLength": 1
},
"status": {
"type": "integer",
"minimum": 400,
"maximum": 599
},
"code": {
"type": "string",
"enum": [
"internal_error",
"dependency_unavailable",
"invalid_credentials",
"origin_rejected",
"validation_failed",
"rate_limited",
"authentication_required",
"csrf_rejected",
"forbidden",
"conflict",
"not_found",
"method_not_allowed",
"unsupported_media_type",
"content_unavailable",
"precondition_required",
"precondition_failed"
]
},
"detail": {
"type": "string",
"minLength": 1
},
"correlation_id": {
"type": "string",
"minLength": 1
},
"dependencies": {
"type": "array",
"maxItems": 3,
"items": {
"$ref": "#/components/schemas/PublicDependency",
"type": "object",
"additionalProperties": false,
"required": [
"name",
"status"
],
"properties": {
"name": {
"type": "string",
"enum": [
"postgresql",
"nats",
"s3",
"outbox"
]
},
"status": {
"type": "string",
"enum": [
"ready",
"unavailable"
]
}
}
}
}
}
},
{
"type": "object",
"properties": {
"status": {
"const": 405
},
"code": {
"const": "method_not_allowed"
}
}
}
]
}{
"type": "/problems/synthetic_example",
"title": "synthetic-example",
"status": 405,
"code": "method_not_allowed",
"detail": "synthetic-example",
"correlation_id": "11111111-1111-4111-8111-000000000001"
}Structured response bodyBody structurat al răspunsului
Structured response bodyBody structurat al răspunsului
{
"allOf": [
{
"$ref": "#/components/schemas/Problem",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"title",
"status",
"code",
"detail",
"correlation_id"
],
"properties": {
"type": {
"type": "string",
"pattern": "^/problems/[a-z_]+$"
},
"title": {
"type": "string",
"minLength": 1
},
"status": {
"type": "integer",
"minimum": 400,
"maximum": 599
},
"code": {
"type": "string",
"enum": [
"internal_error",
"dependency_unavailable",
"invalid_credentials",
"origin_rejected",
"validation_failed",
"rate_limited",
"authentication_required",
"csrf_rejected",
"forbidden",
"conflict",
"not_found",
"method_not_allowed",
"unsupported_media_type",
"content_unavailable",
"precondition_required",
"precondition_failed"
]
},
"detail": {
"type": "string",
"minLength": 1
},
"correlation_id": {
"type": "string",
"minLength": 1
},
"dependencies": {
"type": "array",
"maxItems": 3,
"items": {
"$ref": "#/components/schemas/PublicDependency",
"type": "object",
"additionalProperties": false,
"required": [
"name",
"status"
],
"properties": {
"name": {
"type": "string",
"enum": [
"postgresql",
"nats",
"s3",
"outbox"
]
},
"status": {
"type": "string",
"enum": [
"ready",
"unavailable"
]
}
}
}
}
}
},
{
"type": "object",
"properties": {
"status": {
"const": 415
},
"code": {
"const": "unsupported_media_type"
}
}
}
]
}{
"type": "/problems/synthetic_example",
"title": "synthetic-example",
"status": 415,
"code": "unsupported_media_type",
"detail": "synthetic-example",
"correlation_id": "11111111-1111-4111-8111-000000000001"
}Structured response bodyBody structurat al răspunsului
Structured response bodyBody structurat al răspunsului
{
"allOf": [
{
"$ref": "#/components/schemas/Problem",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"title",
"status",
"code",
"detail",
"correlation_id"
],
"properties": {
"type": {
"type": "string",
"pattern": "^/problems/[a-z_]+$"
},
"title": {
"type": "string",
"minLength": 1
},
"status": {
"type": "integer",
"minimum": 400,
"maximum": 599
},
"code": {
"type": "string",
"enum": [
"internal_error",
"dependency_unavailable",
"invalid_credentials",
"origin_rejected",
"validation_failed",
"rate_limited",
"authentication_required",
"csrf_rejected",
"forbidden",
"conflict",
"not_found",
"method_not_allowed",
"unsupported_media_type",
"content_unavailable",
"precondition_required",
"precondition_failed"
]
},
"detail": {
"type": "string",
"minLength": 1
},
"correlation_id": {
"type": "string",
"minLength": 1
},
"dependencies": {
"type": "array",
"maxItems": 3,
"items": {
"$ref": "#/components/schemas/PublicDependency",
"type": "object",
"additionalProperties": false,
"required": [
"name",
"status"
],
"properties": {
"name": {
"type": "string",
"enum": [
"postgresql",
"nats",
"s3",
"outbox"
]
},
"status": {
"type": "string",
"enum": [
"ready",
"unavailable"
]
}
}
}
}
}
},
{
"type": "object",
"properties": {
"status": {
"const": 422
},
"code": {
"const": "validation_failed"
}
}
}
]
}{
"type": "/problems/synthetic_example",
"title": "synthetic-example",
"status": 422,
"code": "validation_failed",
"detail": "synthetic-example",
"correlation_id": "11111111-1111-4111-8111-000000000001"
}Structured response bodyBody structurat al răspunsului
Structured response bodyBody structurat al răspunsului
{
"allOf": [
{
"$ref": "#/components/schemas/Problem",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"title",
"status",
"code",
"detail",
"correlation_id"
],
"properties": {
"type": {
"type": "string",
"pattern": "^/problems/[a-z_]+$"
},
"title": {
"type": "string",
"minLength": 1
},
"status": {
"type": "integer",
"minimum": 400,
"maximum": 599
},
"code": {
"type": "string",
"enum": [
"internal_error",
"dependency_unavailable",
"invalid_credentials",
"origin_rejected",
"validation_failed",
"rate_limited",
"authentication_required",
"csrf_rejected",
"forbidden",
"conflict",
"not_found",
"method_not_allowed",
"unsupported_media_type",
"content_unavailable",
"precondition_required",
"precondition_failed"
]
},
"detail": {
"type": "string",
"minLength": 1
},
"correlation_id": {
"type": "string",
"minLength": 1
},
"dependencies": {
"type": "array",
"maxItems": 3,
"items": {
"$ref": "#/components/schemas/PublicDependency",
"type": "object",
"additionalProperties": false,
"required": [
"name",
"status"
],
"properties": {
"name": {
"type": "string",
"enum": [
"postgresql",
"nats",
"s3",
"outbox"
]
},
"status": {
"type": "string",
"enum": [
"ready",
"unavailable"
]
}
}
}
}
}
},
{
"type": "object",
"properties": {
"status": {
"const": 500
},
"code": {
"const": "internal_error"
}
}
}
]
}{
"type": "/problems/synthetic_example",
"title": "synthetic-example",
"status": 500,
"code": "internal_error",
"detail": "synthetic-example",
"correlation_id": "11111111-1111-4111-8111-000000000001"
}Structured response bodyBody structurat al răspunsului
Structured response bodyBody structurat al răspunsului
{
"allOf": [
{
"$ref": "#/components/schemas/Problem",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"title",
"status",
"code",
"detail",
"correlation_id"
],
"properties": {
"type": {
"type": "string",
"pattern": "^/problems/[a-z_]+$"
},
"title": {
"type": "string",
"minLength": 1
},
"status": {
"type": "integer",
"minimum": 400,
"maximum": 599
},
"code": {
"type": "string",
"enum": [
"internal_error",
"dependency_unavailable",
"invalid_credentials",
"origin_rejected",
"validation_failed",
"rate_limited",
"authentication_required",
"csrf_rejected",
"forbidden",
"conflict",
"not_found",
"method_not_allowed",
"unsupported_media_type",
"content_unavailable",
"precondition_required",
"precondition_failed"
]
},
"detail": {
"type": "string",
"minLength": 1
},
"correlation_id": {
"type": "string",
"minLength": 1
},
"dependencies": {
"type": "array",
"maxItems": 3,
"items": {
"$ref": "#/components/schemas/PublicDependency",
"type": "object",
"additionalProperties": false,
"required": [
"name",
"status"
],
"properties": {
"name": {
"type": "string",
"enum": [
"postgresql",
"nats",
"s3",
"outbox"
]
},
"status": {
"type": "string",
"enum": [
"ready",
"unavailable"
]
}
}
}
}
}
},
{
"type": "object",
"properties": {
"status": {
"const": 503
},
"code": {
"const": "dependency_unavailable"
}
}
}
]
}{
"type": "/problems/synthetic_example",
"title": "synthetic-example",
"status": 503,
"code": "dependency_unavailable",
"detail": "synthetic-example",
"correlation_id": "11111111-1111-4111-8111-000000000001"
}The React application invokes this operation from its session shell.Operația este folosită de aplicația React de pe ruta indicată.