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

API resource for booking desks #12

Open
JimMadge opened this issue Sep 24, 2020 · 2 comments
Open

API resource for booking desks #12

JimMadge opened this issue Sep 24, 2020 · 2 comments
Assignees
Labels
api Issues related to the API enhancement New feature or request hacktoberfest Good for working towards your Hacktoberfest goal

Comments

@JimMadge
Copy link
Member

As an alternative to the desk booking form, there should be an API resource to create a booking record.

This will be a bit trickier than API endpoints which fetch data from the database. Booking need to be validated. There is already some logic in view.py book() which should be moved into separate functions (maybe methods of the Booking class?) so that it can be reused (rather than duplicated).

@JimMadge JimMadge added enhancement New feature or request api Issues related to the API hacktoberfest Good for working towards your Hacktoberfest goal labels Sep 24, 2020
@rpdswtk
Copy link

rpdswtk commented Oct 10, 2020

Hi @JimMadge,

I would like to work on this one.

@JimMadge
Copy link
Member Author

@rpdswtk Please do!

I haven't had a chance to have a proper look at your other PR yet, but if you want to do something similar and use flask-marshmallow I would be supportive. I'm not familiar with that module but it looks like it could save a lot of boiler plate code in the long run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issues related to the API enhancement New feature or request hacktoberfest Good for working towards your Hacktoberfest goal
Projects
None yet
Development

No branches or pull requests

2 participants