Alignment of "Convention over Configuration" / "Configuration By Exception" with other Java EE 6 APIs
Open
- Dominant language
- Java
- Stars
- 400
- Forks
- 143
- PR merge metrics
- No merged PRs in 30d
Description
JAX-RS 2.0 should behave (Configuration by Exception / Convention over Configuration) like JPA 2 / EJB 3.2 / CDI APIs:
1\. The value of the @Path annotation should be derived from class / method name respectively
2\. The default MediaType for @Consumes / @Produces should be MediaType.TEXT_PLAIN
3\. There is no need for the specification of @Consumes / @Produces in case 2.
4\. A single method (regardless of its name) in a resource / sub resource should be defaulted to a @GET request.
5... [TBD]
But: HTTP methods (@GET, @POST, @PUT ...) must not be automatically derived from method names.
See also: #64
#### Affected Versions
[1.1]
Contributor guide
Assessment
This issue has not been assessed yet.