NIFI-259:

- Fixing Consumes for clear state endpoints.
This commit is contained in:
Matt Gilman 2016-01-14 15:35:53 -05:00
parent ae6f615365
commit 4236125f2b
3 changed files with 3 additions and 3 deletions

View File

@ -623,7 +623,7 @@ public class ControllerServiceResource extends ApplicationResource {
* @return a componentStateEntity
*/
@POST
@Consumes(MediaType.WILDCARD)
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
@Path("/{availability}/{id}/state/clear-requests")
@PreAuthorize("hasAnyRole('ROLE_DFM')")

View File

@ -631,7 +631,7 @@ public class ProcessorResource extends ApplicationResource {
* @return a componentStateEntity
*/
@POST
@Consumes(MediaType.WILDCARD)
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
@Path("/{id}/state/clear-requests")
@PreAuthorize("hasAnyRole('ROLE_DFM')")

View File

@ -616,7 +616,7 @@ public class ReportingTaskResource extends ApplicationResource {
* @return a componentStateEntity
*/
@POST
@Consumes(MediaType.WILDCARD)
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
@Path("/{availability}/{id}/state/clear-requests")
@PreAuthorize("hasAnyRole('ROLE_DFM')")