DEV Community

Discussion on: Public Service Announcement: The Star Wars API (swapi.co) Is Down!

Collapse
 
ardc_overflow profile image
Rodolpho Alves • Edited

Hey, just to add my two cents:

While studying Deno and some of its REST Frameworks I've actually created a "port" of the SWApi.

It's not the same thing (mostly because I find the way they envelope data not hepful for the amount of data being transmited) but it still might be helpful for quickly getting a hang of doing http calls with any programming language.

The source code is available on this GitHub repo and it's currently published on swapi-deno.azurewebsites.net/

GitHub logo rodolphocastro / deno-swapi

A StarWars API written with Deno and powered by Oak and Svelte!

🚀 SWApi Deno

A RESTful API containing Star Wars data!

🏆 Acknowledgements

Thanks to @phalt for his work on the original Swapi and to @juriy for his work on the current Swapi.dev.

💻 Endpoints

Currently we support the following endpoints.

🎥 Films / Movies

  • All (GET api/films)
  • Single (GET api/films/{id})

🧬 Species

  • All (GET api/species/)
  • Single (GET api/species/{id})

🚗 Vehicles

  • All (GET api/vehicles/)
  • Single (GET api/vehicles/{id})

🚀 Starships

  • All (GET api/starships/)
  • Single (GET api/starships/{id})

🌍 Planets

  • All (GET api/planets/)
  • Single (GET api/planets/{id})

🤼 People

  • All (GET api/people/)
  • Single (GET api/people/{id})

🌌 Portal

Currently we have a portal that presents some information about the API.

This portal is powered by Svelte and its code can be found on the /portal subdirectory!

Running

Using in

There's also a post published here about my motivation behind rewriting it and how it's currently deploy, however I wrote that post in Portuguese 😅