operationId: userLogin summary: Login security: [] description: User login tags: [User] requestBody: content: application/json: schema: type: object required: - email - password properties: email: type: string format: email description: User email example: john.smith@mail.com password: type: string format: password description: User password example: password123 responses: "200": description: Login successful. Returns success object. Sets 'user' cookie. content: application/json: schema: type: object properties: success: type: boolean "400": $ref: "#/components/responses/400" "401": $ref: "#/components/responses/401" "500": $ref: "#/components/responses/500"