Skip to content

Commit

Permalink
Merge pull request #124 from ZeitOnline/ZO-4598
Browse files Browse the repository at this point in the history
ZO-4598: add 'summy' API endpoints
  • Loading branch information
witsch authored Mar 26, 2024
2 parents 0f3c655 + 09c3f52 commit 07f8a2b
Showing 1 changed file with 97 additions and 0 deletions.
97 changes: 97 additions & 0 deletions docs/api/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,42 @@ paths:
"404":
description: "Expired or non-existing freebie"

/summy/summaries:
get:
operationId: getSummary
description: Get a summary
tags:
- summaries
parameters:
- $ref: '#/components/parameters/rowFilter.summaries.id'
- $ref: '#/components/parameters/select'
responses:
"200":
description: return summaries
content:
application/json:
schema:
items:
$ref: '#/components/schemas/summaries'

/summy/feedback:
post:
operationId: postFeedback
description: Saves a feedback
tags:
- feedback
summary: Add a new feedback to the database
requestBody:
description: A feedback to a summary
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/feedback'
responses:
'201':
description: Created.

/iap/receipts/{platform}:
post:
parameters:
Expand Down Expand Up @@ -1706,6 +1742,67 @@ components:
- "iqdpremium": user has abo
- "iqdpremium_registered": user is registered user
summaries:
description: properties of "summary" row
type: object
properties:
id:
description: |-
Note:
This is a Primary Key.<pk/>
format: uuid
type: string
summary:
format: text
type: string
example: Ein lustige Zusammenfassung
created:
format: timestamp with time zone
type: string
example: 2024-02-09T17:48:39.27587+00:00
config:
format: jsonb

feedback:
description: properties of "feedback" row
type: object
required:
- summary_id
- feedback
properties:
summary_id:
type: integer
ssoid:
type: integer
feedback:
type: string
enum: [like, dislike]
text:
format: text
type: string
example: Das ist fantastisch zusammengefasst
created:
format: timestamp with time zone
type: string
example: 2024-03-09T07:48:39.27587+00:00

parameters:
select:
name: select
description: select output columns
required: false
in: query
schema:
type: string
rowFilter.summaries.id:
name: rowFilter.summaries.id
description: filter Columns by "summary" id
required: false
in: query
schema:
type: string
pattern: '^eq.[-a-f0-9]+$'

securitySchemes:
default:
type: http
Expand Down

0 comments on commit 07f8a2b

Please sign in to comment.