Skip to content

Commit

Permalink
Document response for GET /object/{id} (#420)
Browse files Browse the repository at this point in the history
Document response for GET /object/{id}
  • Loading branch information
mjgiarlo committed Sep 18, 2019
2 parents a0c64d3 + 9e64552 commit f0eb4b5
Showing 1 changed file with 32 additions and 9 deletions.
41 changes: 32 additions & 9 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,14 @@
"operationId": "objects#show",
"responses": {
"200": {
"description": "OK"
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DRO"
}
}
}
}
},
"parameters": [
Expand Down Expand Up @@ -842,19 +849,21 @@
"Druid": {
"type": "string"
},
"VirtualObjectRequest": {
"DRO": {
"type": "object",
"properties": {
"parent_druid": {
"type": {
"type": "string",
"example": "item"
},
"externalIdentifier": {
"$ref": "#/components/schemas/Druid"
},
"child_druids": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Druid"
}
"label": {
"type": "string"
}
}
},
"required": ["externalIdentifier", "label", "type"]
},
"ErrorResponse": {
"type": "object",
Expand Down Expand Up @@ -890,6 +899,20 @@
}
}
}
},
"VirtualObjectRequest": {
"type": "object",
"properties": {
"parent_druid": {
"$ref": "#/components/schemas/Druid"
},
"child_druids": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Druid"
}
}
}
}
},
"securitySchemes": {
Expand Down

0 comments on commit f0eb4b5

Please sign in to comment.