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 TypeMethodDescriptionvoiddescribe(JSONObject description, Parameter parameter) Describes a REST event handler method parameter.voiddescribeReturnType(JSONObject description, Method method) Describes a REST event handler method return type.voiddescribeSchema(Class<?> entity, JSONObject schemas) Describes the schema of a mapped entity class
-
Constructor Details
-
DefaultOpenApiTypeDescriber
-
-
Method Details
-
describe
Description copied from interface:OpenApiTypeDescriberDescribes a REST event handler method parameter.- Specified by:
describein interfaceOpenApiTypeDescriber- Parameters:
description-JSONObjectcontaining the description of an event handler parameter.parameter- the event handler method parameter.
-
describeReturnType
Description copied from interface:OpenApiTypeDescriberDescribes a REST event handler method return type.- Specified by:
describeReturnTypein interfaceOpenApiTypeDescriber- Parameters:
description-JSONObjectcontaining the description of a path response.method- the event handler method itself.
-
describeSchema
Description copied from interface:OpenApiTypeDescriberDescribes the schema of a mapped entity class- Specified by:
describeSchemain interfaceOpenApiTypeDescriber- Parameters:
entity- an entity class.schemas-JSONObjectwhere the entity description should be added.- See Also:
-