REST API's for blogging Application
https://aj1398.herokuapp.com
- Install dependencies
npm install
- Run Node server open terminal inside root folder
npm start
POST /register
Allows user to register herself on the platform with basic information
>Username, password, firstname, lastname, blogURL
POST /login
authenticates the user and provides him with an access_token in response.this access_token must be used for his authentication when he makes any request
For example if he makes a request to /blogpost he will need to send the access_token(which he got as a response when he made a request for login) with the body of request
PUT /follow/{username}
Allows you to follow new user. You need to send the user's name whom you want to follow as params
and your access_token with the body of request to authenticate yourself
POST / blogpost
Allows user to create a blog post with following parameters
...Title, content
You need to send the access_token with the body of request to authenticate yourself
GET /feed
Returns all blog posts of users you follow and you need to send the access_token in the headers of request to authenticate yourself