This documents publicly available api endpoints, please explore core.views
and core.urls
to find more
-
Login and get token
POST - https://ddw.devinit.org/api/auth/login/
Request Body:
{ 'username': [USER_NAME] 'password': [USER_PASSWORD] }
Response: { "expiry": "2020-05-21T19:44:52.855584Z", "token": "444e8557ae50b6513490ca73c970af8d87e089ade581ed30a4ae654c16928d7a", "user": { "id": 1, "username": ...., "tag_set": [], "operation_set": [], "review_set": [], "is_superuser": true, "user_permissions": [] } }
PS:
- Login is not required anymore for read only endpoints;
- To access write endpoints include authorization header
(Authorization: Token 557ae50b6513490ca73c970af8d87e089ade581ed30a4ae654c16928d7a) -
Fetch scheduled events
GET - https://ddw.devinit.org/api/scheduled_event/
Headers:
Content-Type: application/json -
Fetch scheduled event run instances (history) - takes in the scheduled event ID
GET - https://ddw.devinit.org/api/scheduled_event/[EVENT_ID]/run_instances/
Headers:
Content-Type: application/json -
List all update scripts
GET - https://ddw.devinit.org/api/list_update_scripts/ -
Download csv file for selected operation id;
GET - https://ddw.devinit.org/api/export/[OPERATION_ID]/ -
Return result of query operation id;
GET - https://ddw.devinit.org/api/dataset/data/[OPERATION_ID]/ -
Return list of published datasets;
GET - https://ddw.devinit.org/api/datasets/ -
Return list of both draft and published datasets;
GET - https://ddw.devinit.org/api/datasets/mine/ -
Return details of selected dataset;
GET - https://ddw.devinit.org/api/dataset/[DATASET_ID]/ -
Return list of sources;
GET - https://ddw.devinit.org/api/sources/ -
Return details of source selected by id;
GET - https://ddw.devinit.org/api/sources/[SOURCE_ID]/ -
Return list of Frozen Data
GET - https://ddw.devinit.org/api/frozendata/ returns listing of frozen data -
Create new frozen data
POST - https://ddw.devinit.org/api/frozendata/Request Body:
{ "parent_db_table":"[TABLE_NAME]", "completed":"p", // options include p (pending), r (running), c (completed), e (errored) "active":true, "comment": "" }
-
Details of Frozen Data selected by ID
GET - https://ddw.devinit.org/api/frozendata/[FROZENDATA_ID]/ returns details of frozen data -
Delete frozen data DELETE - https://ddw.devinit.org/api/frozendata/[FROZENDATA_ID]/
-
Return list of Saved Query Data
GET - https://ddw.devinit.org/api/savedquerysets/ returns listing of Saved Query Data -
Create new saved query data POST - https://ddw.devinit.org/api/savedquerysets/
Request Body:
{ "operation":"[OPERATION_ID]", "completed":"p", // options include p (pending), r (running), c (completed), e (errored) "active":true, "comment": "" }
-
Details of Saved Query Data selected by ID
GET - https://ddw.devinit.org/api/savedqueryset/[SAVEDQUERYDATA_ID]/ returns details of saved query data -
Delete saved query data DELETE - https://ddw.devinit.org/api/savedqueryset/[SAVEDQUERYDATA_ID]/
-
Download Frozen Data
GET - https://ddw.devinit.org/api/tables/download/[FROZEN_TABLE_NAME]/archives/ -
Download Saved Query Set Data
GET - https://ddw.devinit.org/api/tables/download/[QUERY_SET_DB_TABLE]/dataset/