A REST API Ticketing System which assigns the incoming tickets to persons based on the Round Robin principle.
POST /ticket
Parameter | Type | Description |
---|---|---|
user_id |
string |
Required. The ID of the user who raised the ticket |
issue |
string |
Required. The description of the issue |
{
"message" : string,
"success" : bool,
"data" : json
}
The message
attribute contains a message commonly used to indicate errors or, in the case of deleting a resource, success that the resource was properly deleted.
The success
attribute describes if the transaction was successful or not.
The data
attribute contains a nested JSON object in the following format,
{
"ticket_id" : string,
"assigned_to" : string,
}
The ticket_id
attribute contains the ID generated by the ticketing system.
The assigned_to
attribute contains the ID of the user that the ticket has been assigned to by the ticketing system.
Status Code | Description |
---|---|
200 | OK |
201 | CREATED |
400 | BAD REQUEST |
404 | NOT FOUND |
500 | INTERNAL SERVER ERROR |