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 /incidents/bymonth/2019/08 endpoint #104

Merged
merged 1 commit into from
Aug 19, 2019
Merged

Conversation

milesbxf
Copy link
Contributor

Adds an API view that allows listing all incidents in a given calendar
month.

router.register(r'ExternalUser', ExternalUserViewSet)
router.register(r"incidents", IncidentViewSet, basename="incident")
router.register(
r"incidents/bymonth/(?P<year>[0-9]{4})/(?P<month>[0-9]{2})",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to other comment, there's a nicer syntax now. Not required though: https://docs.djangoproject.com/en/2.2/topics/http/urls/#example

mattrco
mattrco previously approved these changes Aug 19, 2019
Adds an API view that allows listing all incidents in a given calendar
month.
@milesbxf milesbxf merged commit 755c06f into master Aug 19, 2019
@milesbxf milesbxf deleted the incidents-by-month branch August 19, 2019 14:33
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

Successfully merging this pull request may close these issues.

2 participants