-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #712 from NCATSTranslator/ADKP_addition
ADKP addition
- Loading branch information
Showing
6 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from tr_ars.default_ars_app.ars_app import AppConfig as ARSAppConfig | ||
from django.urls import path, include | ||
from tr_ars.default_ars_app.api import * | ||
|
||
class AppConfig(ARSAppConfig): | ||
name = 'tr_kp_drug.drug_app' # must be dot path for module | ||
actors = [make_actorconf('infores:multiomics-drugapprovals', | ||
'runquery', ['general'], | ||
'query')] # tuple of remote, name, channel | ||
app_path = 'kp-drug' | ||
regex_path = '^' + app_path + '/' | ||
|
||
### code below this line is required, but doesn't require updating in most cases | ||
|
||
apipatterns = [path(r'', init_api_index(AppConfig.actors, AppConfig.app_path), name=AppConfig.app_path + '-api')] | ||
for actor in AppConfig.actors: | ||
query_path = actor.name() | ||
query_name = AppConfig.app_path + '-' + query_path | ||
apipatterns.append(path(query_path, init_api_fn(actor), name=query_name)) | ||
|
||
urlpatterns = [ | ||
path(r'', init_redirect(AppConfig.app_path), name=AppConfig.app_path + '-base'), | ||
path(r'api/', include(apipatterns)), | ||
] | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters