跳至內容
Fumadocs

New Planet

請求主體

Information about a new planet

application/json
  1. body

A planet in the Scalar Galaxy

id*integer
格式int64
name*string
description?string|null
type?string
值於"terrestrial""gas_giant""ice_giant""dwarf""super_earth"
habitabilityIndex?number

A score from 0 to 1 indicating potential habitability

格式float
範圍0 <= value <= 1
physicalProperties?
atmosphere?array<>

Atmospheric composition

discoveredAt?string
格式date-time
image?string|null
satellites?array<>
creator?

A user

tags?array<string>
successCallbackUrl?string

URL which gets invoked upon a successful operation

格式uri
failureCallbackUrl?string

URL which gets invoked upon a failed operation

格式uri

回應主體

Return a 200 status to indicate that the data was received successfully

範例請求
POST/newPlanet

A planet in the Scalar Galaxy

請求主體
application/json
{
  "id": 1,
  "name": "Mars"
}