News for hackers. Stuff that matters.
Re:Show HN: SWAPI – A Star Wars API by kcbanner on Friday December 05, 2014 @09:43AM (#8704728)
Any reason why this is an API and not a data dump?
Re:Show HN: SWAPI – A Star Wars API by paulhallett on Friday December 05, 2014 @09:46AM (#8704741)
I guess the main reason is that data dumps are sometimes hard to sift through, can become inconsistent (if there are multiple copies) and because from my experience, if you provide an API for something, someone will use it. On the flip side: I've found that often people have always asked "why isn't there an API for that?"

And of course, you can easily get a data dump from this by just cURLing all the resources and storing them :)

Re:Show HN: SWAPI – A Star Wars API by antihero on Friday December 05, 2014 @09:55AM (#8704775)
You don't really want to have to download potentially gigabytes of data to find a few sets of results!
Re:Show HN: SWAPI – A Star Wars API by TD-Linux on Friday December 05, 2014 @07:31PM (#8707808)
"potentially gigabytes of data" is now a microSD card smaller than my thumbnail, or alternately the cheapest instance on AWS.
Re:Show HN: SWAPI – A Star Wars API by paulhallett on Friday December 05, 2014 @11:27AM (#8705278)
Local caching will be the way to go.

All resources will have a "date_updated" or similar attribute which you can check against.

Re:Show HN: SWAPI – A Star Wars API by slapresta on Friday December 05, 2014 @04:28PM (#8707033)
Ahh, if only HTTP had defined a standard header for checking if the requested content has been modified, and sending a specific status code if that's the case...