Skip to content

Commit

Permalink
adjusted payload
Browse files Browse the repository at this point in the history
  • Loading branch information
jans510 committed Dec 7, 2024
1 parent 6861794 commit 5bc580a
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ paths:
- Dancers
parameters:
- $ref: '#/components/parameters/range'
- $ref: '#/components/parameters/gender'
responses:
'200':
description: retrieves a potentially empty array
Expand All @@ -569,7 +570,7 @@ paths:
schema:
type: array
items:
$ref: "#/components/schemas/recommendable"
$ref: "#/components/schemas/dancer"
post:
summary: Used to retrieve a list of dancers
tags:
Expand Down Expand Up @@ -648,6 +649,12 @@ components:
description: Id of the last message already received. If set, the endpoint only returns newer messages
schema:
type: string
gender:
name: gender
in: query
description: preferred gender of the dancers
schema:
type: string
range:
name: range
in: query
Expand Down Expand Up @@ -745,6 +752,31 @@ components:
- LEAD
- BOTH
- NA
dancer:
type: object
properties:
size:
type: integer
aboutMe:
type: string
gender:
$ref: "#/components/schemas/gender"
dancerName:
type: string
age:
type: integer
city:
type: string
country:
type: string
enum:
- GER
profileImageHash:
type: string
ableTo:
type: array
items:
$ref: "#/components/schemas/dance_profile"
change_profile:
type: object
properties:
Expand Down Expand Up @@ -1023,4 +1055,4 @@ components:
type: string
required:
- code
- message
- message

0 comments on commit 5bc580a

Please sign in to comment.