[
https://issues.apache.org/jira/browse/CAUSEWAY-3428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Keir Haywood updated CAUSEWAY-3428:
------------------------------------------
Fix Version/s: 3.2.0
(was: 3.0.0)
> [kroviz] Demo / How to resolve Include via RO?
> ----------------------------------------------
>
> Key: CAUSEWAY-3428
> URL: https://issues.apache.org/jira/browse/CAUSEWAY-3428
> Project: Causeway
> Issue Type: New Feature
> Components: Viewer RO
> Affects Versions: 2.0.0-RC1
> Reporter: Jörg Rade
> Priority: Minor
> Fix For: 3.2.0
>
> Attachments: kroviz_demo_basic_types_strings_description.png,
> kroviz_demo_basic_types_strings_description_asciidoctor.png
>
>
> http://localhost:9090/restful/objects/demo.JavaLangStrings/PADw_eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz48RGVtby8-
> {code:json}
> {
> "links" : [ {
> "rel" : "self",
> "href" :
> "http://localhost:9090/restful/objects/demo.JavaLangStrings/PADw_eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz48RGVtby8-",
> "method" : "GET",
> "type" :
> "application/json;profile=\"urn:org.restfulobjects:repr-types/object\"",
> "title" : "java.lang.String data type"
> }, {
> "rel" : "describedby",
> "href" :
> "http://localhost:9090/restful/domain-types/demo.JavaLangStrings",
> "method" : "GET",
> "type" :
> "application/json;profile=\"urn:org.restfulobjects:repr-types/domain-type\""
> }, {
> "rel" : "urn:org.apache.causeway.restfulobjects:rels/object-layout",
> "href" :
> "http://localhost:9090/restful/objects/demo.JavaLangStrings/PADw_eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz48RGVtby8-/object-layout",
> "method" : "GET",
> "type" :
> "application/json;profile=\"urn:org.restfulobjects:repr-types/object-layout-bs\""
> }, {
> "rel" : "urn:org.apache.causeway.restfulobjects:rels/object-icon",
> "href" :
> "http://localhost:9090/restful/objects/demo.JavaLangStrings/PADw_eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz48RGVtby8-/object-icon",
> "method" : "GET",
> "type" : "image/*"
> }, {
> "rel" : "urn:org.restfulobjects:rels/update",
> "href" :
> "http://localhost:9090/restful/objects/demo.JavaLangStrings:PADw_eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz48RGVtby8-",
> "method" : "PUT",
> "type" :
> "application/json;profile=\"urn:org.restfulobjects:repr-types/object\"",
> "arguments" : { }
> } ],
> "extensions" : {
> "oid" :
> "demo.JavaLangStrings:PADw_eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz48RGVtby8-",
> "isService" : false,
> "isPersistent" : true
> },
> "title" : "java.lang.String data type",
> "domainType" : "demo.JavaLangStrings",
> "instanceId" :
> "PADw_eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz48RGVtby8-",
> "members" : {
> "description" : {
> "id" : "description",
> "memberType" : "property",
> "links" : [ {
> "rel" :
> "urn:org.restfulobjects:rels/details;property=\"description\"",
> "href" :
> "http://localhost:9090/restful/objects/demo.JavaLangStrings/PADw_eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz48RGVtby8-/properties/description",
> "method" : "GET",
> "type" :
> "application/json;profile=\"urn:org.restfulobjects:repr-types/object-property\""
> } ],
> "value" : ":Notice: Licensed to the Apache Software Foundation (ASF)
> under one or more contributor license agreements. See the NOTICE file
> distributed with this work for additional information regarding copyright
> ownership. The ASF licenses this file to you under the Apache License,
> Version 2.0 (the \"License\"); you may not use this file except in compliance
> with the License. You may obtain a copy of the License at.
> http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable
> law or agreed to in writing, software distributed under the License is
> distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> KIND, either express or implied. See the License for the specific language
> governing permissions and limitations under the License.\n\n// // This file
> was GENERATED by the showcase generator (tooling). Do NOT edit!\n\nThe
> framework has built-in support for the `java.lang.String` data type.\n\nFrom
> here you can:\n\n* navigate to an entity that uses the `java.lang.String`
> datatype\n* open a view model that uses the `java.lang.String`
> datatype\n\nSome properties on these domain objects are mandatory, some
> optional.\n\n== Common interfaces\n\nThe entity and view model types both
> implement some common interfaces.\n\n=== JavaLangStringHolder\n\nThe
> `JavaLangStringHolder` interface is used to contribute a number of mixins to
> both
> types:\n\n[source,java]\n----\ninclude::holder/JavaLangStringHolder.java[tags=class]\n----\n\n===
> JavaLangStringHolder2\n\nThe `JavaLangStringHolder2` interface is used to
> demonstrate support for label positions using
> `@PropertyLayout(labelPosition=...)`.\n\nFurther details, along with the
> effect of this annotation, can be seen on the entity and view model object
> pages.",
> "format" : "string",
> "extensions" : {
> "x-causeway-format" : "string"
> },
> "disabledReason" : "Contributed property"
> },
> "logicalTypeName" : {
> "id" : "logicalTypeName",
> "memberType" : "property",
> "links" : [ {
> "rel" :
> "urn:org.restfulobjects:rels/details;property=\"logicalTypeName\"",
> "href" :
> "http://localhost:9090/restful/objects/demo.JavaLangStrings/PADw_eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz48RGVtby8-/properties/logicalTypeName",
> "method" : "GET",
> "type" :
> "application/json;profile=\"urn:org.restfulobjects:repr-types/object-property\""
> } ],
> "value" : "demo.JavaLangStrings",
> "extensions" : {
> "x-causeway-format" : "string"
> },
> "disabledReason" : "Contributed property"
> },
> "sources" : {
> "id" : "sources",
> "memberType" : "property",
> "links" : [ {
> "rel" : "urn:org.restfulobjects:rels/details;property=\"sources\"",
> "href" :
> "http://localhost:9090/restful/objects/demo.JavaLangStrings/PADw_eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz48RGVtby8-/properties/sources",
> "method" : "GET",
> "type" :
> "application/json;profile=\"urn:org.restfulobjects:repr-types/object-property\""
> } ],
> "value" :
> "link:https://github.com/apache/causeway/tree/master/examples/demo/domain/src/main/java/demoapp/dom/types/javalang/strings[Sources]
> for this demo",
> "format" : "string",
> "extensions" : {
> "x-causeway-format" : "string"
> },
> "disabledReason" : "Contributed property"
> },
> "entities" : {
> "id" : "entities",
> "memberType" : "collection",
> "links" : [ {
> "rel" : "urn:org.restfulobjects:rels/details;collection=\"entities\"",
> "href" :
> "http://localhost:9090/restful/objects/demo.JavaLangStrings/PADw_eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz48RGVtby8-/collections/entities",
> "method" : "GET",
> "type" :
> "application/json;profile=\"urn:org.restfulobjects:repr-types/object-collection\""
> } ]
> },
> "openViewModel" : {
> "id" : "openViewModel",
> "memberType" : "action",
> "links" : [ {
> "rel" :
> "urn:org.restfulobjects:rels/details;action=\"openViewModel\"",
> "href" :
> "http://localhost:9090/restful/objects/demo.JavaLangStrings/PADw_eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz48RGVtby8-/actions/openViewModel",
> "method" : "GET",
> "type" :
> "application/json;profile=\"urn:org.restfulobjects:repr-types/object-action\""
> } ]
> },
> "recentAuditTrailEntries" : {
> "id" : "recentAuditTrailEntries",
> "memberType" : "action",
> "links" : [ {
> "rel" :
> "urn:org.restfulobjects:rels/details;action=\"recentAuditTrailEntries\"",
> "href" :
> "http://localhost:9090/restful/objects/demo.JavaLangStrings/PADw_eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz48RGVtby8-/actions/recentAuditTrailEntries",
> "method" : "GET",
> "type" :
> "application/json;profile=\"urn:org.restfulobjects:repr-types/object-action\""
> } ]
> },
> "recentCommands" : {
> "id" : "recentCommands",
> "memberType" : "action",
> "links" : [ {
> "rel" :
> "urn:org.restfulobjects:rels/details;action=\"recentCommands\"",
> "href" :
> "http://localhost:9090/restful/objects/demo.JavaLangStrings/PADw_eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz48RGVtby8-/actions/recentCommands",
> "method" : "GET",
> "type" :
> "application/json;profile=\"urn:org.restfulobjects:repr-types/object-action\""
> } ]
> },
> "recentExecutions" : {
> "id" : "recentExecutions",
> "memberType" : "action",
> "links" : [ {
> "rel" :
> "urn:org.restfulobjects:rels/details;action=\"recentExecutions\"",
> "href" :
> "http://localhost:9090/restful/objects/demo.JavaLangStrings/PADw_eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz48RGVtby8-/actions/recentExecutions",
> "method" : "GET",
> "type" :
> "application/json;profile=\"urn:org.restfulobjects:repr-types/object-action\""
> } ]
> },
> "inspectMetamodel" : {
> "id" : "inspectMetamodel",
> "memberType" : "action",
> "links" : [ {
> "rel" :
> "urn:org.restfulobjects:rels/details;action=\"inspectMetamodel\"",
> "href" :
> "http://localhost:9090/restful/objects/demo.JavaLangStrings/PADw_eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz48RGVtby8-/actions/inspectMetamodel",
> "method" : "GET",
> "type" :
> "application/json;profile=\"urn:org.restfulobjects:repr-types/object-action\""
> } ]
> },
> "openRestApi" : {
> "id" : "openRestApi",
> "memberType" : "action",
> "links" : [ {
> "rel" : "urn:org.restfulobjects:rels/details;action=\"openRestApi\"",
> "href" :
> "http://localhost:9090/restful/objects/demo.JavaLangStrings/PADw_eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz48RGVtby8-/actions/openRestApi",
> "method" : "GET",
> "type" :
> "application/json;profile=\"urn:org.restfulobjects:repr-types/object-action\""
> } ]
> },
> "downloadLayout" : {
> "id" : "downloadLayout",
> "memberType" : "action",
> "links" : [ {
> "rel" :
> "urn:org.restfulobjects:rels/details;action=\"downloadLayout\"",
> "href" :
> "http://localhost:9090/restful/objects/demo.JavaLangStrings/PADw_eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz48RGVtby8-/actions/downloadLayout",
> "method" : "GET",
> "type" :
> "application/json;profile=\"urn:org.restfulobjects:repr-types/object-action\""
> } ]
> },
> "rebuildMetamodel" : {
> "id" : "rebuildMetamodel",
> "memberType" : "action",
> "links" : [ {
> "rel" :
> "urn:org.restfulobjects:rels/details;action=\"rebuildMetamodel\"",
> "href" :
> "http://localhost:9090/restful/objects/demo.JavaLangStrings/PADw_eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz48RGVtby8-/actions/rebuildMetamodel",
> "method" : "GET",
> "type" :
> "application/json;profile=\"urn:org.restfulobjects:repr-types/object-action\""
> } ]
> },
> "downloadMetamodelXml" : {
> "id" : "downloadMetamodelXml",
> "memberType" : "action",
> "links" : [ {
> "rel" :
> "urn:org.restfulobjects:rels/details;action=\"downloadMetamodelXml\"",
> "href" :
> "http://localhost:9090/restful/objects/demo.JavaLangStrings/PADw_eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz48RGVtby8-/actions/downloadMetamodelXml",
> "method" : "GET",
> "type" :
> "application/json;profile=\"urn:org.restfulobjects:repr-types/object-action\""
> } ]
> }
> }
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)