Skip to content

Add resorceForVersionModel #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 50 additions & 1 deletion swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ paths:
- $ref: '#/parameters/fieldsParam'
responses:
'200':
$ref: '#/responses/resourceArray'
$ref: '#/responses/resourceForVersionArray'
/authors:
get:
tags:
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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:
Expand Down