swapi-provider
v0.0.3
Published
SWAPI Web Component
Downloads
5
Readme
Project Name
SWAPI Provider Web Component
Installation
npm i swapi-providerUsage
<swapi-provider id="provider" resourse="vehicles" id-resourse="5"></swapi-provider><swapi-provider id="provider" resourse="vehicles" id-resourse="5"></swapi-provider>This is a web component that provide the api response in a web component format
Attributes
|Name |Type |Example| Note | |--- |--- |--- |--- | |resourse|String| films, people, planets, species, starships, vehicles | Only accepts this list | |id-resourse|Number | 1 , 2 | Don't use with schema| |schema | Boolean| | Don't use with id-resourse| |format-wookiee | Boolean| | | |search | String| "tat" with planets resourse to find Tatooine| |
Events
- swapi-response
- swapi-error
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
History
Hey! I love StarWars and I'm learning to code web components and share with the world!
Original documentation
Original documentation of Star Wars API by Paul Hallet
at https://swapi.co/documentation
Star Wars and all associated names are copyright Lucasfilm ltd.
Credits
- Erika Valdes
