~shreyasminocha/rice-dining-api

REST API for accessing Rice servery menus
1944eb6e — Shreyas Minocha 1 year, 9 months ago
Update menu file location
2d120e3d — Shreyas Minocha 2 years ago
Add docs
1658fbb6 — Shreyas Minocha 2 years ago
Cleanly handle HTTP errors

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~shreyasminocha/rice-dining-api
read/write
git@git.sr.ht:~shreyasminocha/rice-dining-api

You can also use your local clone with git send-email.

#Rice Dining API

A REST API for accessing Rice servery menus.

#Examples

#API

See / for OpenAPI-compatible specification.

servery is one of:

  • west-servery
  • seibel-servery
  • baker-kitchen
  • north-servery

#GET /:servery

Response layout:

[
	{
		"meal": "Lunch",
		"menu": [
			{ "item": "Foo", "tags": ["vegan", "soy"] },
			{ "item": "Bar", "tags": ["soy"] }
		]
	},
	{
		"meal": "Dinner",
		"menu": [
			{ "item": "Foo", "tags": ["vegetarian", "milk"] },
			{ "item": "Baz", "tags": ["gluten", "soy", "milk"] }
		]
	}
]

#GET /:servery/full-week-menu

Response layout:

[
	{
		"meal": "Monday Lunch",
		"menu": [
			{ "item": "Foo", "tags": ["vegan"] },
			{ "item": "Bar", "tags": ["milk"] }
		]
	},
	...
	{
		"meal": "Sunday Lunch",
		"menu": [
			{ "item": "Baz", "tags": ["vegan"] },
			{ "item": "Bar", "tags": ["vegan"] }
		]
	},
	{
		"meal": "Monday Dinner",
		"menu": [
			{ "item": "Bar", "tags": ["vegan", "soy"] },
			{ "item": "Foo", "tags": ["vegan"] }
		]
	},
	...
	{
		"meal": "Sunday Dinner",
		"menu": [
			{ "item": "Foo", "tags": ["vegan"] },
			{ "item": "Baz", "tags": ["vegan"] }
		]
	}
]

#License

See LICENSE.