FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 7dc591fc authored by E. Evstafiev's avatar E. Evstafiev :bulb:
Browse files

fix(api): update version of api in path

parent 0b88af1c
No related branches found
No related tags found
1 merge request!52Resolve "Ensure OpenAPI specification is generated correctly"
......@@ -39,7 +39,7 @@ urlpatterns = [
path("", include("api.urls")),
# Include the v1alpha urls - allowing for any release version, the version is validated
# by setting REST_FRAMEWORK.ALLOWED_VERSIONS in settings.base
path("v1alpha/", include(("api.v1alpha.urls", "v1alpha1"), namespace="v1alpha1")),
path("v1alpha1/", include(("api.v1alpha.urls", "v1alpha1"), namespace="v1alpha1")),
]
# Selectively enable django debug toolbar URLs. Only if the toolbar is
......
......@@ -14,7 +14,7 @@ def test_version_view_is_correct(authenticated_api_client):
# ensure we get the expected response
assert response.status_code == status.HTTP_200_OK
assert response.data == {"v1alpha1": "http://testserver/v1alpha/"}
assert response.data == {"v1alpha1": "http://testserver/v1alpha1/"}
# ensure that all the urls for the different versions return a success response code
for url in response.data.values():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment