Class DatabaseResource


  • @Path("/config/database")
    @Consumes("application/json")
    @Produces("application/json")
    public class DatabaseResource
    extends ConfigBaseResource
    Author:
    Puja Sharma
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      jakarta.ws.rs.core.Response getDatabaseSchema()
      Retrieves the database schema as a mapping from table names to their column attributes.
      • 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
    • Constructor Detail

      • DatabaseResource

        public DatabaseResource()
    • 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