-
Notifications
You must be signed in to change notification settings - Fork 0
Startships
Gio85 edited this page Feb 27, 2021
·
4 revisions
In order to fetch the data, the following methods can be used;
-
getSchema()
which will return the resource schema -
read()
which will return the single resource -
list()
which will return the resources list
Examples:
// Get the instance of the client
const client = ApiClient.getInstance()
const starships = await client.starships.list({ search: 'Wookie' })
const starships = await client.starships.list({ page: 3 })
const starshipsSchema = await client.starships.getSchema()
const singleStarship = await client.starships.read('2')
May the force be with you.. ✌️