Last updated 1 year ago
Was this helpful?
get all pages on the system
curl -L \ --url 'https://cm.test/api/pages'
{}
you can select a page by slug to view it's content
The model ID
curl -L \ --url 'https://cm.test/api/pages/{model}'
You can show all questions or filter by type_id
curl -L \ --url 'https://cm.test/api/faq'
List of tickets that created by the user
curl -L \ --url 'https://cm.test/api/tickets'
You Can View Ticket with Comments with this API
curl -L \ --url 'https://cm.test/api/tickets/{model}'
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 '{ "name": null, "phone": null, "subject": "text", "message": null }'
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