News for hackers. Stuff that matters.
Re:Show HN: SWAPI – A Star Wars API by anonfunction on Friday December 05, 2014 @10:46AM (#8705050)
I think it would be nice to also provide an endpoint that lists all the resources as an array of objects where the key is the id and the value is the name. Maybe something like this:

  GET /resources/ships
  [
    { 1 : "Tantive IV" },
  ]
Re:Show HN: SWAPI – A Star Wars API by paulhallett on Friday December 05, 2014 @10:51AM (#8705072)
So RESTfully, I think this is normal. You should be able to call a resource and then be fed back all of those resources (usually paginated to say, 20 per request).

It will have this style of lookup.