Sage-Bionetworks / synapseDocs

Synapse documentation pages
https://docs.synapse.org
7 stars 36 forks source link

PLFM-6000 How to add preuploaded gcloud files + fixes #679

Closed nickgros closed 4 years ago

nickgros commented 4 years ago

https://sagebionetworks.jira.com/browse/PLFM-6000

nickgros commented 4 years ago

@kelshmo Sorry to respond late to this PR.

re: Specifying endpoint = 'https://file-prod.prod.sagebase.org/file/v1'

Why is this the endpoint and not the default endpoint?

The call is made to the file endpoint (https://repo-prod.prod.sagebase.org/file/v1/) rather than the default endpoint (https://repo-prod.prod.sagebase.org/repo/v1/).

At some point, presumably when the doc was first written, synapseFileServiceEndpoint existed in synapser, but it doesn't anymore, so that's why we hard-code the URL. This isn't an optimal solution, but I think that might be more of a Python/R client issue than a docs issue.