Skip to content

Latest commit

 

History

History
33 lines (16 loc) · 1015 Bytes

File metadata and controls

33 lines (16 loc) · 1015 Bytes

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