From 5bc580a2a6271a262cf69ea7025f499aec2d0d26 Mon Sep 17 00:00:00 2001 From: Jan Stroppel Date: Sat, 7 Dec 2024 17:04:47 +0100 Subject: [PATCH] adjusted payload --- api/swagger.yaml | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/api/swagger.yaml b/api/swagger.yaml index 841a476..212c05d 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -561,6 +561,7 @@ paths: - Dancers parameters: - $ref: '#/components/parameters/range' + - $ref: '#/components/parameters/gender' responses: '200': description: retrieves a potentially empty array @@ -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: @@ -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 @@ -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: @@ -1023,4 +1055,4 @@ components: type: string required: - code - - message \ No newline at end of file + - message