Skip to content
Snippets Groups Projects
Commit 618c8d76 authored by Ibrahim Roshan Kunnakkattu's avatar Ibrahim Roshan Kunnakkattu
Browse files

setup interacion API

parent 9b0ae709
No related branches found
No related tags found
1 merge request!5Refactored code for diplaying aggregated ligand interactions
......@@ -9,6 +9,7 @@ namespace Resources {
export const compoundSummaryURL: string = 'api/pdb/compound/summary';
export const componentLibraryURL: string = 'pdb-component-library/data/ligand-env';
export const staticFilesURL: string = 'static/files/pdbechem_v2';
export const interactionURL: string = 'aggregated-api/compound/interaction';
export function glycanSymbolsAPI(env: Model.Environment) {
let url = '';
......@@ -173,4 +174,23 @@ namespace Resources {
}
return url;
}
export function interactionAPI(chemCompId: string, env: Model.Environment): string {
let url = '';
switch (env) {
case Model.Environment.Development: {
url = `${devAPI}/${interactionURL}/${chemCompId}`;
break;
}
case Model.Environment.Internal: {
url = `${intAPI}/${interactionURL}/${chemCompId}`;
break;
}
default:
url = `${productionAPI}/${interactionURL}/${chemCompId}`;
break;
}
return url;
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment