The Git tag for this section is search-table. It contains new code that wasn't covered in the previous chapter, including a new CustomerSearch component. You should either move to this tag now or merge the changes into your own branch.
For more detailed instructions, see the To get the most out of this book section in the Preface.
For more detailed instructions, see the To get the most out of this book section in the Preface.
Our server responds to GET requests to the /customers endpoint. There are a whole bunch of parameters, such as after and searchTerm, which can be passed to it and determine the customer records it should return. We'll cover these parameters later on in the chapter. The response is an array of customers:
[{ id: 123, firstName: 'Ashley'}, ... ]
At its most basic level, sending a request to /customers with no parameters will return the first 10 of our customers, in alphabetical order...