jakartaee / jakartaee/rest

Support breaking the view layer from the control layer

Open
#70 6 comments 0 reactions 1 assignee View on GitHub

@glassfishrobot is already working on this.

Since Feb 10, 2018.

Component: model api
Dominant language
Java
Stars
400
Forks
143
PR merge metrics
No merged PRs in 30d

Description

(Email from Guilherme Silveira, [http://java.net/projects/jax-rs-spec/lists/jsr339-experts/archive/2011-03/message/90](http://java.net/projects/jax-rs-spec/lists/jsr339-experts/archive/2011-03/message/90) )

4\. Also support breaking the view layer from the control layer

If a method does not serialize or return anything, assume a default behavior so you don't have to repeat yourself all over the place. For example, if the show method did not return anything it would go to "/software/show.jsp" or /software/show.json.jsp or /software/show.xml.jsp etc according to conneg. To implement it, the semantic model needs to be exposed again:

public interface PathResolver {
String pathFor(ResourceMethod method);
}
#### Affected Versions
[2.0]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.