API

List of Menus

Description

Graph of List<Campus> -> List<Location> -> List<Menu>

path: /api/menus

Sample

[{
 "id" : 1,
 "name" : "UNIL",
 "locations" : [{
	"id" : 3,
	"name" : "Amphimax",
		"menus" : [{
			"id" : 3,
			"name" : "Assiette 1"
			},
			...
			]
		},
		...
	]
},
...
]

List of Meals

Description

Meals for a given date and menu selection

Path: /api/meals/[date]/?m=x,y,z API

[date]: in the format yyyy-mm-dd

x,y,z: List of menu ids (mid) separated by commas

Output in the same order as the list of mid

Sample

[{id: 1,
mid: 5,
content: "Test meal 1\nLine2" }
]