Skip to content

Commit

Permalink
adjusted endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jans510 committed Dec 7, 2024
1 parent 570f6eb commit 6861794
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -300,22 +300,6 @@ paths:
type: array
items:
$ref: "#/components/schemas/recommendable"
/search:
get:
summary: retrieves all dancers in a predefined range
tags:
- Recommendations
parameters:
- $ref: '#/components/parameters/range'
responses:
'200':
description: retrieves a potentially empty array
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/recommendable"
/location/zipCode/{country}/{code}:
get:
summary: resolve code to location
Expand Down Expand Up @@ -571,9 +555,25 @@ paths:
description: ""

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

components:
securitySchemes:
jwt-token:
Expand Down Expand Up @@ -650,7 +651,7 @@ components:
range:
name: range
in: query
description: Range in which the search for dancers should be done
description: Range [km] in which the search for dancers should be done
schema:
type: string
schemas:
Expand Down Expand Up @@ -1022,4 +1023,4 @@ components:
type: string
required:
- code
- message
- message

0 comments on commit 6861794

Please sign in to comment.