Skip to content

ldev-r3-t4/frontend-server-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Server Repo - Large Scale - team 4

server - Frontend server

node app.js

EndPoints (server)

GET


  • /channels
    • (Returns array of channel ids)
  • /channels/:cid
    • (Returns the specified channel)
  • /channels/:cid/posts/:pid
    • (Returns the specified post in the specified channel)

POST


  • /channels
    • (Creates a new channel)
    • (Accepts JSON data)
    • (Returns the new channel id)
  • /channels/:cid/posts
    • (Creates a new post in the specified channel)
    • (Accepts JSON data)
    • (Returns the new post id)

PUT


  • /channels/:cid/posts/:pid
    • (Updates the specified post in the specified channel)
    • (Accepts JSON data)
    • (Returns "OK")

DELETE


  • /channels/:cid
    • (Deletes the specified channel)
    • (Returns "OK")
  • /channels/:cid/posts/:pid
    • (Deletes the specified post in the specified channel)
    • (Returns "OK")

Docker Tests (Main testing method)


Please read Testing.md

Postman Tests


localhost

Other


blob-storage (Optional Storage Server - Created for development)

node app.js

Releases

No releases published

Packages

No packages published