Class DatabaseResource
- java.lang.Object
-
- io.jans.configapi.core.rest.BaseResource
-
- io.jans.configapi.rest.resource.auth.ConfigBaseResource
-
- io.jans.configapi.rest.resource.auth.DatabaseResource
-
@Path("/config/database") @Consumes("application/json") @Produces("application/json") public class DatabaseResource extends ConfigBaseResource- Author:
- Puja Sharma
-
-
Constructor Summary
Constructors Constructor Description DatabaseResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.core.ResponsegetDatabaseSchema()Retrieves the database schema as a mapping from table names to their column attributes.-
Methods inherited from class io.jans.configapi.rest.resource.auth.ConfigBaseResource
getMaxCount
-
Methods inherited from class io.jans.configapi.core.rest.BaseResource
checkNotEmpty, checkNotEmpty, checkNotNull, checkNotNull, checkNotNull, checkResourceNotNull, createSearchRequest, findRootError, getBadRequestException, getBadRequestException, getBadRequestException, getHttpHeaders, getHttpRequest, getInternalServerException, getInternalServerException, getMissingAttributeError, getNotAcceptableException, getNotFoundError, getNotFoundError, getUriInfo, throwBadRequestException, throwBadRequestException, throwBadRequestException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwMissingAttributeError, throwNotFoundException, throwNotFoundException
-
-
-
-
Method Detail
-
getDatabaseSchema
@GET public jakarta.ws.rs.core.Response getDatabaseSchema()
Retrieves the database schema as a mapping from table names to their column attributes.- Returns:
- a DatabaseSchemaMap where each key is a table name and each value is a map from column/attribute name to its
AttributeType
-
-