Chapter 2
Web Services
Section 5
Parsing the URL Path
The path to a resource can be quite complex. It's common in RESTful web services to use the path information to identify groups of resources, individual resources, and even relationships among resources. How can we handle complex path parsing? Let’s answer this question. - Import HTTPStatus and the additional modules - Define a global state, a route, and a view function - Define a main program that runs the server