GithubHelp home page GithubHelp logo

kenzie-academy-brasil-developers / sprint5-entrega-nehamamandelbaum Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 42 KB

sprint5-entrega-nehamamandelbaum created by GitHub Classroom

TypeScript 98.91% Shell 1.09%

sprint5-entrega-nehamamandelbaum's Introduction

API for users administration

Endpoints:

POST /users -> Creates a new user

Request Body:

{
	"name": "Nehama",
	"email": "[email protected]",
	"password": "senhaforte123",
	"age": 22
}

Response:

{
	"name": "Nehama",
	"email": "[email protected]",
	"password": "$2a$10$vYUfyJMqeb6L1eUJ5ryPJevi07ejmV2kLYP6Fe8TR/ll1UBfx4yIO",
	"age": 22,
	"id": "672f78e5-7c74-4b27-9b59-6193c44f612d",
	"created_at": "2022-05-11T15:45:50.463Z",
	"updated_at": "2022-05-11T15:45:50.463Z"
}

GET /users -> Lists All the users

GET /users/:id -> Get user by ID

PATCH /users/:id -> Updates a user

  1. Send only the information that you wish to change.
  2. It's not possible to change your password in this route.

Request Body:

{
	"name": "Nehama Mandelbaum"
}

Response:

{
	"id": "672f78e5-7c74-4b27-9b59-6193c44f612d",
	"name": "Nehama Mandelbaum",
	"email": "[email protected]",
	"password": "$2a$10$vYUfyJMqeb6L1eUJ5ryPJevi07ejmV2kLYP6Fe8TR/ll1UBfx4yIO",
	"age": 22,
	"created_at": "2022-05-11T15:45:50.463Z",
	"updated_at": "2022-05-11T15:49:17.449Z"
}

DELETE /users/:id -> Deletes a user

sprint5-entrega-nehamamandelbaum's People

Contributors

nehamand avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.