Skip to content

Commit

Permalink
refactoring and updating description
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Oh committed Nov 10, 2020
1 parent 064f7a9 commit 9dfdd78
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"200": {
"body": {
"reservationOrder" : {
"id": "1f14354c-dc12-4c8d-8090-6f295a3a34aa",
"id": "a075419f-44cc-497f-b68a-14ee811d48b9",
"name": "VM_RI_10-02-2020_15-21",
"isSucceeded": true,
"error": "error string"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,9 @@
],
"responses": {
"200": {
"description": "List of `Reservation`s created after the split operation.",
"description": "List of `Reservation`s created after the change directory operation.",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/ChangeDirectoryResponse"
}
"$ref": "#/definitions/ChangeDirectoryResponse"
}
},
"default": {
Expand Down Expand Up @@ -1530,54 +1527,38 @@
"description": "Change direcotry response",
"properties": {
"reservationOrder": {
"type": "object",
"description": "Change direcotry result for reservation order",
"properties": {
"id": {
"type": "string",
"description": "Identifier of the reservation order"
},
"name": {
"type": "string",
"description": "Name of the reservation order"
},
"isSucceeded": {
"description": "True if change directory operation succeeded on this reservation order",
"type": "boolean"
},
"error": {
"type": "string",
"description": "Error reason if operation failed. Null otherwise"
}
}
"$ref": "#/definitions/ChangeDirectoryResult"
},
"reservations": {
"type": "array",
"items": {
"type": "object",
"description": "Change direcotry result for reservation",
"properties": {
"id": {
"type": "string",
"description": "Identifier of the reservation"
},
"name": {
"type": "string",
"description": "Name of the reservation"
},
"isSucceeded": {
"description": "True if change directory operation succeeded on this reservation",
"type": "boolean"
},
"error": {
"type": "string",
"description": "Error reason if operation failed. Null otherwise"
}
}
"$ref": "#/definitions/ChangeDirectoryResult"
}
}
}
},
"ChangeDirectoryResult": {
"type": "object",
"description": "Change direcotry result for reservation order or reservation",
"properties": {
"id": {
"type": "string",
"description": "Identifier of the reservation order or reservation"
},
"name": {
"type": "string",
"description": "Name of the reservation order or reservation"
},
"isSucceeded": {
"description": "True if change directory operation succeeded on this reservation order or reservation",
"type": "boolean"
},
"error": {
"type": "string",
"description": "Error reason if operation failed. Null otherwise"
}
}
},
"RenewPropertiesResponse": {
"type": "object",
"properties": {
Expand Down

0 comments on commit 9dfdd78

Please sign in to comment.