forked from admin/services_core
60 lines
1.8 KiB
JSON
60 lines
1.8 KiB
JSON
{
|
|
"openapi": "3.0.0",
|
|
"info": {
|
|
"title": "Services Core API",
|
|
"description": "API Backend Services Core",
|
|
"version": "1.0.0"
|
|
},
|
|
"servers": [
|
|
{
|
|
"url": "http://127.0.0.1:8000",
|
|
"description": "Local Development Server"
|
|
}
|
|
],
|
|
"paths": {
|
|
"/api/login": {
|
|
"post": {
|
|
"tags": [
|
|
"Authentication"
|
|
],
|
|
"summary": "Login User",
|
|
"operationId": "a3b306d14572d1f4bd6c064b3233e7b8",
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": [
|
|
"email",
|
|
"password"
|
|
],
|
|
"properties": {
|
|
"email": {
|
|
"type": "string",
|
|
"example": "admin@test.co.id"
|
|
},
|
|
"password": {
|
|
"type": "string",
|
|
"example": "123456"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "Login Success"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
{
|
|
"name": "Authentication",
|
|
"description": "Authentication"
|
|
}
|
|
]
|
|
} |