Search⌘ K
AI Features

Coding Challenge: Building REST API

Explore how to build a REST API server with Flask that uses ETag caching to reduce unnecessary data transfer. Learn to handle HTTP 304 Not Modified responses based on client ETag headers and update server data with PUT requests for efficient and scalable API design.

We'll cover the following...

Problem

You have implemented a flask-based REST API server that stores a variable serverData. The contents of this data do not change very frequently so you want to enable caching using ETag. The server code given below works fine without using caching and returns the ...