mirror of
https://github.com/corn-config/corn-api.git
synced 2026-07-11 04:16:08 +01:00
Small API for parsing Corn as a service.
- Rust 76.1%
- Nix 19.5%
- Dockerfile 4.4%
| .github/workflows | ||
| .idea | ||
| src | ||
| .dockerignore | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| Dockerfile | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| README.md | ||
Corn API
Small API for parsing Corn as a service.
Send requests on /parse. The request body should be fully formed Corn.
Request responses will be the parsed output.
You can optionally specify the Accept header as one of
application/json, application/yaml or application/toml.
This defaults to JSON.
Configure the host and port with HOST and PORT environment variables.
These default to 127.0.0.1 and 5050.
Requests are rate-limited. Control this with the REQUESTS_PER_MINUTE env var.
This defaults to 20.
A Dockerfile is included.