| 1234567891011121314151617181920212223242526272829303132333435 |
- module.exports = {
- post: {
- tags: ["Token"],
- description: "Log in user",
- parameters: [],
- requestBody: {
- content: {
- "application/json": {
- schema: {
- type: "object",
- properties: {
- email: {
- type: "string"
- },
- password: {
- type: "string"
- }
- }
- }
- }
- }
- },
- responses: {
- 201: {
- description: "User logged in successfully!"
- },
- 400: {
- description: "Wrong credentials!"
- },
- 500: {
- description: "Internal server error"
- }
- }
- }
- }
|