This repository has been archived by the owner on Oct 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger.yaml
99 lines (98 loc) · 2.67 KB
/
swagger.yaml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
swagger: "2.0"
info:
description: "get the daily menus of selected venues"
version: "1.0.0"
title: "Hunger API"
contact:
email: "[email protected]"
license:
name: "The MIT License"
url: "https://opensource.org/licenses/MIT"
externalDocs:
description: "Github"
url: "https://github.com/findus23/hunger"
host: "hunger.lw1.at"
basePath: "/api"
paths:
/venue/:
get:
tags:
- "venues"
summary: "get a list of all venues"
description: ""
operationId: "addPet"
produces:
- "application/json"
responses:
200:
description: A User object
schema:
type: array
items:
type: object
properties:
id:
type: integer
description: The venue id.
example: 1
name:
type: string
description: The name of venue
example: https://hunger.lw1.at/api/venue/1/
meals_url:
type: string
description: absolute URL to venue.
example: Fladerei
/venue/{venueID}:
get:
tags:
- "menus"
summary: "get a list of all venues"
description: ""
produces:
- "application/json"
parameters:
- in: path
name: venueID
type: integer
required: true
description: ID of venue.
- in: query
name: mode
type: string
enum:
- day
- week
description: either `day` to get menu of current day or `week` to get menu of current week.
default: day
- in: query
name: offset
type: integer
default: 0
description: get menu of future (positive) or previous (negative) week/day
responses:
400:
description: invalid parameters
200:
description: A User object
schema:
type: array
items:
type: object
properties:
date:
type: string
description: ISO date format.
example: "2017-07-03"
name:
type: string
description: The name of the meal
example: "Speck, Jungzwiebel, Sauerrahm und Mozzarella überbacken"
description:
type: string
description: more details about the menu (can be empty).
example: ""
venue:
type: integer
description: ID of venue
example: 1