[
https://issues.apache.org/jira/browse/ISIS-3281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andi Huber updated ISIS-3281:
-----------------------------
Description: Reproduce: Demo App ->
http://localhost:8080/restful/objects/demo.JavaLangTypesMenu/1/actions/strings/invoke
(was: Demo-Url:
http://localhost:9090/restful/objects/causeway.applib.DomainObjectList/PAR-LCAAAAAAAAACFkMFOwzAMhu99iih3knFDU5uJyyQQiMPGA5jU6jolTqndjb49icpgggM5Ob9_f7_levMRgzrhyH2iRt-alVZIPrU9dY1-3W9v7rRiAWohJMJGz8h646o69CwqzxKvfYqNPogMa2s9TIxnmA0M4A9o0thZzkUEm20xkXaVyq-WXgK6lXqEE6gnoE7tZMyhjFzbpbkYwUte7eVMubl99-RajAmGwbQpGpkHZHPMjJARpsAKa1_kZ6Sptn_Gr6kPreMl9WLMyrXhfuymiCTsLoYfZfFhwPItif9t9xX1veXuEv2bsZDT2xG9sM3HtuXarvoE7Zuwqq0BAAA=/collections/objects
Sample for new behaviour:
{code}
{
"id" : "objects",
"memberType" : "collection",
"links" : [ {
"rel" : "self",
"href" :
"http://localhost:9090/restful/objects/causeway.applib.DomainObjectList/PAR-LCAAAAAAAAACFkMFOwzAMhu99iih3knFDU5uJyyQQiMPGA5jU6jolTqndjb49icpgggM5Ob9_f7_levMRgzrhyH2iRt-alVZIPrU9dY1-3W9v7rRiAWohJMJGz8h646o69CwqzxKvfYqNPogMa2s9TIxnmA0M4A9o0thZzkUEm20xkXaVyq-WXgK6lXqEE6gnoE7tZMyhjFzbpbkYwUte7eVMubl99-RajAmGwbQpGpkHZHPMjJARpsAKa1_kZ6Sptn_Gr6kPreMl9WLMyrXhfuymiCTsLoYfZfFhwPItif9t9xX1veXuEv2bsZDT2xG9sM3HtuXarvoE7Zuwqq0BAAA=/collections/objects",
"method" : "GET",
"type" :
"application/json;profile=\"urn:org.restfulobjects:repr-types/object-collection\""
}, {
"rel" : "up",
"href" :
"http://localhost:9090/restful/objects/causeway.applib.DomainObjectList/PAR-LCAAAAAAAAACFkMFOwzAMhu99iih3knFDU5uJyyQQiMPGA5jU6jolTqndjb49icpgggM5Ob9_f7_levMRgzrhyH2iRt-alVZIPrU9dY1-3W9v7rRiAWohJMJGz8h646o69CwqzxKvfYqNPogMa2s9TIxnmA0M4A9o0thZzkUEm20xkXaVyq-WXgK6lXqEE6gnoE7tZMyhjFzbpbkYwUte7eVMubl99-RajAmGwbQpGpkHZHPMjJARpsAKa1_kZ6Sptn_Gr6kPreMl9WLMyrXhfuymiCTsLoYfZfFhwPItif9t9xX1veXuEv2bsZDT2xG9sM3HtuXarvoE7Zuwqq0BAAA=",
"method" : "GET",
"type" :
"application/json;profile=\"urn:org.restfulobjects:repr-types/object\"",
"title" : "0 Java Lang Stringses"
}, {
"rel" : "describedby",
"href" :
"http://localhost:9090/restful/domain-types/causeway.applib.DomainObjectList/collections/objects",
"method" : "GET",
"type" :
"application/json;profile=\"urn:org.restfulobjects:repr-types/collection-description\""
} ],
"extensions" : {
"collectionSemantics" : "list"
},
"value" : [ ]
}
{code}
Sample for old behaviour:
{code}
{
"id": "entities",
"memberType": "collection",
"links": [
{
"rel": "self",
"href":
"http://localhost:8080/restful/objects/demo.JavaLangStrings/PADw_eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz4KPERlbW8vPgo=/collections/entities",
"method": "GET",
"type":
"application/json;profile=\"urn:org.restfulobjects:repr-types/object-collection\""
},
{
"rel": "up",
"href":
"http://localhost:8080/restful/objects/demo.JavaLangStrings/PADw_eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz4KPERlbW8vPgo=",
"method": "GET",
"type":
"application/json;profile=\"urn:org.restfulobjects:repr-types/object\"",
"title": "String data type"
},
{
"rel": "describedby",
"href":
"http://localhost:8080/restful/domain-types/demo.JavaLangStrings/collections/entities",
"method": "GET",
"type":
"application/json;profile=\"urn:org.restfulobjects:repr-types/collection-description\""
}
],
"extensions": {
"collectionSemantics": "list"
},
"value": [
{
"rel": "urn:org.restfulobjects:rels/value",
"href":
"http://localhost:8080/restful/objects/demo.JavaLangStringEntity/196",
"method": "GET",
"type":
"application/json;profile=\"urn:org.restfulobjects:repr-types/object\"",
"title": "StringJDO entity: Hello"
},
{
"rel": "urn:org.restfulobjects:rels/value",
"href":
"http://localhost:8080/restful/objects/demo.JavaLangStringEntity/197",
"method": "GET",
"type":
"application/json;profile=\"urn:org.restfulobjects:repr-types/object\"",
"title": "StringJDO entity: world"
}
]
}
{code})
> [RO] When Menu Invocation should produce a Viewmodel returns DomainObjectList
> instead
> -------------------------------------------------------------------------------------
>
> Key: ISIS-3281
> URL: https://issues.apache.org/jira/browse/ISIS-3281
> Project: Isis
> Issue Type: New Feature
> Components: Isis Viewer RO
> Affects Versions: 2.0.0-M9
> Reporter: Jörg Rade
> Assignee: Andi Huber
> Priority: Major
> Fix For: 2.0.0-RC1
>
>
> Reproduce: Demo App ->
> http://localhost:8080/restful/objects/demo.JavaLangTypesMenu/1/actions/strings/invoke
--
This message was sent by Atlassian Jira
(v8.20.10#820010)