forked from loafle/openapi-generator-original
* Drop separate version property Not required as all Jackson packages usually tether on a version bump. * Update Jackson to v2.17.1 * Sync Jackson version used by Spring Boot with project version * Sync jackson update to v2.17.1 with generator templates * Regenerate samples with updated versions * Adjust test to current exception msg behavior * Add dependency mgmt to ensure matching version for transitive dependencies * Update library descriptions with correct Jackson version number * Update library descriptions with correct GSON and JSONB versions * Update retrofit library description with correct version number * Update retrofit description to include Jackson as an option This should have been done as part of in #16853. * Update remaining libary version descriptions with correct versions * Generate updated 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.7.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}"
};