-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add GET /shipments/{shipment_id}/options specification
- Loading branch information
1 parent
9102a58
commit 9ee903e
Showing
5 changed files
with
68 additions
and
17 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"get": { | ||
"tags": [ | ||
"Shipments" | ||
], | ||
"summary": "Get all the service options for a shipment.", | ||
"description": "This endpoint retrieves service options for the supplied shipment.", | ||
"parameters": [ | ||
{ | ||
"$ref": "#/components/parameters/path-shipment_id" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "Retrieved the statuses.", | ||
"content": { | ||
"application/vnd.api+json": { | ||
"schema": { | ||
"type": "object", | ||
"required": [ | ||
"data" | ||
], | ||
"additionalProperties": false, | ||
"properties": { | ||
"data": { | ||
"description": "List of service options", | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/components/schemas/ServiceOption" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"type": "object", | ||
"required": [ | ||
"code" | ||
], | ||
"properties": { | ||
"code": { | ||
"type": "string", | ||
"example": "delivery-window:sunday" | ||
}, | ||
"name": { | ||
"type": "string", | ||
"example": "Sunday Delivery" | ||
}, | ||
"values": { | ||
"type": "object", | ||
"example": { | ||
"pin": "1234" | ||
} | ||
} | ||
} | ||
} |
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