Skip to content

Commit 570f6eb

Browse files
committed
added search endpoint
1 parent 1cda31d commit 570f6eb

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

api/swagger.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,22 @@ paths:
300300
type: array
301301
items:
302302
$ref: "#/components/schemas/recommendable"
303+
/search:
304+
get:
305+
summary: retrieves all dancers in a predefined range
306+
tags:
307+
- Recommendations
308+
parameters:
309+
- $ref: '#/components/parameters/range'
310+
responses:
311+
'200':
312+
description: retrieves a potentially empty array
313+
content:
314+
application/json:
315+
schema:
316+
type: array
317+
items:
318+
$ref: "#/components/schemas/recommendable"
303319
/location/zipCode/{country}/{code}:
304320
get:
305321
summary: resolve code to location
@@ -631,6 +647,12 @@ components:
631647
description: Id of the last message already received. If set, the endpoint only returns newer messages
632648
schema:
633649
type: string
650+
range:
651+
name: range
652+
in: query
653+
description: Range in which the search for dancers should be done
654+
schema:
655+
type: string
634656
schemas:
635657
contactMail:
636658
type: object

0 commit comments

Comments
 (0)