npm install
create database CONTACTOS;
process.env.PASSWORD = 'your_password';
process.env.USERNAME = 'your_username';
- Nodejs
- Express
- Mysql
- Postman
This is the list of endpoints currently available:
| Verb | Resource | Description |
|---|---|---|
| GET | /api/user | routes.GetAllUsers |
| GET | /api/user/:id | routes.GetOneUser |
| POST | /api/user | routes.PostCreateUsers |
| PUT | /api/user/:id | routes.PutUpdateUsers |
| DELETE | /api/user/:id | routes.DeleteUsers |
| DELETE | /api/user_img/:id | routes.DeleteImgUser |
| PUT | /api/user_img/:id | routes.UpdateImgUser |
| GET | /api/contact | routeContacts.getAllContacts |
| GET | /api/contact/:id | routeContacts.getOneContacts |
| POST | /api/contact/:id_user | routeContacts.PostContactId |
| PUT | /api/contact/:id_user | routeContacts.PutContact |
| DELETE | /api/contact/:id_user | routeContacts.DeleteContact |
| POST | /api/login | routeLogin.LoginUserPost |
