Merge pull request #3751 from stianst/KEYCLOAK-4192
KEYCLOAK-4192 Added missing produces annotations for update methods
This commit is contained in:
commit
5842f7c837
2 changed files with 2 additions and 0 deletions
|
@ -62,6 +62,7 @@ public class DefaultClientRegistrationProvider extends AbstractClientRegistratio
|
|||
@PUT
|
||||
@Path("{clientId}")
|
||||
@Consumes(MediaType.APPLICATION_JSON)
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public Response updateDefault(@PathParam("clientId") String clientId, ClientRepresentation client) {
|
||||
DefaultClientRegistrationContext context = new DefaultClientRegistrationContext(session, client, this);
|
||||
client = update(clientId, context);
|
||||
|
|
|
@ -101,6 +101,7 @@ public class OIDCClientRegistrationProvider extends AbstractClientRegistrationPr
|
|||
@PUT
|
||||
@Path("{clientId}")
|
||||
@Consumes(MediaType.APPLICATION_JSON)
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public Response updateOIDC(@PathParam("clientId") String clientId, OIDCClientRepresentation clientOIDC) {
|
||||
try {
|
||||
ClientRepresentation client = DescriptionConverter.toInternal(session, clientOIDC);
|
||||
|
|
Loading…
Reference in a new issue