Films - Gio85/swapi-ts-sdk GitHub Wiki
In order to fetch the data, the following methods can be used;
getSchema()
which will return the resource schemaread()
which will return the single resourcelist()
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')