api.sliver.today is a free REST API for retrieving Sliver Pizzeria's pizza of the day.
➡️ sliver.today
# Retrieve today's pizza menu
$ curl --request GET \
--url 'https://api.sliver.today' \
--header 'accept: application/json'
# Retrieve today's pizza menu by location
$ curl --request GET \
--url 'https://api.sliver.today/?location={location}' \
--header 'accept: application/json'
$ make install
$ make dev
go run main.go
2020/05/07 18:17:00 Listening on localhost:8080
Now you can visit http://localhost:8080 and test out the API!
TODO: It's also bundled as a Docker image (for Google Cloud Run) so you can also run it that way.
type Menu struct {
Location string `json:"location"`
Date string `json:"date"`
Pizza string `json:"pizza"`
}
Location: string
: The location of the specified menu (e.g. "telegraph"
, "shattuck"
, or "broadway"
).
Date: string
: The date of the requested menu. In the format YYYY-MM-DD
.
Pizza: string
: The pizza of the day for a specified location. (e.g. "Corn, Roasted Yukon Gold Potatoes, Baby Spinach Mixed with Caramelized Onions, Mozzarella, French Feta Cheese, with Avocado Spread."
).
Retrieves a list of pizza menu objects.
GET https://api.sliver.today
{
"pizzas": [
{
"location": "telegraph",
"date": "2020-05-06",
"pizza": "Corn, Roasted Yukon Gold Potatoes, Baby Spinach Mixed with Caramelized Onions, Mozzarella, French Feta Cheese, with Avocado Spread."
},
{
"location": "shattuck",
"date": "2020-05-06",
"pizza": "Wild Mushrooms (Shitake, Chanterelle, Portabella, Cremini Mushrooms), Mozzarella, Asiago Fresh, Green Scallons, Fresh Herbs, Infused Chanterelle Mushrooms, and Garlic Olive Oil."
},
{
"location": "broadway",
"date": "2020-05-06",
"pizza": "Roasted Yukon Gold Potatoes, Baby Heirloom Tomatoes, Baby Spinach Mixed with Caramelized Onions, Mozzarella, Pecorino Cheese mixed with Fresh Herbs, and Infused Sage Garlic Oil."
}
]
}
The location of the wanted pizza menu. Defaults to all
. Supports telegraph
, shattuck
, broadway
as parameters.
Can I use this in my project?
Yup! Do whatever you want with it! Let me know if you're thinking of making something cool with it! 😎
Is it open source? Can I contribute?
Yes! Checkout my spaghetti code on Github and submit issues or bugs. 🤖API 👨💻Site
What else do you want to do with this?
I'm thinking about making this into a Slackbot/Discord Bot/Twitter Bot. It would also be pretty cool to index all the past pizzas that Sliver has served.
What did you use to make this?
Backend API: Golang + Colly (🚀deployed on Google Cloud Run)
Frontend: Typescript + Next.js + MDX (🎨styled with Theme-UI + Emotion)
Why did you make this?
IDK. I really like Sliver. And I was bored. Really bored. 😴
MIT Licensed.