Request :
- Method: GET
- Endpoint:
/persons
- Header :
- Accept : application/json
Response :
{
"count": "integer",
"result": [
{
"id": "integer",
"FirstName": "string",
"LastName": "string",
"CreatedAt": "string",
"UpdatedAt": "string",
"DeletedAt": "string"
}
]
}
Request :
- Method : GET
- Endpoint :
/person/{id_person}
- Header :
- Accept : application/json
Response :
{
"count": "integer",
"result": {
"id": "integer",
"FirstName": "string",
"LastName": "string",
"CreatedAt": "string",
"UpdatedAt": "string",
"DeletedAt": "string"
}
}
Request :
- Method : POST
- Endpoint :
/person
- Header :
- Accept : application/json
- Content-Type : application/json
- Body :
- first_name : string
- last_name : string
Response :
{
"message": "string",
"result": {
"id": "integer",
"FirstName": "string",
"LastName": "string",
"CreatedAt": "string",
"UpdatedAt": "string",
"DeletedAt": "string"
}
}
Request :
- Method : PUT
- Endpoint :
/person/{id_person}
- Header :
- Accept : application/json
- Content-Type : application/json
- Body :
- first_name : string
- last_name : string
Response :
{
"result": "string",
}
Request :
- Method : DELETE
- Endpoint :
/person/{id_person}
- Header :
- Accept : application/json
Response :
{
"result": "string",
}