The extension point should contribute classes that knows how to return a HashMap<String,Object> and that is given a documentModel and a string (the name of the context to give). We need :
- a service that expose a registry of context contributors. Contributors will react upon given headers and the contextual document.
- to use this service in the DocumentModelWriter in order to fill the contextParam
The goal is to be able to return additional resources within a document, if the client put a specific header in the request and have this behavior pluggable.
A sample use case of this feature could be to have a header to return children of the document
1.
|
Create the RestContextService | Resolved | Damien Metzler |
|
|||||||
2.
|
Use the RestContributorService in JSONDocumentWriter | Resolved | Damien Metzler |
|
|||||||
3.
|
Create some basic RestContributorService extensions | Resolved | Damien Metzler |
|
|||||||
4.
|
Align contributor filter on action filter | Resolved | Damien Metzler |
|