Class TableApisSpecV1
java.lang.Object
com.kingsrook.qqq.middleware.javalin.specs.AbstractEndpointSpec<AbstractJsonEndpointSpec.JsonInput,AbstractJsonEndpointSpec.JsonOutput,AbstractJsonEndpointSpec.JsonExecutor>
com.kingsrook.qqq.middleware.javalin.specs.extensions.AbstractJsonEndpointSpec
com.kingsrook.qqq.middleware.javalin.specs.v1.TableApisSpecV1
GET /table/{tableName}/apis: the application (model) APIs that expose a
table, with their versions and the path of the table's OpenAPI document in
each, for the developer views. Replaces the unversioned /apis.json and
{api}/versions.json for v1 clients. The list comes from every
TableApisProviderInterface on the classpath (qqq-middleware-api provides
one); with none it is empty.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.kingsrook.qqq.middleware.javalin.specs.extensions.AbstractJsonEndpointSpec
AbstractJsonEndpointSpec.JsonExecutor, AbstractJsonEndpointSpec.JsonInput, AbstractJsonEndpointSpec.JsonOutput, AbstractJsonEndpointSpec.JsonOutputInterface -
Field Summary
Fields inherited from class com.kingsrook.qqq.middleware.javalin.specs.AbstractEndpointSpec
qInstance -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.kingsrook.qqq.middleware.javalin.specs.extensions.AbstractJsonEndpointSpec
buildInput, defineBasicSuccessResponse, defineRequestBody, defineRequestBodySchema, handleOutputMethods inherited from class com.kingsrook.qqq.middleware.javalin.specs.AbstractEndpointSpec
checkCredentialScopeOperation, customizeMethod, defineAdditionalBasicResponses, defineCompleteOperation, defineMethod, defineResponses, defineRoute, getOperationId, getRequestBodyAsJsonObject, getRequestParam, getRequestParamInteger, getRequestParamMap, handleException, isSecured, newExecutor, newOutput, serveRequest, setQInstance
-
Constructor Details
-
TableApisSpecV1
public TableApisSpecV1()
-
-
Method Details
-
defineBasicOperation
-
defineRequestParameters
-
getResponseSchemaName
Description copied from class:AbstractJsonEndpointSpecThe component schema name of the 200 response body.- Specified by:
getResponseSchemaNamein classAbstractJsonEndpointSpec
-
defineComponentSchemas
-
handle
Description copied from class:AbstractJsonEndpointSpecDo the operation's work (the QContext has the session for a secured spec) and return the response body (serialized to JSON).- Specified by:
handlein classAbstractJsonEndpointSpec- Throws:
Exception
-