Skip to content

Latest commit

 

History

History
77 lines (49 loc) · 1.66 KB

README.md

File metadata and controls

77 lines (49 loc) · 1.66 KB

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