Working with users table
+id
+first_name
+second_name
+age
+date_of_birth
Returns table of users in JSON.
main GET /api.php?action=get
+action (action for the server)
Data array containing all records from the table users
Contains methods to create, update and delete records in table of users.
Creating new record in table of users.
main POST /api.php
+action (action for the server)
+first_name (First name of user)
+second_name (Second name of user)
+age (age of the user)
+date_of_birth (Date of birth user)
main POST /api.php
{
action:"create",
first_name:"Maks"
second_name:"Elsukov"
age:"21"
date_of_birth:"1996-02-21"
}
The data array containing the operation status and the created record
Updating the selected entry from the user table
main POST /api.php
+action (action for the server)
+id (unique user indentifier)
+first_name (First name of user)
+second_name (Second name of user)
+age (age of the user)
+date_of_birth (Date of birth user)
main POST /api.php
{
action:"update",
id:"1"
first_name:"Kiril"
second_name:"Zubarev"
age:"24"
date_of_birth:"1993-10-13"
}
The data array containing the operation status
Delete the selected record from the user table
main POST /api.php
+action (action for the server)
+id (unique user indentifier)
main POST /api.php
{
action:"delete",
id:"1""
}
The data array containing the operation status