codegist/crest — Issue #10: Request body data not supported?
Author: ksperling
Created: 2011-11-04 06:50:56+00:00
State: open

Maybe I'm missing something obvious here, but it looks like crest (2.0.0-RC1) does not seem to support parameters bound to the HTTP body, which is very common in POST/PUT requests. E.g.

```java
@Path("/something")
public interface SomethingResource {
@POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public Response something(Request request);
}
```

where Request and Response are POJOs that I'm expecting to be handled by the normal serialization mechanism (i.e. Jackson, SimpleXML, ...). I started looking into how I can implement an EntityWriter for this, but most of the implementation classes that would need to be sub-classed like DefaultMethodConfigBuilder are package-private.