Class TableApiDocumentSpecV1
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.TableApiDocumentSpecV1
GET /table/{tableName}/apis/{apiName}/{version}/openapi: the table's OpenAPI
document in one version of an application API (one listed by
GET /table/{tableName}/apis), for the developer views - so they read it
through the UI API rather than from the API middleware's
{api.path}{version}/{table}/openapi.json. The document comes from the
TableApisProviderInterface that serves the API.
-
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
-
TableApiDocumentSpecV1
public TableApiDocumentSpecV1()
-
-
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
-