Details
-
Story
-
Resolution: Not an issue
-
Neutral
-
None
-
None
-
None
-
None
Description
As a developer I must somehow specify which version of the DeliveryEndpoint system I am using, I want to do that in a clean, simple to understand, and not java-oriented way.
Also, we have decided that we should not supply a default endpoint as we see that this will cause projects to break in the future when we introduce new versions of the default endpoint which will not be backwards compatible.
Notes:
Currently one has to specify the class (or rely on a default).
class: info.magnolia.rest.delivery.jcr.v2.JcrDeliveryEndpointDefinition
The standard magnolia pattern for this would be to add a $type mapping with a simple name, like "jcrDeliveryEndpoint_v2". I think this would be an acceptible solution. However, consider if there might be a better way, keeping in mind that we will be introducing new versionss, like "v3", and we  might want to even introduce minor versions . like "3.2".
Would we want do do something like:
type: jcrDeliveryEndpoint version: 3
If we did introduce a new 'version' field, then we could actually consdier making the type/class a default since the developers projects would be safe since they are pinned on a specific version.
Â
Â
Â
Checklists
Attachments
Issue Links
- relates to
-
MGNLREST-522 Specify Norsu endpoint without Java classes
-
- Closed
-
1.
|
Implementation |
|
To Do | Unassigned |
2.
|
Review |
|
To Do | Unassigned |
3.
|
Pre-Integration QA |
|
To Do | Unassigned |
4.
|
QA |
|
To Do | Unassigned |