Get a URL for fetching bytes
GET
/objects/{object_id}/access/{access_id}
const url = 'https://raw.githubusercontent.com/ga4gh/drs/v1/objects/example/access/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://raw.githubusercontent.com/ga4gh/drs/v1/objects/example/access/exampleReturns a URL that can be used to fetch the bytes of a DrsObject.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” object_id
required
string format: path
DrsObject identifier
access_id
required
string format: path
An access_id from the access_methods list of a DrsObject
Responses
Section titled “ Responses ”Ok
Media type application/json
object
url
Full URL required to get bytes
string
headers
Array of strings that need to be passed with the URL to get bytes
Array<string>
Example generated
{ "url": "example", "headers": [ "example" ]}