Last updated 1 year ago
Was this helpful?
get all pages on the system
/pages
curl -L \ --url 'https://cm.test/api/pages'
{}
you can select a page by slug to view it's content
/pages/{model}
The model ID
curl -L \ --url 'https://cm.test/api/pages/{model}'
You can show all questions or filter by type_id
/faq
curl -L \ --url 'https://cm.test/api/faq'
List of tickets that created by the user
/tickets
curl -L \ --url 'https://cm.test/api/tickets'
You Can Open a New ticket with this API
curl -L \ --request POST \ --url 'https://cm.test/api/tickets' \ --header 'Content-Type: application/json' \ --data '{"subject":"text"}'
You Can View Ticket with Comments with this API
/tickets/{model}
curl -L \ --url 'https://cm.test/api/tickets/{model}'
You can Send A comment on the ticket by use this API
curl -L \ --request POST \ --url 'https://cm.test/api/tickets/{model}' \ --header 'Content-Type: application/json' \ --data '{"response":"text"}'
text