Skip to content

Conversation

@TheFreeman193
Copy link
Collaborator

The existing Star Wars API (https://mc-starwars-data.azurewebsites.net) is no longer online and examples from The AAA Approach don't function.

This migrates the example code to a similar demo API (https://swapi.info) hosted on CloudFlare Pages by GitHub user @SivaramPg.

Advantages:

  • Very similar dataset to the old API (only 1 change needed in assertions)
  • Static backend and thus very quick
  • No pagination or result wrapping unlike some other SWAPI demos
  • Online and actively maintained

Disadvantages:

  • No ID members in result objects, only upstream URL - necessitates Get-SWIdFromUrl to maintain existing code factor/chapter flow

Not to be merged until manuscript changes are published on LeanPub.

Fixes #11

@TheFreeman193 TheFreeman193 marked this pull request as draft May 29, 2024 22:31
@TheFreeman193 TheFreeman193 changed the title Star Wars API Demo - Migrate to new API Star Wars API Demo - Migrate to swapi.info API May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

STARWARS API has changed

2 participants