-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathget_city_by_id.yml
54 lines (53 loc) · 1.08 KB
/
get_city_by_id.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
Return an specific city
---
tags:
- name: Cities
description: A JSON object of city
produces:
- application/json
parameters:
- in: header
name: Authorization
type: string
required: true
description: Access token
- in: path
name: city_id
type: integer
required: true
security:
- jwtAuth: []
responses:
200:
description: Successful operation
schema:
type: object
properties:
key:
type: string
value:
type: object
properties:
key:
type: string
value:
type: string
example:
{city: {id: 22, name: Punta del Este, country: 15}}
400:
description: Missing or invalid parameters
401:
description: Unauthorized
403:
description: Access denied
404:
description: Information not found
500:
description: Server error
securityDefinitions:
jwtAuth:
type: oauth2
flow: implicit
scopes:
write:restaurants: modify restaurants in your account
read:restaurants: read public restaurants and in your account