idintegerrequired
Partially update a moon
patch
Path Parameters
Body
application/json
Body
application/json
Moon
idinteger
Example:1
namestring
Example:Luna
planet_idinteger | null
Example:3
mass_kgnumber | null(float)
Example:7.342e+22
radius_kmnumber | null(float)
Example:1737.4
orbital_period_daysnumber | null(float)
Example:27.32
discovered_atstring | null(date)
Example:null
created_atstring(date-time)
updated_atstring(date-time)
Response
Response
Updated
patch/moons/{id}
Authentication
Path Parameters
Body
{}
Delete a moon
delete
Path Parameters
idintegerrequired
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