Skip to content

jainaman1398/Blog_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog_app

REST API's for blogging Application

Hosted App link

https://aj1398.herokuapp.com

STEPS TO SETUP

  1. Install dependencies
  npm install
  1. Run Node server open terminal inside root folder
npm start

API DOCUMENTATION

1) Register

alt text POST /register Allows user to register herself on the platform with basic information >Username, password, firstname, lastname, blogURL

2) Login

alt text

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 

3) Follow

alt text

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

4) Creating Blogpost

alt text

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

5) Getting blog feed of users you follow

alt text

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published