Last active
June 7, 2023 19:19
-
-
Save QAInsights/245a0838aa47559414ea0e9a80691c19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Method 1 | |
npm install @openapitools/openapi-generator-cli -g | |
openapi-generator-cli help | |
openapi-generator-cli version | |
openapi-generator-cli generate -g jmeter -i http://localhost:9966/petclinic/v2/api-docs | |
# Method 2 | |
docker run --rm \ | |
-v ${PWD}:/local/jmeter openapitools/openapi-generator-cli generate \ | |
-g jmeter \ | |
-i https://d491-65-27-240-54.ngrok.io/petclinic/v2/api-docs \ | |
-o /local/jmeter | |
# Method 3 | |
docker run -d -p 8888:8080 openapitools/openapi-generator-online | |
curl -X POST --header 'Content-Type: application/json' \ | |
--header 'Accept: application/json' \ | |
-d '{"openAPIUrl": "https://d491-65-27-240-54.ngrok.io/petclinic/v2/api-docs"}' \ | |
'http://localhost:8888/api/gen/clients/jmeter' | |
wget http://localhost:8888/api/gen/download/c13672b0-c26b-4376-b949-4d7bf328e71b | |
unzip c13672b0-c26b-4376-b949-4d7bf328e71b | |
# Method 4 | |
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.0.1/openapi-generator-cli-6.0.1.jar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment