Last active
October 28, 2017 20:21
-
-
Save wshirey/8c3a072dc86fa1e0e11c05c49e6215f2 to your computer and use it in GitHub Desktop.
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
swagger: "2.0" | |
info: | |
description: Sample description | |
version: "1.0.0" | |
title: Sample title | |
host: petstore.swagger.io | |
basePath: /v3 | |
paths: | |
/carts/{cart_id}/product_bundles/{product_bundle_id}/questions: | |
get: | |
operationId: getCartProductBundleQuestions | |
summary: Get custom questions | |
description: Description | |
parameters: | |
- name: cart_id | |
in: path | |
required: true | |
description: The ID of the cart. | |
type: string | |
x-example: 77ae13b3-c645-4bca-bb01-d8855ecd879a | |
- name: product_bundle_id | |
in: path | |
required: true | |
description: The ID of the product bundle (registration). | |
type: string | |
x-example: 97ae13b3-c646-abca-fb01-e8855ecd879b | |
responses: | |
200: | |
description: OK | |
schema: | |
$ref: '#/definitions/Question' | |
definitions: | |
Question: | |
type: object | |
discriminator: type | |
required: | |
- title | |
- description | |
- type | |
properties: | |
type: | |
type: string | |
title: | |
type: string | |
description: | |
type: string | |
section: | |
description: Section Question | |
allOf: | |
- $ref: '#/definitions/Question' | |
- type: object | |
properties: | |
section: | |
type: string | |
required: | |
- section | |
text: | |
description: Section Question | |
allOf: | |
- $ref: '#/definitions/Question' | |
- type: object | |
properties: | |
required: | |
type: bool | |
read_only: | |
type: bool | |
required: | |
- required | |
- read_only | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment