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. Flask-RESTful uses which of the following as the main building block for a RESTful API?
    1. Resources built on top of Flask pluggable views
    2. Statuses built on top of Flask resource views.
    3. Resources built on top of Flask pluggable controllers.

  2. In order to be able to process an HTTP POST request on a resource, we must declare a method with the following name in a subclass of flask_restful.Resource.
    1. post_restful
    2. post_method
    3. post

  3. In order to be able to process an HTTP GET request on a resource, we must declare a method with the following name in a subclass of flask_restful.Resource.
    1. get_restful
    2. get_method
    3. get

  4. A subclass of flask_restful.Resource represents:
    1. A controller resource.
    2. A RESTful resource.
    3.  A single RESTful HTTP verb.

  5. If we use the
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