Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92562867
urls.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Nov 21, 12:22
Size
976 B
Mime Type
text/x-python
Expires
Sat, Nov 23, 12:22 (1 d, 5 h)
Engine
blob
Format
Raw Data
Handle
22463225
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
urls.py
View Options
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
Log In to Comment