ServerAPIv1.1.0

網頁介面Web pages

三個以 HTML 呈現的頁面,預設全部關閉

web:
  docs: false           # /api/docs                 互動式 API 文件
  punishments: false    # /punishments?view=html    處罰紀錄展示頁
  placeholders: false   # /placeholders?list=true   PlaceholderAPI 預覽頁

這些頁面會把內容完整攤開給任何打得開的人,公開環境請斟酌。 關閉時對應路徑與參數一律回 404,JSON 端點不受影響。

/api/docs 會列出所有已啟用端點與參數,可直接在頁面上送出請求看到真實回應, 並附金鑰輸入欄(只存在瀏覽器本機,不會送到伺服器以外的地方)。

Three HTML pages, all off by default:

web:
  docs: false           # /api/docs                 Interactive API docs
  punishments: false    # /punishments?view=html    Punishment records demo page
  placeholders: false   # /placeholders?list=true   PlaceholderAPI preview page

These lay the content out in full for anyone who can open them, so consider carefully before exposing them. When off, the path or parameter returns 404 and the JSON endpoints are unaffected.

/api/docs lists every enabled endpoint and parameter, lets you fire real requests from the page, and includes an API key field that stays in your browser and is never sent anywhere but your own server.