Skip to content

Latest commit

 

History

History
128 lines (105 loc) · 1.73 KB

File metadata and controls

128 lines (105 loc) · 1.73 KB

Http - Control 🤖

Some details

Error response

  • 400
{
    "text": "<string>",
    "details": "<string>"
}

POST /control/api/sign-in

Request body

{
    "login": "<string>",
    "password": "<string>"
}   

Responses

  • 200
{
    "access-token": "<jwt-string>"
}

GET /control/api/admin

Request headers

Key Value Type
Authorization Bearer jwt-string

Responses

  • 200
{
    "admins": [
        {
            "idr": "<int>",
            "login": "<string>"
        },
        ...
    ]
}

POST /control/api/admin

Request headers

Key Value Type
Authorization Bearer jwt-string

Request body

{
    "admin": {
        "login": "<string>",
        "password": "<string>",
    }
}

Responses

  • 200
{
    "idr": "<int>"
}

GET /control/api/topic

Request headers

Key Value Type
Authorization Bearer jwt-string

Responses

  • 200
{
    "topics": [
        {
            "idr": "<int>",
            "lang": "<int>",
            "name": "<string>"
        },
        ...
    ]
}

POST /control/api/topic

Request headers

Key Value Type
Authorization Bearer jwt-string

Request body

{
    "topics": [
        {
            "lang": "<int>",
            "name": "<string>"
        },
        ...
    ]
}

Responses

  • 200