Skip to content

Commit

Permalink
GET registry_: Directly return the actual value instead
Browse files Browse the repository at this point in the history
of wrapping it in a dict.
  • Loading branch information
lukasgraf committed May 15, 2016
1 parent 13d2c9d commit 6fa1014
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions docs/source/_json/registry_get.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ Accept: application/json
HTTP 200 OK
content-type: application/json

{
"key": "value"
}
"value"
2 changes: 1 addition & 1 deletion src/plone/restapi/services/registry/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ def publishTraverse(self, request, name):
return self

def render(self):
return {'key': 'value'}
return 'value'

0 comments on commit 6fa1014

Please sign in to comment.