Skip to content

Commit

Permalink
Merge pull request #21 from Sage-Bionetworks/develop-use-staging
Browse files Browse the repository at this point in the history
Updated schema viz to use staging version of schematic API temporarily
  • Loading branch information
linglp authored Nov 21, 2023
2 parents b19c4e6 + ce83f89 commit fd9d273
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/utils.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//get CSV file by using flask API
async function getRequestedCSV(schema_url) {
//format url
let url = new URL("https://schematic.api.sagebionetworks.org/v1/visualize/attributes");
let url = new URL("https://schematic-staging.api.sagebionetworks.org/v1/visualize/attributes");
url.searchParams.append('schema_url', schema_url);

let data = await fetch(url.toString())
Expand All @@ -16,7 +16,7 @@ async function getRequestedCSV(schema_url) {
//get JSON file by flask API
async function getRequestedJson(schema_url) {
//format url
let url = new URL("https://schematic.api.sagebionetworks.org/v1/visualize/tangled_tree/layers");
let url = new URL("https://schematic-staging.api.sagebionetworks.org/v1/visualize/tangled_tree/layers");
url.searchParams.append('schema_url', schema_url);
url.searchParams.append('figure_type', "component");

Expand Down

0 comments on commit fd9d273

Please sign in to comment.