Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 721 Bytes

README.md

File metadata and controls

30 lines (19 loc) · 721 Bytes

phptest

Repository about a php test done in April 7.

Starting

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:

Delete

{"id":7}

Create

{"name":"Max"}

Update

{"id": 2, "name": "Andrew"}

Read

It's not necessary JSON for test because it only returns the tasks in the table.