Class ClientRestService

java.lang.Object
fr.paris.lutece.plugins.identitystore.v3.web.rs.ClientRestService
All Implemented Interfaces:
IRestService

@Path("/rest/identitystore/v3") public class ClientRestService extends Object implements IRestService
ClientRest
  • Constructor Details

    • ClientRestService

      public ClientRestService()
  • Method Details

    • getClients

      @Path("/clients") @GET @Produces("application/json") public javax.ws.rs.core.Response getClients(@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.IdentityStoreException
      Get all Clients
      Returns:
      the Clients
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
    • getClientsByAppCode

      @Path("/clients/{application_code}") @GET @Produces("application/json") public javax.ws.rs.core.Response getClientsByAppCode(@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.IdentityStoreException
      Get Clients by app code
      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.IdentityStoreException
      Get 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.IdentityStoreException
      Creates a client
      The client is created from the provided ClientApplicationDto.