Page MenuHomec4science

urls.py
No OneTemporary

File Metadata

Created
Thu, Nov 21, 12:22
from django.urls import path, re_path, include
from django.conf.urls.static import static
from django.conf import settings
from .views import JournalViewSet, InstitViewSet, OrganizationConditionViewSet, JournalConditionViewSet, ConditionSetViewSet, FunderViewSet
from . import views
from rest_framework import routers
from rest_framework.schemas import get_schema_view
router = routers.DefaultRouter()
router.register(r'journal', JournalViewSet)
router.register(r'institution', InstitViewSet)
router.register(r'funder', FunderViewSet)
router.register(r'organizationcondition', OrganizationConditionViewSet)
router.register(r'journalcondition', JournalConditionViewSet)
router.register(r'conditionset', ConditionSetViewSet)
urlpatterns = [
path('', include(router.urls)),
path('openapi', get_schema_view(
title="OACCT API",
description="API of the Open Access Compliance Check Tool (OACCT)",
version ="0.0.1"
), name='openapi-schema'),
]

Event Timeline