R Tyler Croy
f8dc3af95e
Fixes #64 |
||
---|---|---|
.. | ||
src | ||
.gitignore | ||
Cargo.toml | ||
README.adoc | ||
apispec.yml |
README.adoc
<html lang="en">
<head>
</head>
</html>
Parser service
The Otto Parser Service presents the parser crate as an HTTP service.
The apispec.yml
is an OpenAPI
specification that describes the public HTTP endpoints that the parser service
provides.
Development
Unit test and integration tests for the parser service are located in the usual
Rust locations, and can all be run via cargo test
.
Running the acceptance tests however requires the
schemathesis tool for
automating OpenAPI-based acceptance tests. In order to execute acceptance tests, run the parser service in one termainal: cargo run -p otto-parser
and then in another:
schemathesis run ./services/parser/apispec.yml --base-url=http://localhost:7672 --checks all
The server can be run in an auto-reloading fashion with cargo-watch and catlap via:
catflap -p 7672 -- cargo watch -x "run -p otto-parser"