Skip to content

a-chumagin/openapi.client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openapi api.client

Kazan QA meetup

presentation

presentation

video

https://youtu.be/8qI1OLvF5S4

how to run

run SUT

  1. Start test server
docker run  --name swaggerapi-petstore2 -d -p 8080:8080 swaggerapi/petstore3:unstable java -jar -DswaggerUrl=openapi.yaml /swagger-petstore/jetty-runner.jar /swagger-petstore/server.war
  1. Check server http://localhost:8080/

generate client

  1. Generate client from openapi.json
docker run --rm -v ${PWD}:/depot openapitools/openapi-generator-cli generate \
     -i depot/openapi.json \
     -g java \
     -o /depot/client/
  1. Follow steps in client's README.md
  2. Run tests in "petstore"

Links

  1. https://github.com/OpenAPITools/openapi-generator
  2. https://openapi-generator.tech/

About

Code example for Kazan QA meetup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages