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

Add PATCH action to plot #11

Open
SvenPam opened this issue Feb 3, 2019 · 0 comments
Open

Add PATCH action to plot #11

SvenPam opened this issue Feb 3, 2019 · 0 comments
Labels
feature feature branch mentoring Ste is mentoring Jax!

Comments

@SvenPam
Copy link
Owner

SvenPam commented Feb 3, 2019

Add a PATCH action to update beds on a plot.

PATCH /api/allotments/{id}/plot/{id}
Example Body: {
x: 1
y: 1,
bedId: 123456-78910-xxx
}

When this body is sent to the endpoint, the plot service should then work to add the bed to the plot. If a plot is already in that place, every other plot x value should be incremented.

Finally, this updated plot entity needs to be saved via a repository.

@SvenPam SvenPam added mentoring Ste is mentoring Jax! feature feature branch labels Feb 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature feature branch mentoring Ste is mentoring Jax!
Projects
None yet
Development

No branches or pull requests

1 participant