-
Notifications
You must be signed in to change notification settings - Fork 3
api endpoints
members: list of user_id of users in group
GET members in group for leaderboard view
name: name of user groups: list of the names of groups user is member of
GET all groups of the current user
name: name of punishment type value: integer of the value of the punishment in NOK image: icon of the punishment type represented somehow
GET all punishment types for leaderboard view PUT new punishment types
DEL and PATCH are forbidden, to not mess up existed punishments (alternatively only forbidden if punishments using the type exist)
to: user_id of user who recieved the punishment giver: user_id of user who gave the punishment group: group in which the punishment was given type: name of the punishment type reason: explanation provided by giver on creation date: date punishment was created active: boolean whether or not punishment remains unpaid
PUT new punishment PATCH change status of existing punishment DEL delete punishment
"Amount" feature from Redwine not present currently
name: name of the user punishments_in_group: list of punishments user has recieved that are in the group. Each punishment is represented with the same fields as in /punishments/ punishments_in_group_sum: sum of the value of punishments
GET the punishments of user in a specific group for leaderboard view
punishments_in_group__to and punishmets_in_group__group are implied, can be omited
"wall of shame" url and behavior currently not defined