idintegerrequired
Partially update a star
patch
Path Parameters
Body
application/json
Body
application/json
Star
idinteger
Example:1
namestring
Example:Sol
typestring
Allowed values:main_sequencered_giantwhite_dwarfneutronsupergiant
Example:main_sequence
mass_solarnumber | null(float)
Example:1
luminosity_solarnumber | null(float)
Example:1
temperature_kinteger | null
Example:5778
distance_lynumber | null(float)
Example:0
constellationstring | null
Example:null
discovered_atstring | null(date)
Example:null
planet_countinteger
Example:9
created_atstring(date-time)
updated_atstring(date-time)
Response
Response
Updated
patch/stars/{id}
Authentication
Path Parameters
Body
{}
Delete a star
delete
Path Parameters
idintegerrequired
Response
Response
Deleted
delete/stars/{id}
Authentication
Path Parameters
List all planets
get
Query Parameters
pageinteger
per_pageinteger
<= 100
Response
application/json
Response
application/json
Paginated list of planets
dataarray[object]
Show Child Parameters
linksobject
Show Child Parameters
metaobject
Show Child Parameters
get/planets
Authentication
Query Parameters
application/json
Create a planet
post
Body
application/json
Body
application/json
namestringrequired
typestringrequired
Allowed values:terrestrialgas_giantice_giantdwarf
star_idinteger | null
mass_earthnumber
radius_kmnumber
orbital_period_daysnumber
distance_aunumber
has_ringsboolean
discovered_atstring(date)
Response
application/json
Response
application/json
Planet created
dataobject
Show Child Parameters
post/planets
Authentication
Body
{
"name": "name",
"type": "terrestrial"
}
application/json
Get a planet
get
Path Parameters
idintegerrequired
Response
application/json
Response
application/json
Planet details
dataobject
Show Child Parameters
get/planets/{id}
Authentication
Path Parameters
application/json