Added new custom API endpoints for export of person data, restricted to secretariat use. Added a test for the new custom API. - Legacy-Id: 15543 Note: SVN reference [15263] has been migrated to Git commit 8e7e0faf529db057ac4f7496d0bc84fb05f0625d Note: SVN reference [15264] has been migrated to Git commit e6549635650d4d9f9a9de7c5b4711f5a4a25c42c Note: SVN reference [15265] has been migrated to Git commit 7c0e97f824b874763550adf1647841129017bf5a Note: SVN reference [15287] has been migrated to Git commit 7431bdfcd9f2213c812a9004162ca576ae230a94
33 lines
1.1 KiB
Python
33 lines
1.1 KiB
Python
# Copyright The IETF Trust 2017, All Rights Reserved
|
|
|
|
from django.conf.urls import include
|
|
|
|
from ietf import api
|
|
from ietf.api import views as api_views
|
|
from ietf.doc import views_ballot
|
|
from ietf.meeting import views as meeting_views
|
|
from ietf.submit import views as submit_views
|
|
from ietf.utils.urls import url
|
|
|
|
api.autodiscover()
|
|
|
|
urlpatterns = [
|
|
# Top endpoint for Tastypie's REST API (this isn't standard Tastypie):
|
|
url(r'^$', api_views.api_help),
|
|
url(r'^v1/?$', api_views.top_level),
|
|
# Custom API endpoints
|
|
url(r'^notify/meeting/import_recordings/(?P<number>[a-z0-9-]+)/?$', meeting_views.api_import_recordings),
|
|
url(r'^meeting/session/video/url$', meeting_views.api_set_session_video_url),
|
|
url(r'^submit/?$', submit_views.api_submit),
|
|
url(r'^iesg/position', views_ballot.api_set_position),
|
|
url(r'^export/personal-information/$', api_views.PersonalInformationExportView.as_view()),
|
|
url(r'^v2/person/person', api_views.ApiV2PersonExportView.as_view()),
|
|
]
|
|
|
|
# Additional (standard) Tastypie endpoints
|
|
for n,a in api._api_list:
|
|
urlpatterns += [
|
|
url(r'^v1/', include(a.urls)),
|
|
]
|
|
|