Skip to content

KaikySantos/crud-users-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’» How work ?

# Clone this repository
$ git clone https://github.com/KaikySantos/crud-users-api.git
# Access the project folder
$ cd crud-users-api

πŸ“¦ Rode a API

# Install the dependencies
$ yarn install

# Run the application
$ yarn start
# I recommend installing insomnia:
https://insomnia.rest/download/

πŸš€ Functionalities:

CRUD (CREATE, READ, UPDATE, DELETE)

Read:

HTTP PATH DESCRIPTION
GET /users List all registered users.

Create:

HTTP PATH DESCRIPTION
POST /users Register new user.

Observation: It is necessary to send a JSON with this structure:

{
	"name": "",
	"phone": "",
	"email": ""
}

Update:

HTTP PATH DESCRIPTION
PUT /users/{user_id} Edit an already registered user.

Observation: It is necessary to send a JSON with this structure:

{
	"name": "",
	"phone": "",
	"email": ""
}

Delete:

HTTP PATH DESCRIPTION
PUT /users/{user_id} Deletes a specific user.

About

πŸš€ Rest api that enables crud of users.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published