Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bryamjesus/ns-backend
Project Final
https://github.com/bryamjesus/ns-backend
cors final-project javascript jsonwebtoken learn learning mongodb mongoose nodejs nodemon
Last synced: about 1 month ago
JSON representation
Project Final
- Host: GitHub
- URL: https://github.com/bryamjesus/ns-backend
- Owner: bryamjesus
- Created: 2022-11-10T22:54:16.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-06T15:13:51.000Z (about 2 years ago)
- Last Synced: 2023-03-10T02:17:49.328Z (almost 2 years ago)
- Topics: cors, final-project, javascript, jsonwebtoken, learn, learning, mongodb, mongoose, nodejs, nodemon
- Language: JavaScript
- Homepage:
- Size: 3.47 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nacho Store - API
Clone o descargue el proyecto y en la consola ponga el siguiente comando
```bash
npm i
```## Endpoint User
| Método | Ruta | Descripción |
| ------ | ------------------------------------ | ------------------------- |
| POST | http://localhost:3000/api/user/login | Login |
| GET | http://localhost:3000/api/user | Listar todos los usuarios |
| GET | http://localhost:3000/api/user/id | Listar un usuario |
| POST | http://localhost:3000/api/user | Crear usuario |
| PUT | http://localhost:3000/api/user/id | Editar usuario |
| DELETE | http://localhost:3000/api/user/id | Eliminar usuario |## Endpoint Category
| Método | Ruta | Descripción |
| ------ | ------------------------------------- | --------------------------- |
| GET | http://localhost:3000/api/category | Listar todas las categorías |
| GET | http://localhost:3000/api/category/id | Listar una categoría |
| POST | http://localhost:3000/api/category | Crear categoría |
| PUT | http://localhost:3000/api/category/id | Editar categoría |
| DELETE | http://localhost:3000/api/category/id | Eliminar categoría |