Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added search endpoint #66

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
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
Loading