The goal is to build a Dojo's JsonRestStore-compatible back-end implementation on top of N2 web framework.

What's available nowAs of yet, the foundation of a universal web data service is available. The service is capable of returning a JSON representation of a requested page either by appending a $format=json to a query string OR by specifying an Accept: application/json request header. (This mimics the behavior of ADO.Net Data Services1)

So, for example, if a default N2 Templates project is running at http://demo.n2cms.com/, then, after following installation instructions bellow, if we append aforementioned $format=json to any valid URI, we'll get a response that will look something like this:

{
/* .. most properties omitted */
"IconUrl": "~/Templates/UI/Img/page_world.png",
"ShowTitle": false,
"ID": 2,
"Parent":
{ "__deferred":
{ "uri": "/Templates/Secured/Root.aspx?page=1"
}
},
"Title": "Home",
"Name": "home",
"Published": "\/Date(1210809600000+0300)\/",
"Children":
[ { "__deferred":
{ "uri":"/?item=3"
}
},
/* .. more children omitted */
{ "__deferred":
{ "uri":"/sv.aspx"
}
}
],
"Extension": ".aspx",
"IsPage": true,
"Url": "/",
"Path": "/home/"
}Installation instructionsadd a reference to N2.WebDataService.dll assembly from your N2-powered web application apply [assembly: Controls(typeof(ContentItem), ControllerType = typeof(AjaxServiceController))] attribute (it might be conveniently done in the AssemblyInfo.cs file) register HTTP handler in the web.config file: 1 Please see: Can Astoria return data in JSON format?

Journal Entries

No entries yet. Link your entries with 'n2ims' to include this project.


Ratings & Reviews

Community Rating
0.0/5.0

Based on 0 user ratings.

Your Rating

Click to rate this project.

Links

0 links submitted so far. Submit your own links.


Who uses n2ims?


Who contributes to n2ims?

Anon32 Anon32

Who manages n2ims?

I'm a manager

Where in the world?



Related Projects by Tags

django-simp, js-persevere, KiokuDB, osgip, Restlet


Project Cost

This calculator estimates how much it would cost to hire a team to write this project from scratch. More »
Include
Codebase 555
Effort (est.) 0 Person Years
Avg. Salary $ year
$ 5,924