@@ -41,3 +41,6 @@ paths:
/user/login:
post:
$ref: "./paths/user/login.yaml"
+ /user/logout:
+ post:
+ $ref: "./paths/user/logout.yaml"
@@ -0,0 +1,18 @@
+operationId: userLogout
+summary: Logout
+security: []
+description: Remove session cookie and logout the user
+tags: [User]
+
+responses:
+ "200":
+ description: "Cookie removed and session ended (always returns '{success: true}')"
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ success:
+ type: boolean
+ "500":
+ $ref: "#/components/responses/500"