- run
npm install
to install the packages needed. - run
node server.js
to create a local node server. - make your http request.
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 |