Skip to content

Latest commit

 

History

History
168 lines (94 loc) · 6.44 KB

ObjectsApi.md

File metadata and controls

168 lines (94 loc) · 6.44 KB

\ObjectsApi

All URIs are relative to https://drs.example.org/ga4gh/drs/v1

Method HTTP request Description
get_access_url GET /objects/{object_id}/access/{access_id} Get a URL for fetching bytes
get_object GET /objects/{object_id} Get info about a DrsObject.
options_object OPTIONS /objects/{object_id} Get Authorization info about a DrsObject.
post_access_url POST /objects/{object_id}/access/{access_id} Get a URL for fetching bytes through POST'ing a Passport
post_object POST /objects/{object_id} Get info about a DrsObject through POST'ing a Passport.

get_access_url

models::AccessUrl get_access_url(object_id, access_id) Get a URL for fetching bytes

Returns a URL that can be used to fetch the bytes of a DrsObject. This method only needs to be called when using an AccessMethod that contains an access_id (e.g., for servers that use signed URLs for fetching object bytes).

Parameters

Name Type Description Required Notes
object_id String DrsObject identifier [required]
access_id String An access_id from the access_methods list of a DrsObject [required]

Return type

models::AccessUrl

Authorization

BasicAuth, BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_object

models::DrsObject get_object(object_id, expand) Get info about a DrsObject.

Returns object metadata, and a list of access methods that can be used to fetch object bytes.

Parameters

Name Type Description Required Notes
object_id String DrsObject identifier [required]
expand Option<bool> If false and the object_id refers to a bundle, then the ContentsObject array contains only those objects directly contained in the bundle. That is, if the bundle contains other bundles, those other bundles are not recursively included in the result. If true and the object_id refers to a bundle, then the entire set of objects in the bundle is expanded. That is, if the bundle contains other bundles, then those other bundles are recursively expanded and included in the result. Recursion continues through the entire sub-tree of the bundle. If the object_id refers to a blob, then the query parameter is ignored.

Return type

models::DrsObject

Authorization

BasicAuth, BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

options_object

models::Authorizations options_object(object_id) Get Authorization info about a DrsObject.

Returns a list of Authorizations that can be used to determine how to authorize requests to GetObject or PostObject.

Parameters

Name Type Description Required Notes
object_id String DrsObject identifier [required]

Return type

models::Authorizations

Authorization

BasicAuth, BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

post_access_url

models::AccessUrl post_access_url(object_id, access_id, post_access_url_request) Get a URL for fetching bytes through POST'ing a Passport

Returns a URL that can be used to fetch the bytes of a DrsObject. This method only needs to be called when using an AccessMethod that contains an access_id (e.g., for servers that use signed URLs for fetching object bytes). Method is a POST to accommodate a JWT GA4GH Passport sent in the formData in order to authorize access.

Parameters

Name Type Description Required Notes
object_id String DrsObject identifier [required]
access_id String An access_id from the access_methods list of a DrsObject [required]
post_access_url_request PostAccessUrlRequest [required]

Return type

models::AccessUrl

Authorization

PassportAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

post_object

models::DrsObject post_object(object_id, post_object_request) Get info about a DrsObject through POST'ing a Passport.

Returns object metadata, and a list of access methods that can be used to fetch object bytes. Method is a POST to accommodate a JWT GA4GH Passport sent in the formData in order to authorize access.

Parameters

Name Type Description Required Notes
object_id String DrsObject identifier [required]
post_object_request PostObjectRequest [required]

Return type

models::DrsObject

Authorization

PassportAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]