https://github.com/codeasashu/oas-mock-runner
Openapi spec mock runner for https://github.com/codeasashu/openapi-documentor/
https://github.com/codeasashu/oas-mock-runner
Last synced: 10 months ago
JSON representation
Openapi spec mock runner for https://github.com/codeasashu/openapi-documentor/
- Host: GitHub
- URL: https://github.com/codeasashu/oas-mock-runner
- Owner: codeasashu
- Created: 2022-01-04T18:02:47.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-04T18:03:03.000Z (about 4 years ago)
- Last Synced: 2024-10-06T00:41:11.502Z (over 1 year ago)
- Language: Python
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Mock Runner
This uses docs.myoperator.dev as openapi host to run mocks
## Environment vars
You need to set the following env vars to run this app.
**DOCS_ID**: This is the unique identifier of the openapi spec document.
This has a UUID pattern. You can obtain it by using any document url.
For example, in the url `https://docs.myoperator.dev/openapis/ab3b7fb5-949e-4715-acd7-0fae9e22dc41`
the `ab3b7fb5-949e-4715-acd7-0fae9e22dc41` is the __DOCS_ID__.
**DOCS_AUTH_TOKEN**: Obtain this from Admin panel of docs project.
**DOCS_BASE_URL**: The base url of the docs ui.#
After setting these variables in `.env` file (see `.env.example`), proceed to next
steps.
# Running mocks
Simply run as
```sh
python docker.py
```
This will start a container running the mock of api spec.