https://github.com/opalsecurity/opal-connector-spec
https://github.com/opalsecurity/opal-connector-spec
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/opalsecurity/opal-connector-spec
- Owner: opalsecurity
- License: apache-2.0
- Created: 2023-04-27T17:16:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-06-23T23:20:32.000Z (about 1 year ago)
- Last Synced: 2025-06-24T00:22:03.364Z (about 1 year ago)
- Size: 25.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# How to generate an OpenAPI connector
## Prerequisites
### Install OpenAPI Generator
```
brew install openapi-generator
```
### Generating the server stub
Check [OpenAPI Generator documentation](https://openapi-generator.tech/docs/generators/#server-generators)
for available server generators.
Clone this repository, then proceed by generating the connector server stub.
Check available configuration options for your chosen server generator to tweak
the output of the generated code.
```
git clone https://github.com/opalsecurity/opal-connector-spec.git
openapi-generator generate -g go-gin-server -i opal-connector-spec/openapi-connector-spec.yaml -o opal-myconnector-connector
```
Replace `go-gin-server` with the preferred server generator.