application/json in only valid patch Content-Type
application/json-patch+json is no longer ia valid patch Content-Type. The CLI has been updated to no longer send this Content-Type Change-Id: I6b064cb46336b3eeaf62bed3196163f1db3b03fa
This commit is contained in:
@@ -125,7 +125,7 @@ public class AlarmDefinitionResource {
|
||||
@PATCH
|
||||
@Timed
|
||||
@Path("/{alarm_definition_id}")
|
||||
@Consumes({"application/json-patch+json", MediaType.APPLICATION_JSON})
|
||||
@Consumes(MediaType.APPLICATION_JSON)
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
@SuppressWarnings("unchecked")
|
||||
public AlarmDefinition patch(@Context UriInfo uriInfo,
|
||||
|
||||
@@ -148,7 +148,7 @@ public class AlarmResource {
|
||||
@PATCH
|
||||
@Timed
|
||||
@Path("/{alarm_id}")
|
||||
@Consumes({"application/json-patch+json", MediaType.APPLICATION_JSON})
|
||||
@Consumes(MediaType.APPLICATION_JSON)
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public Alarm patch(@Context UriInfo uriInfo, @HeaderParam("X-Tenant-Id") String tenantId,
|
||||
@PathParam("alarm_id") String alarmId, @NotEmpty Map<String, Object> fields)
|
||||
|
||||
Reference in New Issue
Block a user