Skip to content

[feat] Create resources for football: format, state and event #27

@majorbruteforce

Description

@majorbruteforce
  • Create independent entities FootballFormats, FootballStates and FootballEvents under base path /football
  • 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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions