API Documentation - nmount/unNamedRepo GitHub Wiki

API Documentation / Backend Routes

Tweets

  • POST /api/posts
    • Creates a new post
  • GET /api/post
    • Get a single post
  • GET /api/posts/:(location or friends)
    • Gets all posts for specific.. data set
  • DELETE /api/posts/:id
    • Deletes a post
  • PUT /api/posts/:id
    • Edits a post

Comments

  • POST /api/comments
    • Creates a new comment
  • GET /api/comments
    • Gets comments from a given post
  • DELETE /api/comments/:id
    • Deletes a comment
  • PUT /api/comments/:id
    • Edits a comment

Location