/node.js-fundamentals

I developed a RESTful API with node.js focused on the fundamentals of technology, without frameworks or external libraries. I went deeper into node.js like HTTP, requests, response, headers, status code, route and query parameters, etc. I

Primary LanguageJavaScript

Study node.js fundamentals.

  • Create user
  • User edit
  • Delete user.

HTTP

  • HTTP method
  • URL
  • GET => Search for information in bank-end.
  • POST => Create a resource on the backend.
  • PUT => Update a resource on the backend.
  • PATCH => Update specific information of a resource in the backend.
  • DELETE => Delete a resource from the backend.
GET /USERS  
POST /USERS 

HTTP response status codes

HTTP response status codes indicate whether a specific HTTP request has been successfully completed. Responses are grouped in five classes:

  • Informational responses (100 – 199)
  • Successful responses (200 – 299)
  • Redirection messages (300 – 399)
  • Client error responses (400 – 499)
  • Server error responses (500 – 599)

Route e Query parameters

  • Query Parameters: URL Stateful => filters, pagination
  http://localhost:3333/users?userId=1&name=Lucas
  • Route Parameters: Identificação de recurso
  • Request Body: Sending information from a form (HTTPS).
  Get http://localhost:3333/users/1