0.0.3 • Published 3 years ago

swapi-provider v0.0.3

Weekly downloads
9
License
MIT
Repository
github
Last release
3 years ago

Published on webcomponents.org

Project Name

SWAPI Provider Web Component

Installation

    npm i swapi-provider

Usage

   <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

NameTypeExampleNote
resourseStringfilms, people, planets, species, starships, vehiclesOnly accepts this list
id-resourseNumber1 , 2Don't use with schema
schemaBooleanDon't use with id-resourse
format-wookieeBoolean
searchString"tat" with planets resourse to find Tatooine

Events

  • swapi-response
  • swapi-error

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. 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

License

MIT Licensed

License: MIT