Skip to content

Commit

Permalink
chore(SPV-750): regenerate swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
pawellewandowski98 committed May 22, 2024
1 parent 70e1ed1 commit 24aacb6
Show file tree
Hide file tree
Showing 5 changed files with 179 additions and 167 deletions.
2 changes: 1 addition & 1 deletion actions/admin/contact.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
// @Tags Admin
// @Produce json
// @Param SearchContacts body SearchContacts false "Supports targeted resource searches with filters and metadata, plus options for pagination and sorting to streamline data exploration and analysis"
// @Success 200 {object} common.SearchContactsResponse "List of contacts"
// @Success 200 {object} models.SearchContactsResponse "List of contacts"
// @Failure 400 "Bad request - Error while parsing SearchContacts from request body"
// @Failure 500 "Internal server error - Error while searching for contacts"
// @Router /v1/admin/contact/search [post]
Expand Down
2 changes: 1 addition & 1 deletion actions/contacts/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
// @Tags Contact
// @Produce json
// @Param SearchContacts body SearchContacts false "Supports targeted resource searches with filters and metadata, plus options for pagination and sorting to streamline data exploration and analysis"
// @Success 200 {object} common.SearchContactsResponse "List of contacts"
// @Success 200 {object} models.SearchContactsResponse "List of contacts"
// @Failure 400 "Bad request - Error while parsing SearchContacts from request body"
// @Failure 500 "Internal server error - Error while searching for contacts"
// @Router /v1/contact/search [POST]
Expand Down
126 changes: 65 additions & 61 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ const docTemplate = `{
"200": {
"description": "List of contacts",
"schema": {
"$ref": "#/definitions/common.SearchContactsResponse"
"$ref": "#/definitions/models.SearchContactsResponse"
}
},
"400": {
Expand Down Expand Up @@ -1380,7 +1380,7 @@ const docTemplate = `{
"200": {
"description": "List of contacts",
"schema": {
"$ref": "#/definitions/common.SearchContactsResponse"
"$ref": "#/definitions/models.SearchContactsResponse"
}
},
"400": {
Expand Down Expand Up @@ -2808,55 +2808,6 @@ const docTemplate = `{
"Rejected"
]
},
"common.Page": {
"type": "object",
"properties": {
"number": {
"description": "Page number",
"type": "integer"
},
"orderByField": {
"description": "Field by which to order the results",
"type": "string"
},
"size": {
"description": "Size of the page",
"type": "integer"
},
"sortDirection": {
"description": "Direction in which to order the results ASC/DSC",
"type": "string"
},
"totalElements": {
"description": "Total count of elements",
"type": "integer"
},
"totalPages": {
"description": "Total number of possible pages",
"type": "integer"
}
}
},
"common.SearchContactsResponse": {
"type": "object",
"properties": {
"content": {
"description": "List of records for the response",
"type": "array",
"items": {
"$ref": "#/definitions/models.Contact"
}
},
"page": {
"description": "Pagination details",
"allOf": [
{
"$ref": "#/definitions/common.Page"
}
]
}
}
},
"contacts.SearchContacts": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -3898,6 +3849,35 @@ const docTemplate = `{
}
}
},
"models.Page": {
"type": "object",
"properties": {
"number": {
"description": "Page number",
"type": "integer"
},
"orderByField": {
"description": "Field by which to order the results",
"type": "string"
},
"size": {
"description": "Size of the page",
"type": "integer"
},
"sortDirection": {
"description": "Direction in which to order the results ASC/DSC",
"type": "string"
},
"totalElements": {
"description": "Total count of elements",
"type": "integer"
},
"totalPages": {
"description": "Total number of possible pages",
"type": "integer"
}
}
},
"models.PaymailAddress": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -4017,6 +3997,26 @@ const docTemplate = `{
}
}
},
"models.SearchContactsResponse": {
"type": "object",
"properties": {
"content": {
"description": "List of records for the response",
"type": "array",
"items": {
"$ref": "#/definitions/models.Contact"
}
},
"page": {
"description": "Pagination details",
"allOf": [
{
"$ref": "#/definitions/models.Page"
}
]
}
}
},
"models.SharedConfig": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -4593,20 +4593,22 @@ const docTemplate = `{
1000000000,
60000000000,
3600000000000,
1,
1000,
1000000,
1000000000,
-9223372036854775808,
9223372036854775807,
1,
1000,
1000000,
1000000000,
60000000000,
3600000000000,
-9223372036854775808,
9223372036854775807,
1,
1000,
1000000,
1000000000
1000000000,
60000000000,
3600000000000
],
"x-enum-varnames": [
"minDuration",
Expand All @@ -4617,20 +4619,22 @@ const docTemplate = `{
"Second",
"Minute",
"Hour",
"Nanosecond",
"Microsecond",
"Millisecond",
"Second",
"minDuration",
"maxDuration",
"Nanosecond",
"Microsecond",
"Millisecond",
"Second",
"Minute",
"Hour",
"minDuration",
"maxDuration",
"Nanosecond",
"Microsecond",
"Millisecond",
"Second"
"Second",
"Minute",
"Hour"
]
},
"transactions.CountTransactions": {
Expand Down
Loading

0 comments on commit 24aacb6

Please # to comment.