Skip to content

Commit

Permalink
fix: update swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jan 29, 2024
1 parent ff4f68a commit c4daf1c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
5 changes: 2 additions & 3 deletions src/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ const docTemplate = `{
}
}
},
"/v1/images/": {
"/v1/images": {
"post": {
"description": "Returns the data of image. If updating pet, add petId. If creating pet, petId is not specified, but keep the imageId.",
"consumes": [
Expand Down Expand Up @@ -1493,8 +1493,7 @@ const docTemplate = `{
"type": "object",
"required": [
"data",
"filename",
"pet_id"
"filename"
],
"properties": {
"data": {
Expand Down
5 changes: 2 additions & 3 deletions src/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@
}
}
},
"/v1/images/": {
"/v1/images": {
"post": {
"description": "Returns the data of image. If updating pet, add petId. If creating pet, petId is not specified, but keep the imageId.",
"consumes": [
Expand Down Expand Up @@ -1489,8 +1489,7 @@
"type": "object",
"required": [
"data",
"filename",
"pet_id"
"filename"
],
"properties": {
"data": {
Expand Down
3 changes: 1 addition & 2 deletions src/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,6 @@ definitions:
required:
- data
- filename
- pet_id
type: object
dto.User:
properties:
Expand Down Expand Up @@ -624,7 +623,7 @@ paths:
summary: Signup user
tags:
- auth
/v1/images/:
/v1/images:
post:
consumes:
- application/json
Expand Down

0 comments on commit c4daf1c

Please sign in to comment.