O'Reilly logo

Web Technology: Theory and Practice by M. Srinivasan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

9.10 REST BASED WEB SERVICES—AN EXAMPLE

The example being considered is about an example implementation of a Question Bank service. The QB is a single source of questions meant for exams. There is a facility to call the service for getting the questions. For the demo, it is also good to have a facility where only a part of the questions are to be delivered, and accordingly, the questions are organized based on chapters. For instance, if questions are required from Chapter 1, they can be sent across in a URL and the questions will be delivered accordingly.

To keep the demo implementation simple, let us have the questions hard-coded into memory rather than the ideal case of serving it from a database. There are two parts to the demo—one the service ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required