# Clone this repository
$ git clone https://github.com/KaikySantos/crud-users-api.git
# Access the project folder
$ cd crud-users-api
# Install the dependencies
$ yarn install
# Run the application
$ yarn start
# I recommend installing insomnia:
https://insomnia.rest/download/
HTTP | PATH | DESCRIPTION |
---|---|---|
GET | /users | List all registered users. |
HTTP | PATH | DESCRIPTION |
---|---|---|
POST | /users | Register new user. |
{
"name": "",
"phone": "",
"email": ""
}
HTTP | PATH | DESCRIPTION |
---|---|---|
PUT | /users/{user_id} | Edit an already registered user. |
{
"name": "",
"phone": "",
"email": ""
}
HTTP | PATH | DESCRIPTION |
---|---|---|
PUT | /users/{user_id} | Deletes a specific user. |