Class SqlConfigurationResource
- java.lang.Object
-
- io.jans.configapi.core.rest.BaseResource
-
- io.jans.configapi.rest.resource.auth.ConfigBaseResource
-
- io.jans.configapi.rest.resource.auth.SqlConfigurationResource
-
@Path("/config/database/sql") @Produces("application/json") @Consumes("application/json") public class SqlConfigurationResource extends ConfigBaseResource
-
-
Field Summary
-
Fields inherited from class io.jans.configapi.rest.resource.auth.ConfigBaseResource
DEFAULT_LIST_SIZE, DEFAULT_LIST_START_INDEX, DEFAULT_MAX_COUNT, READ_ACCESS, WRITE_ACCESS
-
-
Constructor Summary
Constructors Constructor Description SqlConfigurationResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.core.Response
add(@Valid @NotNull io.jans.orm.sql.model.SqlConnectionConfiguration conf)
jakarta.ws.rs.core.Response
delete(String name)
jakarta.ws.rs.core.Response
get()
jakarta.ws.rs.core.Response
getWithName(String name)
jakarta.ws.rs.core.Response
patch(String name, @NotNull String requestString)
jakarta.ws.rs.core.Response
test(@Valid @NotNull io.jans.orm.sql.model.SqlConnectionConfiguration conf)
jakarta.ws.rs.core.Response
update(@Valid @NotNull io.jans.orm.sql.model.SqlConnectionConfiguration conf)
-
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, getBadRequestException, getBadRequestException, getInternalServerException, getMissingAttributeError, getNotAcceptableException, getNotFoundError, thorwBadRequestException, thorwBadRequestException, thorwInternalServerException, throwMissingAttributeError
-
-
-
-
Method Detail
-
get
@GET public jakarta.ws.rs.core.Response get()
-
getWithName
@GET @Path("/{name}") public jakarta.ws.rs.core.Response getWithName(@PathParam("name") String name)
-
add
@POST public jakarta.ws.rs.core.Response add(@Valid @NotNull @Valid @NotNull io.jans.orm.sql.model.SqlConnectionConfiguration conf)
-
update
@PUT public jakarta.ws.rs.core.Response update(@Valid @NotNull @Valid @NotNull io.jans.orm.sql.model.SqlConnectionConfiguration conf)
-
delete
@DELETE @Path("/{name}") public jakarta.ws.rs.core.Response delete(@PathParam("name") String name)
-
patch
@PATCH @Path("/{name}") @Consumes("application/json-patch+json") public jakarta.ws.rs.core.Response patch(@PathParam("name") String name, @NotNull @NotNull String requestString) throws Exception
- Throws:
Exception
-
test
@POST @Path("/test") public jakarta.ws.rs.core.Response test(@Valid @NotNull @Valid @NotNull io.jans.orm.sql.model.SqlConnectionConfiguration conf)
-
-