基本機能 - サーバー
サーバー機能を利用すると、 APIサーバーのステータスを確認できます。
接続情報
開発環境 | DOSI SDK base URI |
---|---|
プロダクション環境 | https://sdk-api.dosi.world |
サーバー時刻の取得
APIサーバーの時刻を取得します。
GET {DOSI SDK base URI}/v1/time
Request
Response
Path
None
Query
None
Body
None
Headers
- Authorization: Basic <「DOSIチャネルID:シークレット」をBase64でエンコードした値>
- Content-Type: application/json
Request examples
curl
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
Request
Response
Path
None
Query
None
Body
None
Headers
- Authorization: Basic <「DOSIチャネルID:シークレット」をBase64でエンコードした値>
- Content-Type: application/json
Request examples
curl
curl --location --request GET 'https://sdk-api.dosi.world/v1/monitor/health' \
--header 'Authorization: Basic xxxxxxxx' \
--header 'Content-Type: application/json'