List of the all available calls and the expected data to be sent and received. All of the data must be sent via the POST protocol.
Adds a new user to the database.
url: http://demo-users-api.goldenorbs.com/api/create
{ type: "success", message: "Created new user with ID: ?" }
Read user from the database using his `email` field as a key.
url: http://demo-users-api.goldenorbs.com/api/read
{ type: "success", message: "User found!", data: { id: "1", email: "your@email.com", givenName: "John", familyName: "Smith", created: "2018-12-16 07:49:49" } }
Updates user's data in the database using `id` field as a key.
url: http://demo-users-api.goldenorbs.com/api/update
{ type: "success", message: "Updated existing user with ID: 1" }
Deletes user from the database using his `id` field as a key.
url: http://demo-users-api.goldenorbs.com/api/delete
{ type: "success", message: "Deleted existing user with ID: 1" }
Read user's list from the database. As a option you can determine the start position of the listing, and the limit of the results.
Both parameters (`start`, and `limit`) are optional, and they accept "0" as a parameter too.
url: http://demo-users-api.goldenorbs.com/api/list
[ { id: 1, email: "your@email.com", givenName: "John", familyName: "Smith", created: "2018-12-16 09:39:30" }, { id: 1, email: "another@email.com", givenName: "Jenny", familyName: "Jones", created: "2018-12-16 11:01:00" }, ]