forked from coveo/backend-coding-challenge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.yml
54 lines (52 loc) · 1.29 KB
/
swagger.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
swagger: "2.0"
info:
description: This is the swagger file that goes with the API
version: "1.0.0"
title: Swagger API documentation
consumes:
- application/json
produces:
- application/json
basePath: /api
# Paths supported by the server application
paths:
/suggestions:
get:
operationId: city_api.get_cities
tags:
- city
summary: Look up matching city names
description: Look up matching city names
parameters:
- name: q
in: query
type: string
description: Querystring to match
required: true
- name: latitude
in: query
type: number
description: Latitude of query
required: false
- name: longitude
in: query
type: number
description: Longitude of query
required: false
responses:
200:
description: Successfully performed lookup
schema:
type: array
items:
properties:
name:
type: string
latitude:
type: string
longitude:
type: string
population:
type: integer
score:
type: number