API endpoint that allows Location instances to be viewed.

GET: Return a list of all the existing location instances.

FILTERS: Parameters - 'name', 'country_code', 'id' Example - /2.0.0/location/?country_code=USA

GET /2.0.0/location/?format=api&offset=50
HTTP 200 OK
Allow: GET
Content-Type: application/json
Vary: Accept

{
  "count": 52,
  "next": null,
  "previous": "https://lldev.thespacedevs.com/2.0.0/location/?format=api&limit=10&offset=40",
  "results": [
    {
      "id": 164,
      "url": "https://lldev.thespacedevs.com/2.0.0/location/164/?format=api",
      "name": "Koonibba Test Range, South Australia",
      "country_code": "AUS",
      "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/location_koonibba_test_range252c_south_australia_20231114184328.jpg",
      "total_launch_count": 1,
      "total_landing_count": 0
    },
    {
      "id": 178,
      "url": "https://lldev.thespacedevs.com/2.0.0/location/178/?format=api",
      "name": "Esrange Space Center",
      "country_code": "SWE",
      "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/location_esrange_space_center_20241208021356.jpg",
      "total_launch_count": 0,
      "total_landing_count": 0
    }
  ]
}