idintegerrequired
Get a spaceship
get
Path Parameters
Response
application/json
Response
application/json
Spaceship details
dataobject
Show Child Parameters
get/spaceships/{id}
Authentication
Path Parameters
application/json
Replace a spaceship
put
Path Parameters
idintegerrequired
Body
application/json
Body
application/json
Spaceship
idinteger
Example:1
namestring
Example:ISS
typestring
Allowed values:spacecraftprobestationrocket
Example:station
operatorstring | null
Example:NASA / Roscosmos
launch_datestring | null(date)
Example:1998-11-20
statusstring
Allowed values:activeretiredplannedlost
Example:active
crew_capacityinteger | null
Example:7
mass_kgnumber | null(float)
Example:419725
descriptionstring | null
Example:International Space Station
created_atstring(date-time)
updated_atstring(date-time)
Response
Response
Updated
put/spaceships/{id}
Authentication
Path Parameters
Body
{}
Partially update a spaceship
patch
Path Parameters
idintegerrequired
Body
application/json
Body
application/json
Spaceship
idinteger
Example:1
namestring
Example:ISS
typestring
Allowed values:spacecraftprobestationrocket
Example:station
operatorstring | null
Example:NASA / Roscosmos
launch_datestring | null(date)
Example:1998-11-20
statusstring
Allowed values:activeretiredplannedlost
Example:active
crew_capacityinteger | null
Example:7
mass_kgnumber | null(float)
Example:419725
descriptionstring | null
Example:International Space Station
created_atstring(date-time)
updated_atstring(date-time)
Response
Response
Updated
patch/spaceships/{id}
Authentication
Path Parameters
Body
{}
Delete a spaceship
delete
Path Parameters
idintegerrequired
Response
Response
Deleted
delete/spaceships/{id}
Authentication
Path Parameters
Star
objectidinteger
Example:1
namestring
Example:Sol
typestring
Allowed values:main_sequencered_giantwhite_dwarfneutronsupergiant
Example:main_sequence
mass_solarnumber(float)
Example:1
luminosity_solarnumber(float)
Example:1
temperature_kinteger
Example:5778
distance_lynumber(float)
constellationstring
discovered_atstring(date)
planet_countinteger
Example:9
created_atstring(date-time)
updated_atstring(date-time)
Example