Last active
February 3, 2022 00:14
-
-
Save briandoconnor/29da7f6f4864656711b7f8fa0daddaa7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# POST for access from /bulk/objects/access method | |
{ | |
"object_access_ids": [ | |
{ "object_id": "", | |
"access_id": "" | |
} | |
] | |
} | |
# Options response for auth (see https://github.com/ga4gh/data-repository-service-schemas/pull/381/files) | |
# authorization | |
{ | |
"access_urls": [ | |
{ | |
"object_id": "", | |
"access_id": "", | |
"authorizations": [ | |
"string", | |
... | |
] | |
"passport_issuers": [ | |
"string", | |
... | |
], | |
"other items???"... | |
} | |
] | |
} | |
# could pivot this... more efficient than repeating a bunch of auth info for each object_id/access_id | |
# probably use this approach | |
{ | |
"authorizations": [ | |
{ | |
"authorizations": [ | |
"string", | |
... | |
] | |
"passport_issuers": [ | |
"string", | |
... | |
], | |
"other items???"... | |
"object_access": [ | |
{ "object_id": "", | |
"access_id": "" | |
} | |
] | |
] | |
} | |
] | |
} | |
# Response | |
# /bulk/objects/access | |
{ | |
"access_urls": [ | |
{ | |
"object_id": "", | |
"access_id": "", | |
"url": "", | |
"headers": "" | |
} | |
] | |
} | |
# /bulk/objects/access w/ resolved/unresolved information | |
{ | |
"summary": { | |
"requested": 5, | |
"resolved": 2, | |
"unresolved": 3 | |
}, | |
"resolved_access_urls": [ | |
{ | |
"object_id": "", | |
"access_id": "", | |
"url": "", | |
"headers": "" | |
} | |
], | |
"unresolved_drs_objects": [ | |
{ | |
"object_id": "", | |
"access_id": "", | |
"error_code: 404 | |
} | |
] | |
} | |
# Response (with errors) | |
# /bulk/objects example | |
{ | |
"summary": { | |
"requested": 5, | |
"resolved": 2, | |
"unresolved": 3 | |
}, | |
"ResolvedDrsObjects": { | |
"123": { | |
"id": "123", | |
"name": "DRS Object 123", | |
... | |
}, | |
"456": { | |
"id": "456", | |
"name": "DRS Object 456", | |
... | |
} | |
}, | |
"UnresolvedDrsObjects": { | |
"777": {access_id: 11, error_code: 303}, # <-- Michael and Jeremy like nesting hashes ... | |
"778": 404, | |
"779": 401 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment