KotlinJAXRSGenerator

class KotlinJAXRSGenerator(val document: Document, val shapeIndex: ShapeIndex, val typeRegistry: KotlinTypeRegistry, val options: KotlinJAXRSGenerator.Options) : KotlinGenerator

Generator for Kotlin/'JAX-RS 2' interfaces

Constructors

Link copied to clipboard
fun KotlinJAXRSGenerator(document: Document, shapeIndex: ShapeIndex, typeRegistry: KotlinTypeRegistry, options: KotlinJAXRSGenerator.Options)

Types

Link copied to clipboard
class Options(val coroutineServiceMethods: Boolean, val reactiveResponseType: String?, val explicitSecurityParameters: Boolean, val baseUriMode: KotlinJAXRSGenerator.Options.BaseUriMode?, val alwaysUseResponseReturn: Boolean, val defaultServicePackageName: String, val defaultProblemBaseUri: String, val defaultMediaTypes: List<String>, val serviceSuffix: String) : KotlinGenerator.Options

Functions

Link copied to clipboard
fun addNullifyMethod(operation: Operation, function: FunSpec, problemTypes: Map<URI, TypeName>, typeBuilder: TypeSpec.Builder, copyAnnotaitons: Boolean = false)
Link copied to clipboard
open fun generateServiceType(serviceTypeName: ClassName, endPoints: List<EndPoint>): TypeSpec.Builder
Link copied to clipboard
open override fun generateServiceTypes()
Link copied to clipboard
open override fun processResourceMethodBodyParameter(endPoint: EndPoint, operation: Operation, payloadSchema: Shape, typeBuilder: TypeSpec.Builder, functionBuilder: FunSpec.Builder, parameterBuilder: ParameterSpec.Builder): ParameterSpec
Link copied to clipboard
open override fun processResourceMethodEnd(endPoint: EndPoint, operation: Operation, problemTypes: Map<URI, TypeName>, typeBuilder: TypeSpec.Builder, functionBuilder: FunSpec.Builder): FunSpec
Link copied to clipboard
open override fun processResourceMethodHeaderParameter(endPoint: EndPoint, operation: Operation, parameter: Parameter, typeBuilder: TypeSpec.Builder, functionBuilder: FunSpec.Builder, parameterBuilder: ParameterSpec.Builder): ParameterSpec
Link copied to clipboard
open override fun processResourceMethodQueryParameter(endPoint: EndPoint, operation: Operation, parameter: Parameter, typeBuilder: TypeSpec.Builder, functionBuilder: FunSpec.Builder, parameterBuilder: ParameterSpec.Builder): ParameterSpec
Link copied to clipboard
open override fun processResourceMethodStart(endPoint: EndPoint, operation: Operation, typeBuilder: TypeSpec.Builder, functionBuilder: FunSpec.Builder): FunSpec.Builder
Link copied to clipboard
open override fun processResourceMethodUriParameter(endPoint: EndPoint, operation: Operation, parameter: Parameter, typeBuilder: TypeSpec.Builder, functionBuilder: FunSpec.Builder, parameterBuilder: ParameterSpec.Builder): ParameterSpec
Link copied to clipboard
open override fun processReturnType(endPoint: EndPoint, operation: Operation, response: Response, body: Shape?, problemTypes: Map<String, ProblemTypeDefinition>, typeBuilder: TypeSpec.Builder, functionBuilder: FunSpec.Builder, returnTypeName: TypeName): TypeName
Link copied to clipboard
open override fun processServiceBegin(serviceTypeName: ClassName, endPoints: List<EndPoint>): TypeSpec.Builder
Link copied to clipboard
open override fun processServiceEnd(typeBuilder: TypeSpec.Builder): TypeSpec.Builder
Link copied to clipboard
fun resolveTypeName(shape: Shape, suggestedTypeName: ClassName?): TypeName

Properties

Link copied to clipboard
val api: WebApi
Link copied to clipboard
Link copied to clipboard
val document: Document
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard