mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-11-11 22:23:40 +00:00
* Revert "v7.14.0 release (#21443)" This reverts commit 5eb083e5ce1dd99659fadc03d7c6e809d3077af6. * prepare v7.15.0 snapshot * update samples * update readme * update doc
This is a sample server Petstore server. For this sample, you can use the api key special-key to test the authorization filters.
This Groovy package, using the http-builder-ng library, is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0
- Package version: 1.0.0
- Generator version: 7.15.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.GroovyClientCodegen
Requirements
- Groovy 2.5.7
- Gradle 4.9
Build
First, create the gradle wrapper script:
gradle wrapper
Then, run:
./gradlew check assemble
Getting Started
def apiInstance = new PetApi()
def pet = new Pet() // Pet | Pet object that needs to be added to the store
apiInstance.addPet(pet)
{
// on success
def result = (Pet)it
println result
}
{
// on failure
statusCode, message ->
println "${statusCode} ${message}"
};