|
| 1 | +openapi: 3.0.1 |
| 2 | +info: |
| 3 | + title: API Specification |
| 4 | + version: 1.0.0 |
| 5 | +servers: |
| 6 | + - url: http://localhost/v4 |
| 7 | + |
| 8 | +paths: |
| 9 | + /foo/bar/{barId}: |
| 10 | + parameters: |
| 11 | + - name: barId |
| 12 | + description: The ID of the bar. |
| 13 | + in: path |
| 14 | + required: true |
| 15 | + schema: |
| 16 | + type: string |
| 17 | + x-linode-cli-command: foo |
| 18 | + put: |
| 19 | + x-linode-cli-action: bar-update |
| 20 | + summary: update foobar |
| 21 | + operationId: fooBarPut |
| 22 | + description: This is description |
| 23 | + requestBody: |
| 24 | + description: > |
| 25 | + The parameters to set when updating the Foobar. |
| 26 | + required: True |
| 27 | + content: |
| 28 | + application/json: |
| 29 | + schema: |
| 30 | + allOf: |
| 31 | + - $ref: '#/components/schemas/FooBarUpdate' |
| 32 | + responses: |
| 33 | + '200': |
| 34 | + description: Successful response |
| 35 | + content: |
| 36 | + application/json: |
| 37 | + schema: |
| 38 | + $ref: '#/components/schemas/OpenAPIResponseAttr' |
| 39 | + |
| 40 | +components: |
| 41 | + schemas: |
| 42 | + OpenAPIResponseAttr: |
| 43 | + type: object |
| 44 | + properties: |
| 45 | + filterable_result: |
| 46 | + x-linode-filterable: true |
| 47 | + type: string |
| 48 | + description: Filterable result value |
| 49 | + PaginationEnvelope: |
| 50 | + type: object |
| 51 | + properties: |
| 52 | + pages: |
| 53 | + type: integer |
| 54 | + readOnly: true |
| 55 | + description: The total number of pages. |
| 56 | + example: 1 |
| 57 | + page: |
| 58 | + type: integer |
| 59 | + readOnly: true |
| 60 | + description: The current page. |
| 61 | + example: 1 |
| 62 | + results: |
| 63 | + type: integer |
| 64 | + readOnly: true |
| 65 | + description: The total number of results. |
| 66 | + example: 1 |
| 67 | + FooBarUpdate: |
| 68 | + type: object |
| 69 | + description: Foobar object request |
| 70 | + properties: |
| 71 | + test_param: |
| 72 | + x-linode-filterable: true |
| 73 | + type: integer |
| 74 | + description: The test parameter |
| 75 | + generic_arg: |
| 76 | + x-linode-filterable: true |
| 77 | + type: string |
| 78 | + description: The generic argument |
| 79 | + region: |
| 80 | + x-linode-filterable: true |
| 81 | + type: string |
| 82 | + description: The region |
| 83 | + nullable_int: |
| 84 | + type: integer |
| 85 | + nullable: true |
| 86 | + description: An arbitrary nullable int |
| 87 | + nullable_string: |
| 88 | + type: string |
| 89 | + nullable: true |
| 90 | + description: An arbitrary nullable string |
| 91 | + nullable_float: |
| 92 | + type: number |
| 93 | + nullable: true |
| 94 | + description: An arbitrary nullable float |
| 95 | + object_list: |
| 96 | + type: array |
| 97 | + description: An arbitrary list of objects. |
| 98 | + items: |
| 99 | + type: object |
| 100 | + description: An arbitrary object. |
| 101 | + properties: |
| 102 | + field_dict: |
| 103 | + type: object |
| 104 | + description: An arbitrary nested dict. |
| 105 | + properties: |
| 106 | + nested_string: |
| 107 | + type: string |
| 108 | + description: A deeply nested string. |
| 109 | + nested_int: |
| 110 | + type: number |
| 111 | + description: A deeply nested integer. |
| 112 | + field_array: |
| 113 | + type: array |
| 114 | + description: An arbitrary deeply nested array. |
| 115 | + items: |
| 116 | + type: string |
| 117 | + field_string: |
| 118 | + type: string |
| 119 | + description: An arbitrary field. |
| 120 | + field_int: |
| 121 | + type: number |
| 122 | + description: An arbitrary field. |
| 123 | + nullable_string: |
| 124 | + type: string |
| 125 | + description: An arbitrary nullable string. |
| 126 | + nullable: true |
0 commit comments