jakartaee / jakartaee/rest

Seam Framework JaxRS templating support

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

@glassfishrobot is already working on this.

Since Feb 10, 2018.

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

Description

Having explored Seam Framework JaxRS templating support [1] I find it useful and could be incorporated into the spec.
@ResponseTemplate and @ResponseTemplates annotations to designate the template[s] to use for either the default response mime-type for the method annotated with @Produces or with a property (like in Seam doc) @ResponseTemplate(value = "/freemarker/categories.ftl", produces = "application/xml").
Provide and SPI to register TemplatingProviders (FreeMarker etc...) the extension provider should implement an Interface. The implementation (during registration) express its interest in a specific templating language by mean of RegEX (.ftl, /templates/freemarker/).

[1] [http://docs.jboss.org/seam/3/rest/latest/reference/en-US/html/rest.templating.html](http://docs.jboss.org/seam/3/rest/latest/reference/en-US/html/rest.templating.html)
#### 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.