You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Jörg Rade (Jira)" <ji...@apache.org> on 2022/11/18 16:07:00 UTC

[jira] [Created] (ISIS-3281) [RO] object-collection contains empty value []

Jörg Rade created ISIS-3281:
-------------------------------

             Summary: [RO] object-collection contains empty value []
                 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
             Fix For: 2.0.0-RC1


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}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)