Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow bills to be deleted #6

Closed
thomaseizinger opened this issue Jan 4, 2018 · 0 comments
Closed

Allow bills to be deleted #6

thomaseizinger opened this issue Jan 4, 2018 · 0 comments
Assignees

Comments

@thomaseizinger
Copy link
Member

The API should allow to delete bills from a nobt, however, they should not be actually deleted from the DB but instead "marked" deleted with a flag or something like that. During the debt-calculation, these bills have to be filtered out.

Also, the API should advertise to the client that bills can be deleted. I would suggest adding a link to each bill's resource payload like this:

{
	"id": 3,
	"name": "Beer",
        // other properties
	"_links": {
		"delete": {
			"href": "..."
		}
	}
}

For now, this link is always present. Later on, we can change whether or not bills can be deleted by excluding the links under certain conditions (e.g. time-limit etc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants