Record Class UiApiOperation
java.lang.Object
java.lang.Record
com.kingsrook.qqq.middleware.javalin.specs.invoke.UiApiOperation
- Record Components:
method- HTTP methodpathTemplate- path template, e.g. /table/{tableName}/querysummary- short summarytag- OpenAPI tagsecured- whether a session is requiredopenApi- the OpenAPI operation objectspecClass- the endpoint spec class name
public record UiApiOperation(HttpMethod method, String pathTemplate, String summary, String tag, boolean secured, Method openApi, String specClass)
extends Record
One invocable UI API operation, as described by its endpoint spec: method,
path template (relative to the version base path), whether it needs a
session, and the full OpenAPI operation (parameters, request body and
responses) for building tool definitions.
-
Constructor Summary
ConstructorsConstructorDescriptionUiApiOperation(HttpMethod method, String pathTemplate, String summary, String tag, boolean secured, Method openApi, String specClass) Creates an instance of aUiApiOperationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.openApi()Returns the value of theopenApirecord component.Returns the value of thepathTemplaterecord component.booleansecured()Returns the value of thesecuredrecord component.Returns the value of thespecClassrecord component.summary()Returns the value of thesummaryrecord component.tag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UiApiOperation
public UiApiOperation(HttpMethod method, String pathTemplate, String summary, String tag, boolean secured, Method openApi, String specClass) Creates an instance of aUiApiOperationrecord class.- Parameters:
method- the value for themethodrecord componentpathTemplate- the value for thepathTemplaterecord componentsummary- the value for thesummaryrecord componenttag- the value for thetagrecord componentsecured- the value for thesecuredrecord componentopenApi- the value for theopenApirecord componentspecClass- the value for thespecClassrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
method
-
pathTemplate
Returns the value of thepathTemplaterecord component.- Returns:
- the value of the
pathTemplaterecord component
-
summary
-
tag
-
secured
-
openApi
-
specClass
-