Skip to content

Simple node api no framework using native node modules and using local database

License

Notifications You must be signed in to change notification settings

abubacar-dev/node-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node API

Simple node api no framework using native node modules and using local json database

Reference

API Documentation

To test this project run:

npm run dev

Return all users

GET http://localhost:3333/users

Return filtered user

GET http://localhost:3000/users?search=${name}

Parameter Type Description
name string Mandatory.

Create new user

POST http://localhost:3333/users

    {
        "name": "Jonh Doe",
        "email": "jomhdoe@gmail.com"
    }

Update user

PUT http://localhost:3333/users/${ID-UUID}

    {
        "name": "Jonh Doe Doe",
        "email": "jomhdoedoe@gmail.com"
    }
Parameter Type Description
id string Mandatory.

Delete user

DELETE http://localhost:3333/users/${ID-UUID}

Parameter Type Description
id string Mandatory.

Appendix

  • node version require > v16 (LTS)

Autor

Tags

MIT License

Demonstration

Developed with ❤️ by Mussinady Abubacar

About

Simple node api no framework using native node modules and using local database

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published