Open akselbork opened 2 months ago
Hi there, thanks for letting us know about this.
It looks like the new API has slightly different result encapsulation with pagination which will require modification of the example code.
We'll update the examples here and in the manuscript so that we can push an update to LeanPub.
Have tried to rewrite it, so it could be used for the other site, but having some issues
so thank you for responding and keep up the good work. Find the book very useful and informative even after doing PS since Verizon 1.0
I might just mention that i used swapi.dev as inspiration for my own demo site. The API is not similar but not exactly the same.
I'm starting to wonder, since we're only requesting buckets of data and not utilising queries etc., if it might be better we just host it statically on GitHub? That way we could tweak the data to match the existing code (i.e. restore the id
member for all objects and use IDs for data linking instead of URLs) and it'd have the same reliability parameters as the Extras repo. Thoughts?
@mattcorr @akselbork I'm trialling a static API using GitHub pages that will need minimal changes to the example code and doesn't need domain, SSL certificate maintenance etc.
https://thefreeman193.github.io/mita-swapi
Required changes for this approach are at #14.
Can you folks take a look at, test, and try to break it? Cheers. 😁
For interested parties, we are currently looking at whether we can restore the API at its original location so as not to confuse readers of the hard copies.
The Uri for the Starwars data has changed. so the link used in all examples does not exists anymore
The new API is located here
https://swapi.dev/