Been playing around with SPA and the new WebAPI combined with Upshot.js. This all looks very promising!
But it seems like the Upshot.js bits do not conform to the RESTful communication standards, e.g. using RESTful urls and Restful HTTP commands and result codes.
Am I missing something here? Or is this not yet supported during beta?
For the DataController, I doubt there is any plan to make it fully RESTful the way you are asking. The DataController is not meant to compete with WCF Data Services as a fully RESTful way to interact with data.
The info published on http://www.asp.net/web-api/overview/web-api-routing-and-actions/creating-a-web-api-that-supports-crud-operations does suggest that the MVC Web API supports RESTful CRUD implementations.
Question is, will Upshot.js support these API implementations for SPA CRUD client operations?
Upshot.js with the correct DataProvider, yes. DataController, no.
I will unpack the question a little. If you have an existing RESTful CRUD implementation and you want to use Upshot to communicate with it that should be possible with the correct DataProvider. I think the current OData DataProvider is read only at the moment
but I would expect that to change either from the Microsoft side or the community side. If you write the correct DataProvider you can connect upshot to almost anything.
If you are creating a new application with a new service then the DataController with its Submit(Changeset changeset) is probably a better solution if you are planning to use validation, unit of work, or any other core features of SPA.
InterTed
Member
5 Points
4 Posts
Will Upshot.js support standards-based RESTfull communication with WebAPI?
Mar 09, 2012 06:29 AM|LINK
Been playing around with SPA and the new WebAPI combined with Upshot.js. This all looks very promising!
But it seems like the Upshot.js bits do not conform to the RESTful communication standards, e.g. using RESTful urls and Restful HTTP commands and result codes.
Am I missing something here? Or is this not yet supported during beta?
ColinBlair
Member
146 Points
36 Posts
Re: Will Upshot.js support standards-based RESTfull communication with WebAPI?
Mar 09, 2012 03:22 PM|LINK
For the DataController, I doubt there is any plan to make it fully RESTful the way you are asking. The DataController is not meant to compete with WCF Data Services as a fully RESTful way to interact with data.
Upshot Blog
ColinBlair on Twitter
MVVM and RIA Services
InterTed
Member
5 Points
4 Posts
Re: Will Upshot.js support standards-based RESTfull communication with WebAPI?
Mar 12, 2012 09:14 AM|LINK
Hi Colin,
The info published on http://www.asp.net/web-api/overview/web-api-routing-and-actions/creating-a-web-api-that-supports-crud-operations does suggest that the MVC Web API supports RESTful CRUD implementations.
Question is, will Upshot.js support these API implementations for SPA CRUD client operations?
Thanks
Ted
ColinBlair
Member
146 Points
36 Posts
Re: Will Upshot.js support standards-based RESTfull communication with WebAPI?
Mar 12, 2012 04:52 PM|LINK
Upshot.js with the correct DataProvider, yes. DataController, no.
I will unpack the question a little. If you have an existing RESTful CRUD implementation and you want to use Upshot to communicate with it that should be possible with the correct DataProvider. I think the current OData DataProvider is read only at the moment but I would expect that to change either from the Microsoft side or the community side. If you write the correct DataProvider you can connect upshot to almost anything.
If you are creating a new application with a new service then the DataController with its Submit(Changeset changeset) is probably a better solution if you are planning to use validation, unit of work, or any other core features of SPA.
Upshot Blog
ColinBlair on Twitter
MVVM and RIA Services
zhangbenrong
Member
30 Points
7 Posts
Re: Will Upshot.js support standards-based RESTfull communication with WebAPI?
Mar 15, 2012 06:15 AM|LINK
Hi Colin
will upshot.js suport WCF RIA Services ?