Skip to content

Taha-Chaudhry/node-rest-api

Repository files navigation

Express REST API

REST API that acesses a json file instead of a database

Powered by:

With Node.js

node index.js

With Docker

docker run --name node-rest-api -p 3000:3000 -d node-rest-api

API Reference

GET endpoints

Get all users' data

GET /api/users/

Get user data by id

GET /api/users/${id}

POST endpoint

Adds user based on request body

POST /api/addUser
Body Type
name String
password String
proffession String

About

A simple REST api built with Node and Express.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published