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


Register worker user


Register tester user


Register admin user



For api endpoints below, auth is required by 'Bearer token'

Content only for worker user


Content only for tester user


Content only for admin user


Form related endpoints:

List of all form - paginated


Data of single form


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:

Current user data


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)