birzha-legalizasia/storage/api-docs/api-docs.json

179 lines
5.9 KiB
JSON
Raw Normal View History

2022-06-27 06:32:28 +00:00
{
"openapi": "3.0.0",
"info": {
2022-06-30 14:55:51 +00:00
"title": "Legalization API - Authorization",
2022-06-27 06:32:28 +00:00
"version": "1.0.1"
},
"paths": {
"/api/login": {
"post": {
"tags": [
2022-06-30 14:55:51 +00:00
"Authorization"
2022-06-27 06:32:28 +00:00
],
"summary": " - Login user",
"operationId": "a3b306d14572d1f4bd6c064b3233e7b8",
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"email": {
"type": "string"
},
"password": {
"type": "string"
}
},
"type": "object",
"example": {
"email": "ilmedovamahri@gmail.com",
2022-06-30 14:55:51 +00:00
"password": 12345678
2022-06-27 06:32:28 +00:00
}
}
}
}
},
"responses": {
"200": {
2022-06-30 14:55:51 +00:00
"description": "OK"
2022-06-27 06:32:28 +00:00
},
"401": {
"description": "Unauthorized"
}
}
}
},
"/api/register": {
"post": {
"tags": [
2022-06-30 14:55:51 +00:00
"Authorization"
2022-06-27 06:32:28 +00:00
],
"summary": " - Register user",
"operationId": "8a56853624e025573120a09a4c75d468",
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"firstname": {
"type": "string"
},
"lastname": {
"type": "string"
},
"email": {
"type": "string"
},
"password": {
"type": "string"
}
},
"type": "object",
"example": {
"firstname": "Mahri",
"lastname": "Ilmedova",
"email": "ilmedovamahri@gmail.com",
"password": 12345678
}
}
}
}
},
"responses": {
"200": {
2022-06-30 14:55:51 +00:00
"description": "OK"
},
"401": {
"description": "Unauthorized"
}
}
}
},
"/api/client": {
"get": {
"tags": [
"Authorization"
],
"summary": " - Get user",
"operationId": "9f1c53ceee113e04ff7709c819ce9bf5",
"responses": {
"200": {
"description": "OK"
2022-06-27 06:32:28 +00:00
},
"401": {
"description": "Unauthorized"
}
2022-06-30 14:55:51 +00:00
},
"security": [
{
"bearerAuth": []
}
]
}
},
"/api/logout": {
"post": {
"tags": [
"Authorization"
],
"summary": " - Logout user",
"operationId": "fe8f3429cd6979b3b4517e186505f9f9",
"responses": {
"200": {
"description": "OK"
},
"401": {
"description": "Unauthorized"
}
},
"security": [
{
"bearerAuth": []
}
]
}
},
"/api/forgot-password": {
"post": {
"tags": [
"Authorization"
],
"summary": " - Send a user password reset link",
"operationId": "45bf57623119762aa1c685aff5d3716e",
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"email": {
"type": "string"
}
},
"type": "object",
"example": {
"email": "ilmedovamahri@gmail.com"
}
}
}
}
},
"responses": {
"200": {
"description": "OK"
}
2022-06-27 06:32:28 +00:00
}
}
}
2022-06-30 14:55:51 +00:00
},
"components": {
"securitySchemes": {
"bearerAuth": {
"type": "http",
"name": "bearerAuth",
"in": "header",
"bearerFormat": "JWT",
"scheme": "bearer"
}
}
2022-06-27 06:32:28 +00:00
}
}