PhDJ Posted August 23, 2012 Share Posted August 23, 2012 Can anyone guide me to a good tutorial or explanation on how to use REST webservices in combination with JSON. Both are new to me. Link to comment Share on other sites More sharing options...
birbal Posted August 23, 2012 Share Posted August 23, 2012 http://rest.elkstein.org/ Link to comment Share on other sites More sharing options...
PhDJ Posted August 24, 2012 Author Share Posted August 24, 2012 http://rest.elkstein.org/ Thanks for that Birbal ! Any suggestions on example code to get a REST service running ? Link to comment Share on other sites More sharing options...
birbal Posted August 24, 2012 Share Posted August 24, 2012 (edited) that links had all information you need to start use REST. it is process the URI of resource and manupulate data depending upon that, it works like same way as other http based application works. clients need to just open the URI and they can get and use the resource.php imlementetion http://rest.elkstein...est-in-php.htmlgeneral guides http://rest.elkstein...guidelines.html Edited August 24, 2012 by birbal Link to comment Share on other sites More sharing options...
PhDJ Posted August 24, 2012 Author Share Posted August 24, 2012 that links had all information you need to start use REST. it is process the URI of resource and manupulate data depending upon that, it works like same way as other http based application works. clients need to just open the URI and they can get and use the resource.php imlementetion http://rest.elkstein...est-in-php.htmlgeneral guides http://rest.elkstein...guidelines.html It has everything on how to use REST, not on how to build your own REST server. Link to comment Share on other sites More sharing options...
birbal Posted August 24, 2012 Share Posted August 24, 2012 you dont need build a different server for REST. REST will simply work same as web page.in this case apache will handle the requests. where as in web pages people outputs html markups you will generate and output JSON data which will be use by clients. which JSON data will be manipulated will be depending upon the Request URI which will cause it generate JSON data dynamically.What clients will do is just get the URI using fopen() or file_get_contents() or Curl library and use it. the example is showing in that site is showing how the client will get the URI. Link to comment Share on other sites More sharing options...
PhDJ Posted August 24, 2012 Author Share Posted August 24, 2012 It seems I was not the only one wondering about the server side of things : Dr. M. Elkstein said... Hello James, Indeed, I have written little about the server-side part of REST, seeing that it is no different than "regular" web serving (except that the output is to be consumed by machines, not people). I see now that more and more people ask for this extension, and I plan to write about it in the (hopefully near) future. December 6, 2009 9:08 PM Seems like he never got around to it ... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now