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
-
Post tweet in text
- POST
/tweets
- Request body
{ "user": "Bradley", "text": "let's rock!" }
- POST
-
Access timeline
- GET
/timeline/username
- GET
-
Access tweets
- GET
/tweets/username
- GET
-
Follow and Unfollow users
- POST
users/follow
andusers/unfollow
- Request body
{ "from": "Bradley", "to": "Duncan" }
- POST