Class ModelApiTableApisProvider
java.lang.Object
com.kingsrook.qqq.api.javalin.ModelApiTableApisProvider
- All Implemented Interfaces:
TableApisProviderInterface
The model APIs that expose a table, for the UI API's
GET /qqq/v1/table/{tableName}/apis (registered through
META-INF/services). Same selection as /apis.json?tableName=: every API
instance whose table metadata includes the table and doesn't exclude it.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.kingsrook.qqq.middleware.javalin.specs.v1.TableApisProviderInterface
TableApisProviderInterface.TableApi, TableApisProviderInterface.TableApiVersion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTableApis(QInstance qInstance, String tableName) The APIs in this instance that expose the table (which exists, and which the caller may read).getTableSpecJson(QInstance qInstance, String apiName, String version, String tableName) The table's document, as {api.path}{version}/{table}/openapi.json serves it - only for an API and version that getTableApis lists for the table.
-
Constructor Details
-
ModelApiTableApisProvider
public ModelApiTableApisProvider()
-
-
Method Details
-
getTableApis
public List<TableApisProviderInterface.TableApi> getTableApis(QInstance qInstance, String tableName) Description copied from interface:TableApisProviderInterfaceThe APIs in this instance that expose the table (which exists, and which the caller may read).- Specified by:
getTableApisin interfaceTableApisProviderInterface
-
getTableSpecJson
public Optional<String> getTableSpecJson(QInstance qInstance, String apiName, String version, String tableName) throws Exception The table's document, as {api.path}{version}/{table}/openapi.json serves it - only for an API and version that getTableApis lists for the table.- Specified by:
getTableSpecJsonin interfaceTableApisProviderInterface- Throws:
Exception
-