Skip to content

Limit reserving to during restaurant open hours #39

@ipwnponies

Description

@ipwnponies

The schedules endpoint returns information for business hours. I think think this might be related to when the restaurant services mealpal orders:

The jsonpath is:

$.schedules[].restaurant.open
$.schedules[].restaurant.mpn_open

mealpy/tests/mealpy_test.py

Lines 223 to 226 in 3d10eb6

'open': '2019-04-01T00:00:00Z',
'close': '2019-04-01T00:00:00Z',
'mpn_open': '2019-04-01T00:00:00Z',
'mpn_close': '2019-04-01T00:00:00Z',

This can be useful to prevent user from reserving during closed times. Also can be added to list restaurants command output, so the user will have information to set up valid argument inputs.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions