Skip to content

reactHackerNewsBW/Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend

Un-authorized endpoints:

GET all stories: https://bw-backend-hn.herokuapp.com/api/stories

GET story by id: https://bw-backend-hn.herokuapp.com/api/stories/:id <--- (USE number to index through stories like /1)

POST story: https://bw-backend-hn.herokuapp.com/api/poststories

Authorized endpoints:

GET all stories: https://bw-backend-hn.herokuapp.com/authapi/stories

GET story by id: https://bw-backend-hn.herokuapp.com/authapi/stories/:id <--- (USE number to index through stories like /1)

POST story: https://bw-backend-hn.herokuapp.com/authapi/poststories

Register User:

POST https://bw-backend-hn.herokuapp.com/api/auth/register

-You need a username and a password. Required

-Also can put in email, first name (use firstName), last name (use lastName), and I have a created_at variable which shows the time a person was registered.

Login with User:

POST https://bw-backend-hn.herokuapp.com/api/auth/login

-You need a username and a password. Required

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •