Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Flask Blueprints

You're reading from   Flask Blueprints Dive into the world of the Flask microframework to develop an array of web applications

Arrow left icon
Product type Paperback
Published in Nov 2015
Publisher
ISBN-13 9781784394783
Length 198 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Joel Perras Joel Perras
Author Profile Icon Joel Perras
Joel Perras
Arrow right icon
View More author details
Toc

Chapter 5. Shutterbug, the Photo Stream API

In this chapter, we will build a (primarily) JSON-based API that allows us to view a reverse chronologically ordered list of photos that have been added—this has become quite popular in recent years due to Instagram and similar photo sharing applications. For the sake of simplicity, we will forgo the usual social aspect that many of these applications are typically built around; however, you are encouraged to combine the knowledge of the previous chapters with the information in this chapter to build such an application.

Shutterbug, the minimal API-only application that we are about to embark on, will allow a user to upload a photograph of their choosing via an authenticated, JSON-based API.

Additionally, we will use one of the lesser-known features of Flask (Werkzeug, really) to create a custom middleware that will allow us to intercept inbound requests and modify the global application environment for very simple API versioning...

lock icon The rest of the chapter is locked
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 $19.99/month. Cancel anytime
Banner background image