Merge pull request #3751 from stianst/KEYCLOAK-4192

KEYCLOAK-4192 Added missing produces annotations for update methods
This commit is contained in:
Stian Thorgersen 2017-01-16 09:41:29 +01:00 committed by GitHub
commit 5842f7c837
2 changed files with 2 additions and 0 deletions

View file

@ -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);

View file

@ -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);