Skip to Content
Building RESTful Python Web Services
book

Building RESTful Python Web Services

by Gastón C. Hillar
October 2016
Intermediate to advanced
418 pages
9h 52m
English
Packt Publishing
Content preview from Building RESTful Python Web Services

Test your knowledge

  1. The main building blocks for a RESTful API in Tornado are subclasses of which the following classes:
    1. tornado.web.GenericHandler
    2. tornado.web.RequestHandler
    3. tornado.web.IncomingHTTPRequestHandler

  2. If we just want to support the GET and PATCH methods, we can override the SUPPORTED_METHODS class variable with which of the following values:
    1. ("GET", "PATCH")
    2.  {0: "GET", 1: "PATCH"}
    3. {"GET": True, "PATCH": True, "POST": False, "PUT": False}

  3. The list of tuples for a the tornado.Web.Application constructor is composed of:
    1. A regular expression (regexp) and a tornado.web.RequestHandler subclass (request_class).
    2. A regular expression (regexp) and a tornado.web.GenericHandler subclass (request_class).
    3. A regular expression (regexp) and a tornado.web.IncomingHTTPRequestHandler ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On RESTful Python Web Services - Second Edition

Hands-On RESTful Python Web Services - Second Edition

Gastón C. Hillar

Publisher Resources

ISBN: 9781786462251Supplemental Content