Rewrite in Go #1

Open
opened 2018-03-05 20:52:29 +00:00 by howl · 0 comments
howl commented 2018-03-05 20:52:29 +00:00 (Migrated from zxq.co)

No way I'm adding new stuff to this thing. Porting to Go should be pretty straightforward. Let's also take the chance to make the API restful.

  • /tournaments: done, but now my_team and my_team_name are not in there anymore. Solution: ?member= to /team
    • /tournaments/:id
      • /tournaments/:id/rules (/tournaments/rules)
      • /tournaments/:id/teams
      • POST /tournaments/:id/teams (/tournaments/register)
      • /tournaments/:id/posts
      • POST /tournaments/:id/posts
        • /tournaments/:id/posts/:pid
        • DELETE /tournaments/:id/posts/:pid
  • /teams
    • with ?member=:id
    • /teams/:id (/teams/team)
    • PATCH /teams/:id (rename)
    • DELETE /teams/:id (disband)
      • /teams/:id/members
        • PUT /teams/:id/members/:uid (invite)
        • DELETE /teams/:id/members/:uid (kick)
  • /invites (?filter={accepted,declined,pending})
    • /invites/:id
    • PATCH /invites/:id (both accept and decline. This changes the status of the request in the db, and in case of declining it will change the status to -1. This allows us to forbid re-inviting the user many times)
  • PUT /fcm_token
  • oauth
    • /oauth_flow_start -> /oauth/start
    • /oauth_flow_finish -> /oauth/finish (redirecting old url to new)
No way I'm adding new stuff to this thing. Porting to Go should be pretty straightforward. Let's also take the chance to make the API restful. - [x] /tournaments: done, but now my_team and my_team_name are not in there anymore. Solution: ?member= to /team - [x] /tournaments/:id - [x] /tournaments/:id/rules (/tournaments/rules) - [x] /tournaments/:id/teams - [ ] POST /tournaments/:id/teams (/tournaments/register) - [ ] /tournaments/:id/posts - [ ] POST /tournaments/:id/posts - [ ] /tournaments/:id/posts/:pid - [ ] DELETE /tournaments/:id/posts/:pid - [x] /teams - [x] with ?member=:id - [x] /teams/:id (/teams/team) - [ ] PATCH /teams/:id (rename) - [ ] DELETE /teams/:id (disband) - [x] /teams/:id/members - [ ] PUT /teams/:id/members/:uid (invite) - [ ] DELETE /teams/:id/members/:uid (kick) - [ ] /invites (?filter={accepted,declined,pending}) - [ ] /invites/:id - [ ] PATCH /invites/:id (both accept and decline. This changes the status of the request in the db, and in case of declining it will change the status to -1. This allows us to forbid re-inviting the user many times) - [x] PUT /fcm_token - oauth - [x] /oauth_flow_start -> /oauth/start - [x] /oauth_flow_finish -> /oauth/finish (redirecting old url to new)
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ripple/misirlou-api#1
No description provided.