Wednesday, 26 September 2018

Restlet example

https://stackoverflow.com/questions/19341019/how-to-convert-a-json-type-input-of-a-restlet-request-to-a-pojo



@Put
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public Device b(Device device) {
    // Do something with the POJO!!!
    return device;
}

No comments:

Post a Comment