All date-time in UTC time zone.
Responces look like:
{
"message": "some text",
"data": [],
"errors": {
"email": [
"The email field is required."
],
"password": [
"The password field is required."
]
},
"auth_token": "14|1BVMSgNbuSPHlRxjm0VYgS1rINbL1vjnfxxP3WiT97d56163",
}
Api endpoints for Auth
Get token by credentionals - Expires after 9 hours
For api endpoints below, auth is required by 'Bearer token'
Form related endpoints:
List of all form - paginated
List of all un verified forms - only by tester
Create form - only by worker
Verify form by form_id - only by tester
Assign form to user by form_id and user_id - only by tester
Update form type - only by worker
Update From Content
- only by worker, Post request, Fields: form_id (integer), content (json)
List of all from templates - only by admin
List of all from templates types
Detailed form template by it type
Create new form template - only by admin, Post request, Fields: name (string), layout (json), type (string:unique)
Update existing form template
- only by admin, Post request, Fields: name (string:optional), layout (json:optional), type (string)
logs:
List of all logs caused by forms changes - paginated
List of all logs caused by forms changes, with filter rules - all rules is optional, paginated
Users related endpoints:
List of all users - paginated, only for Admin user
Rename target user - only for Admin user
Deactivate target user - only for Admin user
Activate target user - only for Admin user
Files related endpoints:
Upload the image file - Post request. Fields: image (file, max:8mgb, mimes:jpeg,png,jpg,gif)