Skip to content

Commit

Permalink
Merge pull request #66 from dancier/search-api
Browse files Browse the repository at this point in the history
added search endpoint
  • Loading branch information
jans510 authored Dec 22, 2024
2 parents d5ddcf8 + 783b6aa commit db60762
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -555,9 +555,26 @@ paths:
description: ""

/dancers:
get:
summary: retrieves all dancers in a predefined range
tags:
- Dancers
parameters:
- $ref: '#/components/parameters/range'
- $ref: '#/components/parameters/gender'
responses:
'200':
description: retrieves a potentially empty array
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/public_profile"
post:
summary: Used to retrieve a list of dancers
tags:
- Dancers
- Chats
requestBody:
content:
Expand All @@ -583,6 +600,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/error'

components:
securitySchemes:
jwt-token:
Expand Down Expand Up @@ -631,6 +649,18 @@ 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
description: Range [km] in which the search for dancers should be done
schema:
type: string
schemas:
contactMail:
type: object
Expand Down Expand Up @@ -765,9 +795,8 @@ components:
$ref: "#/components/schemas/gender"
dancerName:
type: string
birthDate:
age:
type: string
format: date
ableTo:
type: array
items:
Expand Down

0 comments on commit db60762

Please sign in to comment.