Skip to content

API that allows a CRUD with users plus uploading of images as a profile photo

Notifications You must be signed in to change notification settings

Moises6669/API-CONTACTS-NODE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Phonebook

initialize project

npm install

create the database before initializing the server

create database CONTACTOS;

change the variables environment in /config/index.config.js

process.env.PASSWORD = 'your_password';
process.env.USERNAME = 'your_username';

What was used on this project

  • Nodejs
  • Express
  • Mysql
  • Postman

This is the list of endpoints currently available:

VerbResourceDescription
GET/api/userroutes.GetAllUsers
GET/api/user/:idroutes.GetOneUser
POST/api/userroutes.PostCreateUsers
PUT/api/user/:idroutes.PutUpdateUsers
DELETE/api/user/:idroutes.DeleteUsers
DELETE/api/user_img/:idroutes.DeleteImgUser
PUT/api/user_img/:idroutes.UpdateImgUser
GET/api/contactrouteContacts.getAllContacts
GET/api/contact/:idrouteContacts.getOneContacts
POST/api/contact/:id_userrouteContacts.PostContactId
PUT/api/contact/:id_userrouteContacts.PutContact
DELETE/api/contact/:id_userrouteContacts.DeleteContact
POST/api/loginrouteLogin.LoginUserPost

How to create a user in Postman:

new user

About

API that allows a CRUD with users plus uploading of images as a profile photo

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published