Class ClientRestService
- java.lang.Object
-
- fr.paris.lutece.plugins.identitystore.v3.web.rs.ClientRestService
-
@Path("/rest/identitystore/v3") public class ClientRestService extends ObjectClientRest
-
-
Constructor Summary
Constructors Constructor Description ClientRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsecreateClient(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.application.ClientApplicationDto clientDto, String clientCode, String authorName, String authorType, String strHeaderAppCode)Creates a service contract.
The service contract is created from the providedClientApplicationDto.
javax.ws.rs.core.ResponsegetClient(String targetClientCode, String headerClientCode, String authorName, String authorType, String strHeaderAppCode)Get Clientjavax.ws.rs.core.ResponsegetClients(String applicationCode, String clientCode, String authorName, String authorType, String strHeaderAppCode)Get Clientsjavax.ws.rs.core.ResponseupdateClient(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.application.ClientApplicationDto clientDto, String clientCode, String authorName, String authorType, String strHeaderAppCode)Updates a service contract.
The service contract is updated from the providedClientApplicationDto.
-
-
-
Method Detail
-
getClients
@Path("/clients/{application_code}") @GET @Produces("application/json") public javax.ws.rs.core.Response getClients(@PathParam("application_code") String applicationCode, @HeaderParam("client_code") String clientCode, @HeaderParam("author_name") String authorName, @HeaderParam("author_type") String authorType, @HeaderParam("application_code") @DefaultValue("") String strHeaderAppCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionGet Clients- Parameters:
applicationCode- application code- Returns:
- the Client
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
getClient
@Path("/client/{target_client_code}") @GET @Produces("application/json") public javax.ws.rs.core.Response getClient(@PathParam("target_client_code") String targetClientCode, @HeaderParam("client_code") String headerClientCode, @HeaderParam("author_name") String authorName, @HeaderParam("author_type") String authorType, @HeaderParam("application_code") @DefaultValue("") String strHeaderAppCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionGet Client- Parameters:
targetClientCode- target client code- Returns:
- the Client
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
createClient
@POST @Path("/client") @Consumes("application/json") public javax.ws.rs.core.Response createClient(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.application.ClientApplicationDto clientDto, @HeaderParam("client_code") String clientCode, @HeaderParam("author_name") String authorName, @HeaderParam("author_type") String authorType, @HeaderParam("application_code") @DefaultValue("") String strHeaderAppCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionCreates a service contract.
The service contract is created from the providedClientApplicationDto.
- Parameters:
clientDto- the service contract to create- Returns:
- http 200 if creation is ok with
ClientChangeResponse - Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
updateClient
@PUT @Path("/client/{client_code}") @Consumes("application/json") public javax.ws.rs.core.Response updateClient(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.application.ClientApplicationDto clientDto, @PathParam("client_code") String clientCode, @HeaderParam("author_name") String authorName, @HeaderParam("author_type") String authorType, @HeaderParam("application_code") @DefaultValue("") String strHeaderAppCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionUpdates a service contract.
The service contract is updated from the providedClientApplicationDto.
- Parameters:
clientDto- the service contract to updateclientCode- the application code in the HTTP header- Returns:
- http 200 if creation is ok with
ClientChangeResponse - Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
-