idintegerrequired
Delete a moon
delete
Path Parameters
Response
Response
Deleted
delete/moons/{id}
Authentication
Path Parameters
List all spaceships
get
Query Parameters
pageinteger
per_pageinteger
<= 100
Response
application/json
Response
application/json
Paginated list of spaceships
dataarray[object]
Show Child Parameters
linksobject
Show Child Parameters
metaobject
Show Child Parameters
get/spaceships
Authentication
Query Parameters
application/json
Create a spaceship
post
Body
application/json
Body
application/json
namestringrequired
typestringrequired
Allowed values:spacecraftprobestationrocket
operatorstring | null
launch_datestring | null(date)
statusstringrequired
Allowed values:activeretiredplannedlost
crew_capacityinteger | null
mass_kgnumber | null
descriptionstring | null
Response
application/json
Response
application/json
Spaceship created
dataobject
Show Child Parameters
post/spaceships
Authentication
Body
{
"name": "name",
"type": "spacecraft",
"status": "active"
}
application/json
Get a spaceship
get
Path Parameters
idintegerrequired
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
{}