Skip to Content
Building REST APIs with Flask: Create Python Web Services with MySQL
book

Building REST APIs with Flask: Create Python Web Services with MySQL

by Kunal Relan
September 2019
Intermediate to advanced
209 pages
3h 20m
English
Apress
Content preview from Building REST APIs with Flask: Create Python Web Services with MySQL
© Kunal Relan 2019
K. RelanBuilding REST APIs with Flaskhttps://doi.org/10.1007/978-1-4842-5022-8_3

3. CRUD Application with Flask (Part 1)

Kunal Relan1 
(1)
New Delhi, Delhi, India
 
In the last chapter, we discussed about databases and implemented NoSQL- and SQL-based examples. In this chapter we’ll be creating a RESTful Flask application from scratch. Here we’ll maintain a database of Author objects alongside the books they have written. This application will have a user authentication mechanism to only allow logged-in users to execute certain functions. We’ll now create the following API endpoints for our REST applications:
  1. 1.

    GET /authors: This gets list of authors alongside their books.

     
  2. 2.

    GET /authors/<id>: This gets author with the specified ID ...

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

Advanced REST APIs with Flask and Python

Advanced REST APIs with Flask and Python

Jose Salvatierra Fuentes

Publisher Resources

ISBN: 9781484250228Purchase LinkPublisher Website