O'Reilly logo

Lumen Programming Guide: Writing PHP Microservices, REST and Web Service APIs by Paul Redmond

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required