Skip to content

Latest commit

 

History

History
37 lines (34 loc) · 734 Bytes

README.md

File metadata and controls

37 lines (34 loc) · 734 Bytes

Mini-Twitter

A simple twitter backend RESTful service in Golang, powered by Gin

  • User sign-up

    • POST /users
    • Request body
      {
            "username": "Bradley",
            "password": "33521",
            "email": "[email protected]"
      }
  • Post tweet in text

    • POST /tweets
    • Request body
      {
            "user": "Bradley",
            "text": "let's rock!"
      }
  • Access timeline

    • GET /timeline/username
  • Access tweets

    • GET /tweets/username
  • Follow and Unfollow users

    • POST users/follow and users/unfollow
    • Request body
      {
         "from": "Bradley",
         "to": "Duncan"
      }