|
| 1 | +openapi: 3.0.3 |
| 2 | +info: |
| 3 | + title: '' |
| 4 | + version: 0.0.0 |
| 5 | +paths: |
| 6 | + /books/: |
| 7 | + get: |
| 8 | + operationId: books_list |
| 9 | + tags: |
| 10 | + - books |
| 11 | + security: |
| 12 | + - cookieAuth: [] |
| 13 | + - basicAuth: [] |
| 14 | + - {} |
| 15 | + responses: |
| 16 | + '200': |
| 17 | + content: |
| 18 | + application/json: |
| 19 | + schema: |
| 20 | + type: array |
| 21 | + items: |
| 22 | + $ref: '#/components/schemas/Book' |
| 23 | + description: '' |
| 24 | + post: |
| 25 | + operationId: books_create |
| 26 | + tags: |
| 27 | + - books |
| 28 | + requestBody: |
| 29 | + content: |
| 30 | + application/json: |
| 31 | + schema: |
| 32 | + $ref: '#/components/schemas/Book' |
| 33 | + application/x-www-form-urlencoded: |
| 34 | + schema: |
| 35 | + $ref: '#/components/schemas/Book' |
| 36 | + multipart/form-data: |
| 37 | + schema: |
| 38 | + $ref: '#/components/schemas/Book' |
| 39 | + required: true |
| 40 | + security: |
| 41 | + - cookieAuth: [] |
| 42 | + - basicAuth: [] |
| 43 | + - {} |
| 44 | + responses: |
| 45 | + '201': |
| 46 | + content: |
| 47 | + application/json: |
| 48 | + schema: |
| 49 | + $ref: '#/components/schemas/Book' |
| 50 | + description: '' |
| 51 | + /books/{id}/: |
| 52 | + get: |
| 53 | + operationId: books_retrieve |
| 54 | + parameters: |
| 55 | + - in: path |
| 56 | + name: id |
| 57 | + schema: |
| 58 | + type: integer |
| 59 | + maximum: 9223372036854775807 |
| 60 | + minimum: -9223372036854775808 |
| 61 | + format: int64 |
| 62 | + description: A unique value identifying this book. |
| 63 | + required: true |
| 64 | + tags: |
| 65 | + - books |
| 66 | + security: |
| 67 | + - cookieAuth: [] |
| 68 | + - basicAuth: [] |
| 69 | + - {} |
| 70 | + responses: |
| 71 | + '200': |
| 72 | + content: |
| 73 | + application/json: |
| 74 | + schema: |
| 75 | + $ref: '#/components/schemas/Book' |
| 76 | + description: '' |
| 77 | + put: |
| 78 | + operationId: books_update |
| 79 | + parameters: |
| 80 | + - in: path |
| 81 | + name: id |
| 82 | + schema: |
| 83 | + type: integer |
| 84 | + maximum: 9223372036854775807 |
| 85 | + minimum: -9223372036854775808 |
| 86 | + format: int64 |
| 87 | + description: A unique value identifying this book. |
| 88 | + required: true |
| 89 | + tags: |
| 90 | + - books |
| 91 | + requestBody: |
| 92 | + content: |
| 93 | + application/json: |
| 94 | + schema: |
| 95 | + $ref: '#/components/schemas/Book' |
| 96 | + application/x-www-form-urlencoded: |
| 97 | + schema: |
| 98 | + $ref: '#/components/schemas/Book' |
| 99 | + multipart/form-data: |
| 100 | + schema: |
| 101 | + $ref: '#/components/schemas/Book' |
| 102 | + required: true |
| 103 | + security: |
| 104 | + - cookieAuth: [] |
| 105 | + - basicAuth: [] |
| 106 | + - {} |
| 107 | + responses: |
| 108 | + '200': |
| 109 | + content: |
| 110 | + application/json: |
| 111 | + schema: |
| 112 | + $ref: '#/components/schemas/Book' |
| 113 | + description: '' |
| 114 | + patch: |
| 115 | + operationId: books_partial_update |
| 116 | + parameters: |
| 117 | + - in: path |
| 118 | + name: id |
| 119 | + schema: |
| 120 | + type: integer |
| 121 | + maximum: 9223372036854775807 |
| 122 | + minimum: -9223372036854775808 |
| 123 | + format: int64 |
| 124 | + description: A unique value identifying this book. |
| 125 | + required: true |
| 126 | + tags: |
| 127 | + - books |
| 128 | + requestBody: |
| 129 | + content: |
| 130 | + application/json: |
| 131 | + schema: |
| 132 | + $ref: '#/components/schemas/PatchedBook' |
| 133 | + application/x-www-form-urlencoded: |
| 134 | + schema: |
| 135 | + $ref: '#/components/schemas/PatchedBook' |
| 136 | + multipart/form-data: |
| 137 | + schema: |
| 138 | + $ref: '#/components/schemas/PatchedBook' |
| 139 | + security: |
| 140 | + - cookieAuth: [] |
| 141 | + - basicAuth: [] |
| 142 | + - {} |
| 143 | + responses: |
| 144 | + '200': |
| 145 | + content: |
| 146 | + application/json: |
| 147 | + schema: |
| 148 | + $ref: '#/components/schemas/Book' |
| 149 | + description: '' |
| 150 | + delete: |
| 151 | + operationId: books_destroy |
| 152 | + parameters: |
| 153 | + - in: path |
| 154 | + name: id |
| 155 | + schema: |
| 156 | + type: integer |
| 157 | + maximum: 9223372036854775807 |
| 158 | + minimum: -9223372036854775808 |
| 159 | + format: int64 |
| 160 | + description: A unique value identifying this book. |
| 161 | + required: true |
| 162 | + tags: |
| 163 | + - books |
| 164 | + security: |
| 165 | + - cookieAuth: [] |
| 166 | + - basicAuth: [] |
| 167 | + - {} |
| 168 | + responses: |
| 169 | + '204': |
| 170 | + description: No response body |
| 171 | +components: |
| 172 | + schemas: |
| 173 | + Book: |
| 174 | + type: object |
| 175 | + properties: |
| 176 | + name: |
| 177 | + type: string |
| 178 | + maxLength: 255 |
| 179 | + required: |
| 180 | + - name |
| 181 | + PatchedBook: |
| 182 | + type: object |
| 183 | + properties: |
| 184 | + name: |
| 185 | + type: string |
| 186 | + maxLength: 255 |
| 187 | + securitySchemes: |
| 188 | + basicAuth: |
| 189 | + type: http |
| 190 | + scheme: basic |
| 191 | + cookieAuth: |
| 192 | + type: apiKey |
| 193 | + in: cookie |
| 194 | + name: sessionid |
0 commit comments