Recently I’ve been putting together a Web application for a research project. I decided it was about time I really looked properly into REST so my Web interfaces are better structured. I won’t go into all the benefits here, you can read for yourself. Suffice to say it seems like a good approach to take.
This is quite a long article and you might only be interested in some of it so here are the sections:
- Getting access to request data
- Returning appropriate responses
- Handling different data formats
- Passing all requests to a single PHP script
- Determining the full requested URL
- A generic REST Service class
If you have an suggestions for improvement, please let me know – this was a first attempt!
(more…)