1 min readJun 4, 2019
The purpose of this tutorial is to show how to mock the API’s so that the development is faster without any dependency on backend services. As far as your question is concerned, “YES” it is possible to traverse and retrieve a particular object. Basically, your app will be doing an ajax call to the API. You’ll have to store the response in an object and traverse through to find that particular object. In this case, we are using swapi’s REST API which alows us to do https://swapi.co/api/people/1/ which will give you exactly what you want without any processing on the frontend.