Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Flask API

When building an API the server will need to return some machine-readable data. These days the most common format of that data is JSON, though there are web applications that return XML and probably other formats as well.

This API can be consumed by some external application or by the JavaScript front-end.

  • jsonify