- demo : https://github.com/yurdigrfnn/fe-todo
- this is API docs
- Inspired by Swagger API docs style & structure: https://petstore.swagger.io/#/pet
POST
/
(This method for register or login)
param type data type body description api/register
required
object (JSON)
{"email" : "example@email" ,"password" : "example"}
create user
api/signin
required
object (JSON)
{"email" : "example@email" ,"password" : "example"}
Login user
http code content-type response 200
application/json
{"isError": false, "message": "succes to create user/login"}
401
application/json
{"isError": true, "message": "unautorization"}
GET
/
(this method for get todo and get validation)
name type data type response description api/todo
required
object (JSON)
{"isError": false,"todos": [],"page": 2,
get todo with parameter limit & page
api/validate
required
object (JSON)
{"email" : "example@email" ,"password" : "example"}
get user
PUT
(edit todo by id)
param type body description api/todo/{id}
required {"name" : "example" ,"complete" : bool }
Edit tode
http code content-type response 200
application/json
{"isError": false,"todos": {} }
401
application/json
{"isError": true ,"message":"unauthoriz/todo not found"}
POST
(Crate todo)
param type body description api/todo/
required {"name" : "example"
Edit tode
http code content-type response 200
application/json
{"isError": false,"todos": {} }
401
application/json
{"isError": true ,"message":"unauthorize"}