Skip to content

Commit

Permalink
Add api/cdn/resize/image endpoint to openapi spec (#87)
Browse files Browse the repository at this point in the history
* [Doc]: add openapi spec for /api/cdn/resize/image endpoint (#77)

---------

Co-authored-by: Kevin Nielsen <kevinanielsen@outlook.com>
  • Loading branch information
raj3k and kevinanielsen authored Jan 8, 2024
1 parent 0bdf55c commit 8f9dec0
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions static/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,67 @@
}
}
},
"/api/cdn/resize/image": {
"put": {
"summary": "Resize image",
"description": "Resize an image from the CDN",
"operationId": "resizeImage",
"requestBody": {
"required": true,
"content": {
"multipart/form-data": {
"schema": {
"properties": {
"filename": {
"type": "string",
"description": "The filename you want to resize",
"required": true
},
"width": {
"type": "integer",
"description": "The width you want the file to have",
"required": true
},
"height": {
"type": "integer",
"description": "The height you want the file to have",
"required": true
}
}
}
}
}
},
"responses": {
"400": {
"description": "Bad request error",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": { "type": "string" }
}
}
}
}
},
"200": {
"description": "Server successfully resized image",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": { "type": "string" }
}
}
}
}
}
}
}
},
"/api/cdn/rename/image": {
"put": {
"summary": "Rename image",
Expand Down

0 comments on commit 8f9dec0

Please sign in to comment.