Simple REST-API with nodejs

How to install

  1. run npm install to install the packages needed.
  2. run node server.js to create a local node server.
  3. make your http request.

API endpoints

base url: http://127.0.0.1:3000/

method/type path Parameters Responses Description
POST users/register user object ex: {"name":"dummy name","username":"dummy username","email":"dummyemail@gmail.com","password":"mypassword"} 200 status, registered user this path is for registering a user to the db
POST users/login login infos {"email":"dummyemail@gmail.com","password":"mypassword"} 200 status, user info this path used for login
GET campaigns/list none campaigns list this path used to list all of the campaigns available