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 -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseRetrieves the database schema as a mapping from table names to their column attributes.Methods inherited from class io.jans.configapi.rest.resource.auth.ConfigBaseResource
getMaxCountMethods 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
-
Constructor Details
-
DatabaseResource
public DatabaseResource()
-
-
Method Details
-
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
-