All in all, your first RESTful API in Python is about piecing together clear endpoints, matching them with the right HTTP ...
See how passage-level retrieval works and why answer-first, well-structured content is more likely to be surfaced and reused.