REST API incomplete annotations


#1

Hi,
I think some annotations in the camunda-engine-rest-core services interface might be incomplete in the @Consumes annotation.
I found an issue when trying to use the UserRestService.createUser method thru a generic rest client like jboss resteasy. I get a HTTP 415 error for incorrect media type.

I think the annotation should be
@Consumes(MediaType.APPLICATION_JSON)
like other post services (eg GroupRestService.createGroup).

I solved the situation creating a derived interface with the correct annotation, but it should not be necessary.


#2

Hi,

Thank you for pointing that out.
Are you interested in providing a pull request?

Best regards,
Yana


#3

Hi,

No need. Has long as it becomes corrected in a future release it´s ok for me.
I´ll use my workaround for now.

Regards,
Joao