From 531465f635c2513327fef9d52005ffca648dfedb Mon Sep 17 00:00:00 2001 From: PerchunPak <68118654+PerchunPak@users.noreply.github.com> Date: Sun, 17 Apr 2022 20:46:50 +0300 Subject: [PATCH] Add resorceForVersionModel --- swagger.yml | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/swagger.yml b/swagger.yml index 6c41008..45eb71c 100644 --- a/swagger.yml +++ b/swagger.yml @@ -400,7 +400,7 @@ paths: - $ref: '#/parameters/fieldsParam' responses: '200': - $ref: '#/responses/resourceArray' + $ref: '#/responses/resourceForVersionArray' /authors: get: tags: @@ -904,6 +904,21 @@ definitions: type: number format: long description: Review timestamp. + ResourceForVersion: + title: Resource For Version + description: Model for a Resource For Version. + type: object + properties: + id: + $ref: '#/definitions/IdReference' + name: + type: string + description: Name of the Resource. + testedVersions: + type: array + description: List with Tested Versions of the Resource. + items: + type: string Author: title: Author description: Model for an Author. @@ -999,6 +1014,40 @@ responses: X-Page-Count: description: Total amount of pages type: integer + resourceForVersionArray: + description: Resource For Version Array + schema: + type: object + properties: + check: + type: array + description: Values passed to version parameter + items: + type: string + method: + type: string + description: Value passed to method parameter + match: + type: array + description: Results of fetch + items: + $ref: '#/definitions/ResourceForVersion' + headers: + X-Page-Sort: + description: Field the elements are sorted by + type: string + X-Page-Order: + description: Sort order + type: integer + X-Page-Size: + description: Number of elements on the current page + type: integer + X-Page-Index: + description: Current page index + type: integer + X-Page-Count: + description: Total amount of pages + type: integer authorArray: description: Author Array schema: