-
Notifications
You must be signed in to change notification settings - Fork 1
Technical Specification
Gail Terman edited this page Jul 10, 2022
·
4 revisions
- rethink db
- mongo
- mysql
- can we just use the db as the backend? probably
- express
- flask
- angular
- svelte
- react-native-web
- nativescript
- angular
- svelte
- react-native
- flutter
id: stringdeviceId: stringtitle: stringcurrPlayers: numbermaxPlayers: numberstartTime: ISO-8601endTime: ISO-8601location: string-
bggId: string- for v2 status: "waiting" | "started" | "cancelled"eventId: string-
featured: boolean- for v2
id: stringname: stringstartDate: ISO-8601endDate: ISO-8601eventPassword: (hashed) stringadminPassword: (hashed) string
-
SavePlay(play: Play)SetLocation(location: string, id?: string)AddPlayer(id?: string)DropPlayer(id?: string)StartPlay(id?: string)CancelPlay(id?: string)
DeletePlay(id: string)SelectPlay(id: string)UnselectPlayGetPlaysGetPlay(id?: string)
GetEventsGetEvent(id?: string)SelectEvent(id: string)UnselectEventSaveEvent(event: Event)ValidateEventAccess(password: string)ValidateAdminAccess(password: string)
- uses deviceId as unique identifier in the system
- no password or anything
- to see event info, must have jwt saying they have event access?
- has additional access privs on their event jwt (?)
- only releases information if you have the right auth in your jwt
If the id is not specified, it will use the current selected play if there is one, or throw an error