wisdom-framework / wisdom

A modular and dynamic web framework
http://wisdom-framework.org
Apache License 2.0
88 stars 42 forks source link

Add example support to the wisdom-raml-maven-plugin #467

Closed barjo closed 9 years ago

barjo commented 9 years ago

We should be able to define a sample for the Body of a POST/PUT method through the javadoc. If the route accepts several content-type, then the sample must be given in the same order as the content type as been declared.

/**
 * Create a new Human.
 *
 * @body.sample { "name" : "Nobody" }
 */
 @Route(method = PUT,uri = "/human",accepts = "application/json")
 public Result putHuman(@Body final JsonNode human){