Receive and store actual Telegram exceptions
{
"title": "TelegramException",
"type": "object",
"properties": {
"code": {"title": "Code", "type": "integer"},
"name": {"title": "Name", "type": "string"},
"description": {"title": "Description", "type": "string"},
"required": ["code", "name", "description"]
}
}
To post an exception send POST request with json object to http://{host}/exception
path.
E.g:
{
"code": 400,
"name": "BadRequest",
"description": "Something went wrong!"
}
Also you can send a list of objects. E.g:
[
{
"code": 400,
"name": "BadRequest",
"description": "Something went wrong!"
},
{
"code": 401,
"name": "AnotherBadRequest",
"description": "Something went wrong again!"
}
]
To get all stored exceptions send GET request to http://{host}/exception
path.
Method will return a JSON with a list of exception objects.