Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/corn-config/corn-api
Small API for parsing Corn as a service.
https://github.com/corn-config/corn-api
Last synced: 19 days ago
JSON representation
Small API for parsing Corn as a service.
- Host: GitHub
- URL: https://github.com/corn-config/corn-api
- Owner: corn-config
- License: mit
- Created: 2023-08-30T22:21:27.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-28T15:54:01.000Z (9 months ago)
- Last Synced: 2025-01-14T06:20:10.716Z (24 days ago)
- Language: Rust
- Homepage: https://api.cornlang.dev
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Corn API
Small API for parsing [Corn](https://github.com/jakestanger/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.