Menu
Docs
Feedback
Login
You are viewing a section of Superface that will be
deprecated in Q4 2023
. Until then, you can continue to use it as you have before but we recommend that you migrate to our latest version soon. For more details visit
superface.ai/docs/migrate
.
Star Wars Character Information
starwars/character-information@1.0.4
1 provider
Retrieve Character Info
RetrieveCharacterInformation
Retrieve information about a Star Wars character.
Input
Character name
Result
Height
Weight
Year of birth
Integrate
1.
Choose a provider
Mock implementation
swapi
Request a missing provider
2.
Use
RetrieveCharacterInformation
with
mock
in your code
Below instructions are for our Node.js SDK.
Use OneService for other languages.
npm
i
@superfaceai/one-sdk
Copy
Copied!
Copy
Copied!
Structure details
Input (object)
characterName
optional
The character name to use when looking up character information
string
Example
Copy
Copied!
Result (object)
height
optional
The height of the character
string
weight
optional
The weight of the character
string
yearOfBirth
optional
The year of birth of the character
string
Example
Copy
Copied!
Implementation details
Provider
mock
Use case
RetrieveCharacterInformation
Author
@superface
Source
View source
Verified