Update and create with ids or objects #90
Notifications
Due Date
No due date set.
Depends on
#66 Donation API
lfk/backend
Reference: lfk/backend#90
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Motivation
Right now most create and update actions that include other entities/relations require to provide the user to provide that entity's id.
To increase UX all create and update actions should accept plain numbers (or arrays of numers) and a custom class containing an id.
Examples
Example 1: Numbers only
When creating a new track scan you have to provide the card's and station's ids as plain numbers.
Example 2: Class only
When updateing a user you have to provide it's groups as an array containing objects that have the groups' ids as the property "id".
Due to limitations with jsonschema generation we'll just switch all endpoints to accepting numbers/number arrays of the relation's object's id