jakartaee / jakartaee/rest

Alignment of "Convention over Configuration" / "Configuration By Exception" with other Java EE 6 APIs

Open
#76 7 comments 0 reactions 1 assignee Claimed by @glassfishrobot View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.