Skip to content

Commit

Permalink
Merge pull request #51 from plantbreeding/brapi-v2-patch-2
Browse files Browse the repository at this point in the history
small changes to v1.3 collection caused by changes in the server code
  • Loading branch information
langeipk authored May 18, 2020
2 parents ffc47f6 + fce34b0 commit b6b7a88
Show file tree
Hide file tree
Showing 10 changed files with 160 additions and 116 deletions.
229 changes: 153 additions & 76 deletions src/main/resources/collections/CompleteBrapiTest.v1.3.json

Large diffs are not rendered by default.

32 changes: 1 addition & 31 deletions src/main/resources/collections/CompleteBrapiTest.v2.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -3736,36 +3736,6 @@
"imageDbId0"
]
},
{
"description": "Update an image with the image file content\n\nImplementation Notes\n\n- This call should be paired with 'PUT /images/{imageDbId}' for full capability\n\n- A server may choose to modify the image meta data object based on the actually image which has been uploaded. \n\n- Image data may be stored in a database or file system. Servers should generate and provide the \"imageURL\" for retrieving the image, wherever it happens to live.",
"endpoint": "/images/{imageDbId}/imagecontent",
"event": [
{
"exec": [
"StatusCode:200:breakiffalse",
"ContentType:application/json",
"Schema:/v2.0/metadata",
"Schema:/v2.0/Images/putImagesImagedbidImagecontentResponse"
],
"listen": "test",
"type": "text/plain"
}
],
"name": "PUT /images/{imageDbId}/imagecontent",
"parameters": [
{
"param": "json",
"value": "{}"
}
],
"request": {
"method": "PUT",
"url": "{baseurl}/images/{imageDbId0}/imagecontent"
},
"requires": [
"imageDbId0"
]
},
{
"description": "Get filtered set of image meta data\n\nImplementation Notes\n\n- ''imageURL'' should be a complete URL describing the location of the image. There is no BrAPI call for retrieving the image content, so it could be on a different path, or a different host.\n\n- 'descriptiveOntologyTerm' can be thought of as Tags for the image. These could be simple descriptive words, or ontology references, or full ontology URI's.\n\nSee Search Services for additional implementation details.",
"endpoint": "/search/images",
Expand Down Expand Up @@ -5214,7 +5184,7 @@
"parameters": [
{
"param": "json",
"value": "[{}]"
"value": "{}"
}
],
"request": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"items": {
"type": "string"
},
"minItems": 1,
"type": [
"null",
"array"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"items": {
"type": "string"
},
"minItems": 1,
"type": [
"null",
"array"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"items": {
"type": "string"
},
"minItems": 1,
"type": [
"null",
"array"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"items": {
"type": "string"
},
"minItems": 1,
"type": [
"null",
"array"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"description": "Is this study currently active",
"type": [
"null",
"boolean"
"string"
]
},
"additionalInfo": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"enum": [
"CHECK",
"TEST",
"FILLER"
"FILLER",
null
],
"type": [
"null",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"description": "Is this study currently active",
"type": [
"null",
"boolean"
"string"
]
},
"additionalInfo": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"enum": [
"CHECK",
"TEST",
"FILLER"
"FILLER",
null
],
"type": [
"null",
Expand Down Expand Up @@ -136,7 +137,6 @@
"title": "observationUnitPosition",
"type": "object"
},
"minItems": 1,
"type": "array"
}
},
Expand Down

0 comments on commit b6b7a88

Please sign in to comment.