SWAPI Provider Web Component
npm i swapi-provider
<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
| 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 |
- swapi-response
- swapi-error
- 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
Hey! I love StarWars and I'm learning to code web components and share with the world!
Original documentation of Star Wars API by Paul Hallet
at https://swapi.co/documentation
Star Wars and all associated names are copyright Lucasfilm ltd.
- Erika Valdes