2.3.0 • Published 3 months ago

@openapi-generator-plus/java-jaxrs-client-generator v2.3.0

Weekly downloads
28
License
Apache-2.0
Repository
github
Last release
3 months ago

Java JAX-RS Client API generator for OpenAPI Generator Plus

An OpenAPI Generator Plus template for a Java API client using JAX-RS.

Overview

The generated code has useful features:

  • Model objects and enums will be nested in the API service if they are inlined in the specification.

Using

See the OpenAPI Generator Plus documentation for how to use generator templates.

Config file

The available config file properties are:

Project layout

PropertyTypeDescriptionDefault
packagestringBase package name that other default package names will be based on."com.example"
apiPackagestringPackage for API interfaces."${package}"
apiImplPackagestringPackage for API implementation classes."${package}.impl"
apiSpecPackagestringPackage for JAX-RS API interfaces."${package}.spec"
apiSpiPackagestringPackage for SPI interfaces for extra functionality."${package}.spi
modelPackagestringPackage for API model classes."${package}.model"
relativeSourceOutputPathstringThe path to output generated source code, relative to the output path../ or ./src/main/java if maven is specified.

Code style

PropertyTypeDescriptionDefault
useBeanValidationbooleanWhether to use bean validation.true
dateImplementationstringDate type class."java.time.LocalDate"
timeImplementationstringTime type class."java.time.LocalTime"
dateTimeImplementationstringDate time type class."java.time.OffsetDateTime"
binaryRepresentationstringBinary data representation."byte[]"
constantStyle"allCapsSnake"\|"allCaps"\|"camelCase"The style to use for constant naming."allCapsSnake"
useJakartabooleanWhether to use jakarta packages instead of javax packages.false

Behaviour

PropertyTypeDescriptionDefault
connectionTimeoutMillisnumberThe number of milliseconds to wait to connect to the API server before timing out. 0 means no timeout.30000
receiveTimeoutMillisnumberThe number of milliseconds to wait for a response the API server before timing out. 0 means no timeout.60000

Packaging

PropertyTypeDescriptionDefault
mavenMavenConfigConfiguration for generating a Maven pom.xmlundefined

MavenConfig

PropertyTypeDescriptionDefault
groupIdstringThe Maven template groupIdcom.example
artifactIdstringThe Maven template artifactIdapi-server
versionstringThe Maven template version0.0.1
versions{ name: version }Custom dependency versions (see pom.hbs)undefined

General

PropertyTypeDescriptionDefault
hideGenerationTimestampbooleanWhether to hide the timestamp in the @Generated annotation.false

Overrides

PropertyTypeDescriptionDefault
importsstring[]Additional imports to add to all generated classes.undefined
customTemplatesstringThe path to a directory containing custom Handlebars templates, relative to the config file. See Customising below.undefined

Customising

This generator supports a customTemplates config file property to specify a directory containing Handlebars templates that will be used to override built-in templates.

Any custom template will have the original template available as a partial named by prefixing the template name with original, and then upper-casing the first letter, e.g. originalBodyParams.

Some of the templates in the generator are designed to support overriding for custom requirements. Please inspect the templates in the templates directory.

2.3.0

3 months ago

2.2.10

5 months ago

2.2.5

8 months ago

2.2.4

10 months ago

2.2.7

6 months ago

2.2.6

6 months ago

2.2.9

6 months ago

2.2.8

6 months ago

2.2.3

1 year ago

2.2.2

1 year ago

2.2.1

1 year ago

2.2.0

1 year ago

2.1.2

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.0.0

2 years ago

1.1.1

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

1.0.2

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.39.9

2 years ago

0.39.8

2 years ago

0.39.7

3 years ago

0.39.6

3 years ago

0.39.5

3 years ago

0.39.2

3 years ago

0.38.3

3 years ago

0.39.1

3 years ago

0.39.0

3 years ago

0.38.2

3 years ago

0.38.1

3 years ago

0.38.0

3 years ago

0.37.0

3 years ago

0.36.3

3 years ago

0.36.2

3 years ago

0.36.1

3 years ago

0.36.0

3 years ago

0.35.0

3 years ago

0.34.1

3 years ago

0.34.0

3 years ago

0.33.1

3 years ago

0.33.0

3 years ago

0.32.0

3 years ago

0.31.0

3 years ago

0.30.0

3 years ago

0.29.0

3 years ago

0.28.0

3 years ago

0.27.1

3 years ago

0.27.0

3 years ago

0.25.2

3 years ago

0.23.4

3 years ago

0.25.1

3 years ago

0.25.0

3 years ago

0.26.0

3 years ago

0.24.2

3 years ago

0.24.1

3 years ago

0.24.0

3 years ago

0.23.3

3 years ago

0.23.2

3 years ago

0.23.1

3 years ago

0.23.0

3 years ago

0.22.0

3 years ago

0.21.1

3 years ago

0.21.0

3 years ago

0.20.0

3 years ago

0.19.0

3 years ago

0.19.1

3 years ago

0.17.0

3 years ago

0.18.0

3 years ago

0.17.1

3 years ago

0.16.0

3 years ago

0.15.0

3 years ago

0.14.0

3 years ago

0.14.1

3 years ago

0.14.2

3 years ago

0.13.7

3 years ago

0.13.6

3 years ago

0.13.4

3 years ago

0.13.5

3 years ago

0.13.2

3 years ago

0.13.3

3 years ago

0.13.1

3 years ago

0.13.0

3 years ago

0.12.0

3 years ago

0.11.0

3 years ago

0.11.1

3 years ago

0.10.0

3 years ago

0.10.1

3 years ago

0.9.1

4 years ago

0.9.0

4 years ago

0.8.5

4 years ago

0.8.6

4 years ago

0.8.4

4 years ago

0.8.3

4 years ago

0.8.2

4 years ago

0.8.1

4 years ago

0.8.0

4 years ago

0.7.2

4 years ago

0.7.1

4 years ago

0.7.0

4 years ago

0.6.5

4 years ago

0.6.3

4 years ago

0.6.4

4 years ago

0.6.2

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.6

4 years ago

0.5.5

4 years ago