Simple project description with few examples, schemas and gifs if any.
- One
- Two
- Three
- Four
To run server:
- Fill yaml in github actions dir
- Run workflow
- ...
- Profit
java -jar df.jar [OPTIONS] [FLAGS] [COMMANDS]
OPTIONS:
--host <host> host name, default: localhost
--port <number> HTTP TCP port number, default: 8080
FLAGS:
--no-log disable request/response console logging
--no-log-request-info disable request info in console logging
--no-log-headers disable request/response headers in console logging
COMMANDS:
--help print help message
--print-info print dump files statistics to stdout as json/yaml
--print-requests print dump requests to stdout as json/yaml
--print-openapi print OpenAPI specification to stdout as json/yaml
Start server on dump file:
java -jar df.jar --dump dump.txt
Start server with built-in OpenAPI client:
java -jar df.jar --openapi-path /api --dump dump.txt
more examplesβ¦
Start server on few dump files:
java -jar df.jar --dump dump1.txt dump2.txt dump3.txtStart server with built-in OpenAPI client with custom title:
java -jar df.jar --openapi-path /api --openapi-title 'My REST API v18.2.1' --dump dump.txt
We use some tools to ensure code quality:
- flake8 β code style
- isort β imports order
- mypy β types annotation
- bandit β security: our code
To perform all checks, run:
make check
make test
You can use docker and docker-compose to work with your project.
To build a docker image, use:
docker build --ssh default . -t my-service
And run with:
docker run my-service
Options for docker run are:
-d
: Run in detached mode, does not hang your terminal session.--rm
: Removes container after finish-it
: Runs interactivelydocker run -it --rm my-service <command>
: run a command using the container image
docker ps
: Checks docker images running.docker exec -it <container_id> <command>
: Runs a command inside the running container.