Manipulating Documents RESTfully
In the first half of this chapter, you developed APIs for discovering and returning books based on a variety of search criteria. In this second half, youâll be creating APIs for manipulating book bundles. Recall that a book bundle has a name and maintains a collection of related books.
Hereâs an example of a book bundle:
â | { |
â | â"name"â: â"light reading"â, |
â | â"books"â: [{ |
â | â"id"â: â"pg132"â, |
â | â"title"â: â"The Art of War"â |
â | },{ |
â | â"id"â: â"pg2680"â, |
â | â"title"â: â"Meditations"â, |
â | },{ |
â | â"id"â: â"pg6456"â, |
â | â"title"â: â"Public Opinion"â |
â | }] |
â | } |
Creating these APIs will be programmatically more intensive than ...
Get Node.js 8 the Right Way 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.