メインコンテンツまでスキップ
バージョン: 1.4.0

基本機能 - サーバー

サーバー機能を利用すると、 APIサーバーのステータスを確認できます。

接続情報

開発環境DOSI SDK base URI
プロダクション環境https://sdk-api.dosi.world

サーバー時刻の取得

APIサーバーの時刻を取得します。

GET {DOSI SDK base URI}/v1/time

Path

None

Query

None

Body

None

Headers
  • Authorization: Basic <「DOSIチャネルID:シークレット」をBase64でエンコードした値>
  • Content-Type: application/json

Request examples

curl --location --request GET 'https://sdk-api.dosi.world/v1/time' \
--header 'Authorization: Basic xxxxxxxx' \
--header 'Content-Type: application/json'

サーバーステータスの取得

DOSI SDKサーバーのステータスを取得します。

このエンドポイントは応答データを提供しません。HTTP status codeでサーバーのステータスを確認してください。

GET {DOSI SDK base URI}/v1/monitor/health

Path

None

Query

None

Body

None

Headers
  • Authorization: Basic <「DOSIチャネルID:シークレット」をBase64でエンコードした値>
  • Content-Type: application/json

Request examples

curl --location --request GET 'https://sdk-api.dosi.world/v1/monitor/health' \
--header 'Authorization: Basic xxxxxxxx' \
--header 'Content-Type: application/json'