A HTTP server exposing an API to solve Advent of Code problems.
Solutions are implemented in Rust in the core crate and this crate uses the axum library to expose them over a HTTP API.
- Deployment URL:
https://advent.fly.dev
- API schema: https://aoc.fornwall.net/api/
The HTTP API expects a POST
to /solve/$YEAR/$DAY/$PART
with the problem input as post body text. It can be invoked using curl as shown below:
curl -d 14 https://advent.fly.dev/solve/2019/1/1
A fredrikfornwall/advent-of-code-http-server Docker image which starts the server on port 8080 is also available on Docker Hub:
docker run -p 8080:8080 fredrikfornwall/advent-of-code-http-server