otto/services/parser
R Tyler Croy f8dc3af95e Update the cargo versions
Fixes #64
2021-03-03 22:04:25 -08:00
..
src Refactor the parser code into its own crate for future development 2020-11-28 21:42:48 -08:00
.gitignore Move the parser into the services directory where it belongs 2020-11-03 20:54:05 -08:00
Cargo.toml Update the cargo versions 2021-03-03 22:04:25 -08:00
README.adoc Refactor the parser code into its own crate for future development 2020-11-28 21:42:48 -08:00
apispec.yml Sketch out the RunWorkload for the local-orchestrator service 2020-11-22 10:39:47 -08:00

README.adoc

<html lang="en"> <head> </head>

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"
</html>