コンテンツへスキップ
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"
  }
}