Skip to content

Commit 775868d

Browse files
briandoconnorBrian O'Connor
andauthored
Feature/issue 334 drs bulk requests (#365)
* first attempt to add bulk operations * bulk operations prototyping * bulk operations prototyping * bulk operations prototyping * bulk operations prototyping * bulk operations prototyping * bulk operations prototyping * bulk operations prototyping * bulk operations prototyping * bulk operations prototyping * bulk operations prototyping * bulk operations prototyping * responding to comments on PR#365 * Create summary.yaml * Create unresolved.yaml * Update 200OkDrsObjects.yaml * working on bulk schema changes * updates * updates * fixed 200 return object for objects endpoint * fixed 200 return object for objects endpoint * trying to include passports as a parameter in the bulk body request * updating the build badge, trying to get passport to show up on bulk * working to get passports * trying to get passport field to show up * trying to figure out adding passports * trying to get this to build the docs * adding passports * working on bulk method for access URLs * added 413 error * working on adding bulk options endpoint * adding error 413 for the bulk options request * updated logo and version string * removing passport from bulk opts endpoint since it does not make sense to require authorization * adding new yaml * updating travis URL * updated the security to PassportAuth * adding a maxBulkRequestLength variable to service info * adding better description of variables * adding better description of variables --------- Co-authored-by: Brian O'Connor <[email protected]>
1 parent 4f899e8 commit 775868d

21 files changed

+263
-9
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ this will not automatically be built from our Travis. However, if you
8383
are a developer and have created a feature branch following the naming
8484
convention above, you should see automated builds.
8585

86-
Check https://travis-ci.com/ga4gh/data-repository-service-schemas/builds to see the status of the builds.
86+
Check https://app.travis-ci.com/github/ga4gh/data-repository-service-schemas to see the status of the builds.
8787

8888
Pull Request Voting Process
8989
===========================

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<img src="https://www.ga4gh.org/wp-content/themes/ga4gh-theme/gfx/GA-logo-horizontal-tag-RGB.svg" alt="GA4GH Logo" style="width: 400px;"/>
1+
<img src="https://www.ga4gh.org/wp-content/themes/ga4gh/dist/assets/svg/logos/logo-full-color.svg" alt="GA4GH Logo" style="width: 400px;"/>
22

33
# Data Repository Service (DRS) API
44

5-
<sup>`develop` branch status: </sup>[![Build Status](https://travis-ci.org/ga4gh/data-repository-service-schemas.svg?branch=develop)](https://travis-ci.org/ga4gh/data-repository-service-schemas?branch=develop)
5+
<sup>`develop` branch status: </sup>[![Build Status](https://app.travis-ci.com/ga4gh/data-repository-service-schemas.svg?branch=develop)](https://app.travis-ci.com/ga4gh/data-repository-service-schemas.svg?branch=develop)
66
<a href="https://ga4gh.github.io/data-repository-service-schemas/preview/develop/swagger.yaml"><img src="http://online.swagger.io/validator?url=https://ga4gh.github.io/data-repository-service-schemas/preview/develop/swagger.yaml" alt="Swagger Validator" height="20em" width="72em"></A> [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1405753.svg)](https://doi.org/10.5281/zenodo.1405753)
77

88
The [Global Alliance for Genomics and Health](http://genomicsandhealth.org/) (GA4GH) is an international coalition, formed to enable the sharing of genomic and clinical data.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
type: object
2+
description: The object that contains object_id/access_id tuples
3+
properties:
4+
passports:
5+
type: array
6+
items:
7+
type: string
8+
bulk_object_access_ids:
9+
type: array
10+
items:
11+
type: object
12+
properties:
13+
bulk_object_id:
14+
type: string
15+
description: DRS object ID
16+
bulk_access_ids:
17+
type: array
18+
description: DRS object access ID
19+
items:
20+
type: string
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
type: object
2+
description: The object that contains the DRS object IDs array
3+
properties:
4+
passports:
5+
type: array
6+
items:
7+
type: string
8+
example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJnYTRnaF9wYXNzcG9ydF92MSI6W119.JJ5rN0ktP0qwyZmIPpxmF_p7JsxAZH6L6brUxtad3CM
9+
description: the encoded JWT GA4GH Passport that contains embedded Visas. The overall JWT is signed as are the individual Passport Visas.
10+
bulk_object_ids:
11+
type: array
12+
items:
13+
type: string
14+
description: An array of ObjectIDs.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
type: object
2+
description: The object that contains the DRS object IDs array
3+
properties:
4+
bulk_object_ids:
5+
type: array
6+
description: DRS object IDs
7+
items:
8+
type: string
9+
description: An array of ObjectIDs.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
type: object
2+
description: The object that contains an object_id/access_id tuple
3+
properties:
4+
bulk_object_id:
5+
type: string
6+
bulk_object_access_id:
7+
type: string
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
description: The `AccessURL` was found successfully
2+
content:
3+
application/json:
4+
schema:
5+
type: object
6+
properties:
7+
summary:
8+
$ref: '../schemas/summary.yaml'
9+
unresolved_drs_objects:
10+
$ref: '../schemas/unresolved.yaml'
11+
resolved_drs_object_access_urls:
12+
type: array
13+
items:
14+
$ref: '../schemas/BulkAccessURL.yaml'
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
description: "`Authorizations` were found successfully"
2+
content:
3+
application/json:
4+
schema:
5+
type: object
6+
properties:
7+
summary:
8+
$ref: '../schemas/summary.yaml'
9+
unresolved_drs_objects:
10+
$ref: '../schemas/unresolved.yaml'
11+
resolved_drs_object:
12+
type: array
13+
items:
14+
$ref: '../schemas/Authorizations.yaml'
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
description: The `DrsObjects` were found successfully
2+
content:
3+
application/json:
4+
schema:
5+
type: object
6+
properties:
7+
summary:
8+
$ref: '../schemas/summary.yaml'
9+
unresolved_drs_objects:
10+
$ref: '../schemas/unresolved.yaml'
11+
resolved_drs_object:
12+
type: array
13+
items:
14+
$ref: '../schemas/DrsObject.yaml'

openapi/components/responses/404NotFoundDrsObject.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ description: The requested `DrsObject` wasn't found.
22
content:
33
application/json:
44
schema:
5-
$ref: '../schemas/Error.yaml'
5+
$ref: '../schemas/Error.yaml'

0 commit comments

Comments
 (0)