跳至內容
Fumadocs

Get all planets

GET
/planets

It's easy to say you know them all, but do you really? Retrieve all the planets and check whether you missed one.

查詢參數

limit?integer

The number of items to return

格式int64
預設10
offset?integer

The number of items to skip before starting to collect the result set

格式int64
預設0

回應主體

OK

  1. response

A generic paginated resource. Specializing schemas bind the item type by declaring a $dynamicAnchor named itemType, the JSON Schema 2020-12 way to express PaginatedResource<T>.

data?array<unknown>
meta?
範例請求
curl -X GET 'https://galaxy.scalar.com/planets'
範例回應200
{
  "data": [
    null
  ],
  "meta": {
    "limit": 10,
    "offset": 0,
    "total": 100,
    "next": "/planets?limit=10&offset=10"
  }
}