openapi: 3.0.0 info: title: Login API version: 1.0.0 paths: /admin/login: post: summary: Authenticate a user requestBody: required: true content: application/json: schema: type: object properties: email: type: string format: email password: type: string responses: '200': description: Authentication successful content: application/json: schema: type: object properties: token: type: string '401': description: Authentication failed