data-repository-service-schemas
data-repository-service-schemas copied to clipboard
Presence of both `access_id` and `access_url` in a response
I interpret this clause of the spec
https://github.com/ga4gh/data-repository-service-schemas/blob/2425439e509b252a76d2a85b86d9fa26747addfc/openapi/data_repository_service.swagger.yaml#L343
to mean that having both access_id
and access_url
in a response is acceptable. Is that the case?
If so, what is the point of providing an access ID and following it in a separate request, when a URL is already available?
Providing both access_id
and access_url
in a response is misleading for DRS API client and is not aligned with Fetching DRS Objects section. DRS API client MUST only work with access_url
to access DRS object content.
I would also like to hear more about resolving this as it is creating issues on the consumer side.
I would argue the documentation that @hannes-ucsc points explicitly states that both are legitimate. Also, for signed URLs, then you would definitely not use access_url
I'd consider the possibility that the phrase "at least one of" was a mistake and that the intent was "either one of".
Yeah, I agree...it appears that this may be a bug in the spec wording...which would then break our implementation