Desafio-Back-end-Cubos-03
This project was the third challange to create a RESTful API in Node.js with Postgres for bank-transactions.
git clone git@github.com:PauloHartelt/Desafio-Back-end-Cubos-03.git
cd Desafio-Back-end-Cubos-03
npm install
npm run dev
To use the API, simply send HTTP requests to the available endpoints.
Here are the endpoints available in the API:
GET /user
: Returns a list of all registered users.
POST /user
: Creates a new user based on the data provided in the request body.
PUT /user
: Updates information for the user on the data provided in the request body.
POST /login
: Creates a new acess token based on the data provided in the request body and log the user.
GET /category
: Returns a list of all registered categories.
GET /transaction
: Returns a list of all registered transactions of that user.
GET /transaction/extract
: Returns a list of all registered extracts of that user.
GET /transaction/:id
: Returns information for the user transaction with the specified ID.
POST /transaction
: Creates a new transaction based on the data provided in the request body.
PUT /transaction/:id
: Updates information for the transaction with the specified ID based on the data provided in the request body.
DELETE /transaction/:id
: Deletes the transaction with the specified ID.
To use the API, send HTTP requests to these endpoints using an HTTP client such as Postman, Insomnia or cURL.
We welcome contributions to this project! To contribute, follow these steps:
git checkout -b my-feature
git commit -m 'My new feature'
git push origin my-feature
Gabriel Magalhães |
Paulo Hartelt |
---|
If you have any questions or suggestions about this project, feel free to contact me through my GitHub profile: @PauloHartelt.