Skip to content

envm92/swapi-provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

SWAPI Provider Web Component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published