© Paul Redmond 2016

Paul Redmond, Lumen Programming Guide, 10.1007/978-1-4842-2187-7_11

11. Book Bundles

Paul Redmond

(1)Phoenix, Arizona, USA

In this chapter, you will be building a simple book bundle implementation. A book bundle is basically a collection of books bundled together under a common theme. For example, a “Database Primer” book bundle might include books about database design, database theory, and database administration.

The outline for the API endpoints you will cover this chapter will be as shown in Listing 11-1.

Listing 11-1. Basic REST /Bundles Endpoints
GET    /bundles/{id} Get individual bundle detailsPUT    /bundles/{id}/books/{bookId} Add a Book to a BundleDELETE /bundles/{id}/books/{bookId} Remove a Book from a Bundle

Your book ...

Get Lumen Programming Guide: Writing PHP Microservices, REST and Web Service APIs now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.