Class DefaultOpenApiTypeDescriber
java.lang.Object
org.apache.tapestry5.internal.services.rest.DefaultOpenApiTypeDescriber
- All Implemented Interfaces:
OpenApiTypeDescriber
OpenApiTypeDescriber
implementation that handles some basic types, mostly primitives and String.
Since this is the fallback, if the parameter doesn't have any handled type, it defaults
to give the object
to it without providing properties.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
describe
(JSONObject description, Parameter parameter) Describes a REST event handler method parameter.void
describeReturnType
(JSONObject description, Method method) Describes a REST event handler method return type.void
describeSchema
(Class<?> entity, JSONObject schemas) Describes the schema of a mapped entity class
-
Constructor Details
-
DefaultOpenApiTypeDescriber
-
-
Method Details
-
describe
Description copied from interface:OpenApiTypeDescriber
Describes a REST event handler method parameter.- Specified by:
describe
in interfaceOpenApiTypeDescriber
- Parameters:
description
-JSONObject
containing the description of an event handler parameter.parameter
- the event handler method parameter.
-
describeReturnType
Description copied from interface:OpenApiTypeDescriber
Describes a REST event handler method return type.- Specified by:
describeReturnType
in interfaceOpenApiTypeDescriber
- Parameters:
description
-JSONObject
containing the description of a path response.method
- the event handler method itself.
-
describeSchema
Description copied from interface:OpenApiTypeDescriber
Describes the schema of a mapped entity class- Specified by:
describeSchema
in interfaceOpenApiTypeDescriber
- Parameters:
entity
- an entity class.schemas
-JSONObject
where the entity description should be added.- See Also:
-