API endpoint that allows Spacecrafts to be viewed. A Spacecraft is a physically manufactured instance of a Spacecraft Configuration

GET: Return a list of all the existing spacecraft.

FILTERS: Parameters - 'name', 'status', 'spacecraft_config', 'is_placeholder', 'in_space' Example - /2.2.0/spacecraft/?in_space=true

SEARCH EXAMPLE: Example - /2.2.0/spacecraft/?search=Dragon

ORDERING: Fields - 'id', 'time_in_space', 'time_docked', 'flights_count', 'mission_ends_count' Example - /2.2.0/spacecraft/?ordering=id

GET /2.2.0/spacecraft/?format=api&offset=590&ordering=-flights_count
HTTP 200 OK
Allow: GET
Content-Type: application/json
Vary: Accept

{
    "count": 591,
    "next": null,
    "previous": "https://ll.thespacedevs.com/2.2.0/spacecraft/?format=api&limit=10&offset=580&ordering=-flights_count",
    "results": [
        {
            "id": 569,
            "url": "https://ll.thespacedevs.com/2.2.0/spacecraft/569/?format=api",
            "name": "Cargo Dragon",
            "serial_number": "TBD",
            "is_placeholder": true,
            "in_space": false,
            "time_in_space": "P0D",
            "time_docked": "P0D",
            "flights_count": 0,
            "mission_ends_count": 0,
            "status": {
                "id": 1,
                "name": "Active"
            },
            "description": "The specific spacecraft for this launch is currently unknown.",
            "spacecraft_config": {
                "id": 7,
                "url": "https://ll.thespacedevs.com/2.2.0/config/spacecraft/7/?format=api",
                "name": "Cargo Dragon 2",
                "type": {
                    "id": 2,
                    "name": "Capsule"
                },
                "agency": {
                    "id": 121,
                    "url": "https://ll.thespacedevs.com/2.2.0/agencies/121/?format=api",
                    "name": "SpaceX",
                    "type": "Commercial"
                },
                "in_use": true,
                "image_url": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/images/crs-28_dragon_d_image_20230530191602.jpeg"
            }
        }
    ]
}