Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 874 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 874 Bytes

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/