Skip to content
Draft
Show file tree
Hide file tree
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
34 changes: 33 additions & 1 deletion api/source-score.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,21 @@ paths:
operationId: getSources
parameters:
- $ref: '#/components/parameters/ClientIDHeader'
- name: page
in: query
required: false
schema:
type: integer
minimum: 1
default: 1
- name: size
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 100
default: 20
responses:
200:
description: List of sources retrieved successfully
Expand All @@ -61,7 +76,7 @@ paths:
schema:
type: array
items:
$ref: '#/components/schemas/Source'
$ref: '#/components/schemas/SourcesPage'

/api/v1/sources/scores:
post:
Expand Down Expand Up @@ -670,6 +685,23 @@ components:
binding: required
gorm: "type:text"

SourcesPage:
type: object
required: [data, total, page, size, has_next]
properties:
data:
type: array
items:
$ref: "#/components/schemas/Source"
total:
type: integer
page:
type: integer
size:
type: integer
has_next:
type: boolean

CreateSourceResponse:
type: object
description: Response after successfully creating a source
Expand Down
28 changes: 28 additions & 0 deletions pkg/api/server.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading