A user asked on answer how to get the isVersion field in the Document JSON response, but this is not possible with current implementation as we don't deserialize it on the Document class.
On nightly we get:
// 20200529155035 // https://nightly.nuxeo.com/nuxeo/api/v1/path/default-domain/workspaces/Sample%20Content/Pictures/Winter.jpg { "entity-type": "document", "repository": "default", "uid": "44eb5cfc-4993-494a-9abc-49b926dfb950", "path": "/default-domain/workspaces/Sample Content/Pictures/Winter.jpg", "type": "Picture", "state": "project", "parentRef": "b7ffc1a1-5439-4050-9562-bcaa4db0624f", "isCheckedOut": false, "isRecord": false, "retainUntil": null, "hasLegalHold": false, "isUnderRetentionOrLegalHold": false, "isVersion": false, "isProxy": false, "changeToken": "5-0", "isTrashed": false, "title": "Winter.jpg", "lastModified": "2020-05-29T04:31:37.290Z", "facets": [ "Versionable", "NXTag", "Publishable", "Picture", "Commentable", "HasRelatedText", "Thumbnail" ], "schemas": [ { "name": "uid", "prefix": "uid" }, { "name": "image_metadata", "prefix": "imd" }, { "name": "thumbnail", "prefix": "thumb" }, { "name": "file", "prefix": "file" }, { "name": "common", "prefix": "common" }, { "name": "dublincore", "prefix": "dc" }, { "name": "relatedtext", "prefix": "relatedtext" }, { "name": "picture", "prefix": "picture" }, { "name": "facetedTag", "prefix": "nxtag" } ] }
We want to add all missing fields to the Document class.
Another example on a version:
// 20200529155350 // https://nightly.nuxeo.com/nuxeo/api/v1/id/c83afd03-6339-4d69-bbe7-5f87518515b5 { "entity-type": "document", "repository": "default", "uid": "c83afd03-6339-4d69-bbe7-5f87518515b5", "path": "/default-domain/workspaces/Sample Content/Pictures/Winter.jpg", "type": "Picture", "state": "project", "parentRef": "b7ffc1a1-5439-4050-9562-bcaa4db0624f", "isCheckedOut": false, "isRecord": false, "retainUntil": null, "hasLegalHold": false, "isUnderRetentionOrLegalHold": false, "isVersion": true, "isProxy": false, "versionableId": "44eb5cfc-4993-494a-9abc-49b926dfb950", "changeToken": "7-0", "isTrashed": false, "title": "Winter.jpg", "lastModified": "2020-05-29T04:31:37.290Z", "facets": [ "Immutable", "Versionable", "NXTag", "Publishable", "Picture", "Commentable", "HasRelatedText", "Thumbnail" ], "schemas": [ { "name": "uid", "prefix": "uid" }, { "name": "image_metadata", "prefix": "imd" }, { "name": "thumbnail", "prefix": "thumb" }, { "name": "file", "prefix": "file" }, { "name": "common", "prefix": "common" }, { "name": "dublincore", "prefix": "dc" }, { "name": "relatedtext", "prefix": "relatedtext" }, { "name": "picture", "prefix": "picture" }, { "name": "facetedTag", "prefix": "nxtag" } ] }
- Is referenced in