Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Create resources for tt: format, state and event #30

Open
majorbruteforce opened this issue Dec 30, 2024 · 0 comments
Open

[feat] Create resources for tt: format, state and event #30

majorbruteforce opened this issue Dec 30, 2024 · 0 comments
Assignees

Comments

@majorbruteforce
Copy link
Member

  • Create independent entities TTFormats, TTStates and TTEvents under base path /tt
  • The following additional endpoints are expected :
    • GET /:matchId/state : To fetch the latest match state
    • GET /:matchId/event?id=previousEventId : To fetch the most recent event next to the passed event (get most recent if nothing is passed)
    • GET /:matchId/event-series?id=previousEventId : To fetch all the events for the match sorted in descending order of time after the event with id previousEventId. (get all if nothing is passed)
    • POST /:matchId/event : To post a new event.
    • PATCH /event/:eventId : To patch a created event
    • DELETE /event/:eventId : To delete a created event

NOTE: Comment the schema for the three entities in the same thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants