AiursoftWeb / Kahla.App

Kahla is a cross-platform business messaging app.
https://www.kahla.app
MIT License
415 stars 85 forks source link

Load probe endpoint from server settings. #886

Closed Anduin2017 closed 4 years ago

Anduin2017 commented 4 years ago

[//]: <Don't delete any header! Please fill out the form, or your bug report will not be considered!>

About the new API

About the API feature

This API produces the probe download and open pattern.

API address

https://staging.server.kahla.app

{
  "wikiPath": "https://wiki.aiursoft.com",
  "serverTime": "2020-05-18T05:12:12.1506367Z",
  "utcTime": "2020-05-18T05:12:12.1506405Z",
  "apiVersion": "4.2.0",
  "vapidPublicKey": "BJOTNmtE1V5GyDiYtoUzWbWLiaVMyfdnXFTvneJCbi9mwpw7FAVgQgIR9JN43TWkpT7ezBes1fPYr4nPqV6qXA0",
  "serverName": "Aiursoft Staging",
  "mode": "Staging",
  "domain": {
    "server": "https://staging.server.kahla.app",
    "client": "https://staging.web.kahla.app"
  },
  "probe": {
    "endpoint": "https://probe.aiursoft.com",
    "openFormat": "https://{0}.aiur.site",
    "downloadFormat": "https://probe.aiursoft.com/download/file/{0}"
  },
  "code": 0,
  "message": "Welcome to Aiursoft Kahla API! Running in Staging mode."
}