swapi-provider

0.0.3 • Public • Published

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

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

  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

Readme

Keywords

Package Sidebar

Install

npm i swapi-provider

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

6.71 kB

Total Files

4

Last publish

Collaborators

  • envm92