You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Dan Haywood (JIRA)" <ji...@apache.org> on 2013/10/25 11:46:32 UTC
[jira] [Updated] (ISIS-479) Properties not getting updated as per
14.2 in RO Spec
[ https://issues.apache.org/jira/browse/ISIS-479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Haywood updated ISIS-479:
-----------------------------
Fix Version/s: viewer-restfulobjects-2.1.0
> Properties not getting updated as per 14.2 in RO Spec
> -----------------------------------------------------
>
> Key: ISIS-479
> URL: https://issues.apache.org/jira/browse/ISIS-479
> Project: Isis
> Issue Type: Bug
> Components: Viewer: RestfulObjects
> Affects Versions: viewer-restfulobjects-2.0.0
> Reporter: Bhargav Golla
> Assignee: Dan Haywood
> Fix For: viewer-restfulobjects-2.1.0
>
>
> As per 14.2 in RO Spec, making a PUT request to /objects/{domainType}/{instanceId}, should update the properties values. I tried several different formats for the body [1], [2], [3], but got the same error in each case [4].
> [1] this - which is valid according to the spec, I think - didn't work:
> {
> "cost" : {
> "value" : 2.75
> },
> "description" : {
> "value" : "An updated description"
> },
> "category" : {
> "value" : "Professional"
> }
> }
> [2] nor did this:
> {
> "members:" {
> "cost" : {
> "memberType": "property",
> "value" : 2.75
> },
> "description" : {
> "memberType": "property",
> "value" : "An updated description"
> },
> "category" : {
> "memberType": "property",
> "value" : "Professional"
> }
> }
> }
> [3] nor did this:
> {
> "cost" : {
> "memberType": "property",
> "value" : 2.75
> },
> "description" : {
> "memberType": "property",
> "value" : "An updated description"
> },
> "category" : {
> "memberType": "property",
> "value" : "Professional"
> }
> }
> [4]Status Code: 400
> Server: Jetty(6.1.26)
> Content-Length: 0
> Warning: 199 RestfulObjects Could not find properties list (no members[memberType=property]); got {"cost":{"memberType":"property","value":2.75},"description":{"memberType":"property","value":"An updated description"},"category":{"memberType":"property","value":"Professional"}}
> Content-Type: application/json
--
This message was sent by Atlassian JIRA
(v6.1#6144)