API Endpoints
get
Authorizations
Responses
200
Successful Operation
application/json
ResponseanyExample:
{"statusCode":200,"data":{"subjectOptions":["Support","Suggestions"]}}
401
Failed because the authentication token is not sent or it has already expired.
application/json
404
An error occurred while sending the request to the external service.
application/json
get
GET /supports/subject-options HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
{
"statusCode": 200,
"data": {
"subjectOptions": [
"Support",
"Suggestions"
]
}
}
post
Authorizations
Body
namestringRequiredExample:
John Smith
emailstringRequiredExample:
[email protected]
subjectstringRequiredExample:
Suggestion
bodystringRequiredExample:
Lorem Ipsum is simply dummy text of the printing and typesetting industry
Responses
201
Successful Operation
application/json
ResponseanyExample:
{"statusCode":201}
401
Failed because the authentication token is not sent or it has already expired.
application/json
404
An error occurred while sending the request to the external service.
application/json
post
POST /supports/create-ticket HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 160
{
"name": "John Smith",
"email": "[email protected]",
"subject": "Suggestion",
"body": "Lorem Ipsum is simply dummy text of the printing and typesetting industry"
}
{
"statusCode": 201
}
get
Authorizations
Responses
200
Successful Operation
application/json
ResponseanyExample:
{"statusCode":200,"data":{"tickets":[{"requestId":1,"subject":"Suggestion","description":"Lorem Ipsum is simply dummy text of the printing and typesetting industry","status":"Open","createdAt":"2022-08-20T22:55:29Z"}]}}
401
Failed because the authentication token is not sent or it has already expired.
application/json
404
An error occurred while sending the request to the external service.
application/json
get
GET /supports/tickets HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
{
"statusCode": 200,
"data": {
"tickets": [
{
"requestId": 1,
"subject": "Suggestion",
"description": "Lorem Ipsum is simply dummy text of the printing and typesetting industry",
"status": "Open",
"createdAt": "2022-08-20T22:55:29Z"
}
]
}
}
Last updated
Was this helpful?