jhosefmarks / app-demo-portinari-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample customers API

A sample for practice.

APIs

List all people

GET https://app-demo-portinari-api.herokuapp.com/api/samples/v1/people

Get a person data

GET https://app-demo-portinari-api.herokuapp.com/api/samples/v1/people/:id

Add new person

POST https://app-demo-portinari-api.herokuapp.com/api/samples/v1/people

{ "name": "name", "email": "email@email.com", "status": "Active" }

Update a person

PUT https://app-demo-portinari-api.herokuapp.com/api/samples/v1/people/:id

{ "nickname": "Dude", "street": "Street X" }

Remove a lote of people

DELETE https://app-demo-portinari-api.herokuapp.com/api/samples/v1/people

[
  { "id": 12345 },
  { "id": 67890 }
]

Remove a person

DELETE https://app-demo-portinari-api.herokuapp.com/api/samples/v1/people/:id

List some cities of Brazil

GET https://app-demo-portinari-api.herokuapp.com/api/samples/v1/cities

List all states of Brazil

GET https://app-demo-portinari-api.herokuapp.com/api/samples/v1/states

About

License:MIT License


Languages

Language:JavaScript 100.0%