No delete endpoint for cards #5
Reference in New Issue
Block a user
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?
The generated openapi spec do not provide a delete endpoint for cards. Instead there is some GET endpoint
/cards/delete. Through the specs it is not clear what this endpoint is doing, or what arguments it needs.Please provide a DELETE endpoint
/cards/{card_id}, consider removing the other one if there is no special need for it.To be able to identify which card should be deleted/deactivated we need some form of identifier within the model. Adding a field "Name" of type string should be sufficient.
This value must be provided during creation within the body of the post request.
No, the delete endpoint is an action for the scanner. It scans the next card, finds the key, then looks it up, deletes the db entry and clears the card . User input is not required for this action. I can change the operation to DELETE tho.