-
Notifications
You must be signed in to change notification settings - Fork 0
Films
Gio85 edited this page Feb 27, 2021
·
6 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 films = await client.films.list({ search: 'Return of the Jedi', page: 1 })
const filmSchema = await client.films.getSchema()
const film = await client.films.read('1')
May the force be with you.. ✌️