-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Vikas,
Vikas Banjara wrote: > Hi all, > > I want a discussion on ways of handling REST API Request. Rest request URL > will be like - > GET api/user/id.json or Get api/user/id.xml > Now all the requests are handled by one page say api/index.php. So how are > we going to redirect all such request to this index.php. > One solution could be Apache rewrite. > > Is it a good solution? Is it a standard solution? Any other better solution? I had studied a book [1] on RESTful Web Services with PHP last year. The authors used the following style of representing resources api/user.php/<id>/json Not sure if this is the standard way, but I think it's easier to start without rewrite rules (more people will join and test). Read more about it at my blog [2]. Comments? Christoph [1] http://www.packtpub.com/restful-php-web-services/book [2] http://baudson.cute-ice.de/serendipity/index.php?/archives/19-RESTful-Web-Service-with-PHP-1.html > > Thanks > Vikas > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Mapbender_dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapbender_dev -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkw5cZUACgkQGtMIfbycMX41oACgkY315VrU8pWggW8Ft/xiXosZ sLcAoNMnFgYenHuD6kp6T1vqOqVoLPea =yKaL -----END PGP SIGNATURE----- _______________________________________________ Mapbender_dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapbender_dev
