ptahproject/ptah — Issue #81: ptah101 link/REST
Author: runyaga
Created: 2011-11-08 06:24:10+00:00
State: open

ptah101demonstration of 2 bugs w/ JSON repr of Link (cms.Node)

arunyan@delle4300 ~
$ curl http://localhost:6543/__rest__/cms/content/cms-link:d930e92e0bb445189814
f64cab63fe4b
{
"__type__": "cms-type:testrest-app",
"__content__": true,
"__uri__": "cms-testrest-app:4bc0f139b0c54a729f09a217f4ca78d2",
"__parents__": [],
"__name__": "testrest",
"__container__": true,
"title": "testrest Application",
"description": "",
"view": "",
"created": "2011-11-08T05:27:09.583000",
"modified": "2011-11-08T05:27:09.583000",
"effective": null,
"expires": null,
"__link__": "http://localhost:6543/__rest__/cms/content/cms-testrest-app:4bc0f1
39b0c54a729f09a217f4ca78d2/",
"__contents__": []
}

arunyan@delle4300 ~
$ curl http://localhost:6543/__rest__/cms/content:/cms-link:d930e92e0bb44518981
4f64cab63fe4b
{
"message": "cms-link:d930e92e0bb445189814f64cab63fe4b"
}