Skip to content

Commit

Permalink
add example for file upload request
Browse files Browse the repository at this point in the history
  • Loading branch information
InventivetalentDev committed Jun 9, 2024
1 parent 9d05339 commit 79f66a3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ components:
type: integer
enum: [ 0, 1 ]
default: 0
example:
variant: "classic"
name: "My Example Skin"
visibility: 0
UserValidation:
type: object
required: [ valid ]
Expand Down Expand Up @@ -156,7 +160,7 @@ components:

responses:
ErrorResponse:
description: Response if an error occured
description: Response if an error occurred
content:
application/json:
schema:
Expand Down Expand Up @@ -238,6 +242,7 @@ paths:
- properties:
url:
type: string
example: "https://i.imgur.com/kQPrtYw.png"
responses:
200:
$ref: '#/components/responses/GeneratedSkin'
Expand All @@ -263,8 +268,12 @@ paths:
- $ref: '#/components/schemas/GenerateOptions'
- properties:
file:
description: Image file to upload
type: string
format: binary
externalDocs:
description: Example implementations
url: https://github.com/MineSkin/examples
responses:
200:
$ref: '#/components/responses/GeneratedSkin'
Expand Down

0 comments on commit 79f66a3

Please sign in to comment.