Last active
July 5, 2016 11:17
-
-
Save Maxhodges/7ac5ffb21e9a9171d13dcce7b3f0e2cc to your computer and use it in GitHub Desktop.
japanshippingrates.io yaml for swagger.io
This file contains hidden or 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
| # Japan Shipping Rates API | |
| swagger: '2.0' | |
| info: | |
| title: Japan Post Shipping Rates API | |
| description: Move your app forward with the Japan Shipping Rates API | |
| version: "1.0.0" | |
| # the domain of the service | |
| host: japanshippingrates.io | |
| # array of all schemes that your API supports | |
| schemes: | |
| - https | |
| # will be prefixed to all paths | |
| basePath: /v1 | |
| produces: | |
| - application/json | |
| paths: | |
| /rates: | |
| get: | |
| summary: Japan Post Rates | |
| description: | | |
| Returns an array of `Rate` objects given country, weight and package dimensions | |
| parameters: | |
| - name: country | |
| in: query | |
| description: Country in ISO2 format | |
| required: true | |
| type: string | |
| - name: weight | |
| in: query | |
| description: Weight of the packge in grams | |
| required: true | |
| type: number | |
| format: double | |
| - name: length | |
| in: query | |
| description: Length of the packge in cemtimeters | |
| required: true | |
| type: number | |
| format: double | |
| - name: width | |
| in: query | |
| description: Width of the packge in centimeters | |
| required: true | |
| type: number | |
| format: double | |
| - name: height | |
| in: query | |
| description: Height of the packge in centimeters | |
| required: true | |
| type: number | |
| format: double | |
| tags: | |
| - Rates | |
| responses: | |
| 200: | |
| description: Successful response | |
| schema: | |
| title: ArrayOfRates | |
| type: array | |
| items: | |
| title: Rate | |
| type: object | |
| properties: | |
| name: | |
| type: string | |
| single: | |
| type: boolean | |
| default: | |
| description: Unexpected error | |
| schema: | |
| $ref: '#/definitions/Error' | |
| definitions: | |
| Error: | |
| type: object | |
| properties: | |
| code: | |
| type: integer | |
| format: int32 | |
| message: | |
| type: string | |
| fields: | |
| type: string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment