Last updated 1 year ago
Was this helpful?
get all pages on the system
GET /api/pages HTTP/1.1 Host: cm.test Accept: */*
{}
you can select a page by slug to view it's content
The model ID
GET /api/pages/{model} HTTP/1.1 Host: cm.test Accept: */*
You can show all questions or filter by type_id
GET /api/faq HTTP/1.1 Host: cm.test Accept: */*
List of tickets that created by the user
GET /api/tickets HTTP/1.1 Host: cm.test Accept: */*
You Can View Ticket with Comments with this API
GET /api/tickets/{model} HTTP/1.1 Host: cm.test Accept: */*
You Can Open a New ticket with this API
POST /api/tickets HTTP/1.1 Host: cm.test Content-Type: application/json Accept: */* Content-Length: 58 { "name": null, "phone": null, "subject": "text", "message": null }
You can Send A comment on the ticket by use this API
POST /api/tickets/{model} HTTP/1.1 Host: cm.test Content-Type: application/json Accept: */* Content-Length: 19 { "response": "text" }
text