Skip to content

add the open api execute command #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,18 @@ Please note the following guidelines:

- OpenAPI Generator can't generate Python client with Java 17+
- https://github.com/OpenAPITools/openapi-generator/issues/13684

## Usage

You can launch the Swagger UI to browse the OpenAPI specs locally using Docker.
First, make sure you have `docker-compose.yml` in this directory. Then run:

```sh
docker-compose up
```

By default, the Swagger UI will be available at: [http://localhost:8080](http://localhost:8080)

### Using Docker Command

Alternatively, you can use the following Docker command:
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: '3.8'
services:
swagger-ui:
image: swaggerapi/swagger-ui:latest
container_name: line-open-api-doc
ports:
- "8080:8080"
environment:
- PORT=8080
- API_URL=/openapi/messaging-api.yml
volumes:
- ./:/usr/share/nginx/html/openapi
Loading