Repository about a php test done in April 7.
First step to test the manager task API, it's create a database called 'manager', after we needed to create a table with name 'task'.
CREATE TABLE IF NOT EXISTS
tasks
(
id
int(11) NOT NULL AUTO_INCREMENT COMMENT 'Task ID',
name
varchar(100) NOT NULL COMMENT 'Task Name',
PRIMARY KEY (id
)
)
To test the API, was used the software Postman and for the development, XAMPP.
Here, it's some JSONs used on tests:
{"id":7}
{"name":"Max"}
{"id": 2, "name": "Andrew"}
It's not necessary JSON for test because it only returns the tasks in the table.