Moving events and superevents APIs into api app
Moved events.api and superevents.api into the new api app. We want to have a versioned API, so these are now in api.v1.events and api.v1.superevents, respectively. Part of this change is that we require a custom reverse function (api_reverse) for handling versioning. Much of the required code changes for this migration include converting reverses to use this function and changing relative imports appropriately.
Showing
- config/settings/base.py 13 additions, 3 deletionsconfig/settings/base.py
- config/urls.py 4 additions, 6 deletionsconfig/urls.py
- gracedb/alerts/superevent_utils.py 1 addition, 1 deletiongracedb/alerts/superevent_utils.py
- gracedb/api/exceptions.py 0 additions, 0 deletionsgracedb/api/exceptions.py
- gracedb/api/urls.py 9 additions, 0 deletionsgracedb/api/urls.py
- gracedb/api/utils.py 86 additions, 0 deletionsgracedb/api/utils.py
- gracedb/api/v1/backends.py 0 additions, 0 deletionsgracedb/api/v1/backends.py
- gracedb/api/v1/events/fields.py 9 additions, 3 deletionsgracedb/api/v1/events/fields.py
- gracedb/api/v1/events/tests/__init__.py 0 additions, 0 deletionsgracedb/api/v1/events/tests/__init__.py
- gracedb/api/v1/events/tests/mixins.py 0 additions, 0 deletionsgracedb/api/v1/events/tests/mixins.py
- gracedb/api/v1/events/throttles.py 0 additions, 0 deletionsgracedb/api/v1/events/throttles.py
- gracedb/api/v1/events/urls.py 79 additions, 0 deletionsgracedb/api/v1/events/urls.py
- gracedb/api/v1/events/views.py 71 additions, 247 deletionsgracedb/api/v1/events/views.py
- gracedb/api/v1/fields.py 4 additions, 2 deletionsgracedb/api/v1/fields.py
- gracedb/api/v1/main/__init__.py 0 additions, 0 deletionsgracedb/api/v1/main/__init__.py
- gracedb/api/v1/main/views.py 170 additions, 0 deletionsgracedb/api/v1/main/views.py
- gracedb/api/v1/superevents/base_viewsets.py 2 additions, 2 deletionsgracedb/api/v1/superevents/base_viewsets.py
- gracedb/api/v1/superevents/filters.py 8 additions, 4 deletionsgracedb/api/v1/superevents/filters.py
- gracedb/api/v1/superevents/mixins.py 1 addition, 0 deletionsgracedb/api/v1/superevents/mixins.py
- gracedb/api/v1/superevents/paginators.py 5 additions, 4 deletionsgracedb/api/v1/superevents/paginators.py
Loading
Please register or sign in to comment