Skip to content

Commit

Permalink
bug fix on entity creation
Browse files Browse the repository at this point in the history
Was due to missing url routing because apis/urls.py hadn't contained the
same data as apis-core/apis/urls.py had. Namely generic URI routing to
<APIS_BASE_URI> + /entity/<int:pk>.
  • Loading branch information
SteffRhes committed Nov 28, 2023
1 parent 34c204f commit 4627a5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apis/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@
{"NAME": "django.contrib.auth.password_validation.NumericPasswordValidator"},
]

APIS_BASE_URI = "https://sola.acdh-dev.oeaw.ac.at/apis/api/entity/"
APIS_BASE_URI = "https://sola.acdh-dev.oeaw.ac.at/"


APIS_MIN_CHAR = 3

Expand Down
5 changes: 4 additions & 1 deletion apis/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
from django.contrib import admin
from django.conf import settings
from rest_framework import routers
from django.urls import path

from apis_core.apis_entities.api_views import GetEntityGeneric

urlpatterns = [
url(r'^apis/', include('apis_core.urls', namespace="apis")),
url(r'^apis/', include('apis_core.urls', namespace="apis")),
url(r'^bibsonomy/', include('apis_bibsonomy.urls', namespace="bibsonomy")),
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
url(r'^bibsonomy/', include('apis_bibsonomy.urls', namespace="bibsonomy")),
path(r"entity/<int:pk>/", GetEntityGeneric.as_view(), name="GetEntityGenericRoot"),
url(r'^admin/', admin.site.urls),
url(r'^', include('webpage.urls', namespace='webpage')),
]
Expand Down

0 comments on commit 4627a5e

Please sign in to comment.