Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Building RESTful Python Web Services

You're reading from  Building RESTful Python Web Services

Product type Book
Published in Oct 2016
Publisher Packt
ISBN-13 9781786462251
Pages 418 pages
Edition 1st Edition
Languages
Author (1):
Gaston C. Hillar Gaston C. Hillar
Profile icon Gaston C. Hillar

Table of Contents (18) Chapters

Building RESTful Python Web Services
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface
1. Developing RESTful APIs with Django 2. Working with Class-Based Views and Hyperlinked APIs in Django 3. Improving and Adding Authentication to an API With Django 4. Throttling, Filtering, Testing, and Deploying an API with Django 5. Developing RESTful APIs with Flask 6. Working with Models, SQLAlchemy, and Hyperlinked APIs in Flask 7. Improving and Adding Authentication to an API with Flask 8. Testing and Deploying an API with Flask 9. Developing RESTful APIs with Tornado 10. Working with Asynchronous Code, Testing, and Deploying an API with Tornado 11. Exercise Answers

Test your knowledge


  1. If we want to create a simple Player model that we will use to represent and persist players in Django REST framework, we can create:

    1.  A Player class as a subclass of the djangorestframework.models.Model class.

    2.  A Player class as a subclass of the django.db.models.Model class.

    3.  A Player function in the restframeworkmodels.py file.

  2. In the Django REST Framework, serializers are:

    1. Mediators between the model instances and Python primitives.

    2. Mediators between the view functions and Python primitives.

    3. Mediators between the URLs and view functions.

  3. In the Django REST Framework, parsers and renderers:

    1. Handle as mediators between model instances and Python primitives.

    2. Reset the board.

    3. Handle as mediators between Python primitives and HTTP requests and responses.

  4. The urlpatterns list declared in the urls.py file makes it possible to:

    1.  Route URLs to views.

    2.  Route URLs to models.

    3.  Route URLs to Python primitives.

  5. HTTPie is a:

    1. Command-line HTTP server written in Python that makes it easy to create a RESTful Web Server.

    2. Command-line utility that allows us to run queries against an SQLite database.

    3. Command-line HTTP client written in Python that makes it easy to compose and send HTTP requests.

You have been reading a chapter from
Building RESTful Python Web Services
Published in: Oct 2016 Publisher: Packt ISBN-13: 9781786462251
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}