jakartaee / jakartaee/rest

Annotations to declare resource method response status type

Open
#449 4 comments 0 reactions 1 assignee Claimed by @glassfishrobot View on GitHub
Component: hypermedia Component: spec
Dominant language
Java
Stars
400
Forks
143
PR merge metrics
No merged PRs in 30d

Description

Rather than having to return a generic Response object in order to set
the status code to 201 CREATED, it would be nice to be able to mark a
resource method as @Creates, @Modifies, @Deletes, and have the
framework automatically map successful responses to something like 201
CREATED, 200 OK, 204 NO CONTENT.
#### Affected Versions
[2.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.