version
android_app
web_app

检查应用版本更新

通过HTTP头传递版本信息:

  • appVersionCode: 应用版本代码(必填,整数)
  • appVersionName: 应用版本名称(可选,后端会忽略,保留向后兼容)
post/api/v1/version/check

Request

  • The document declares no server URL.
  • Auth
    HTTP bearer

Headers

appVersionCodeinteger required

应用版本代码

appVersionNamestring nullable

应用版本名称(向后兼容,忽略)

Response

Successful Response

codeinteger
messagestring

Changes

    • breaking

      the response property // became optional for the status

    • breaking

      the response property // became optional for the status

    • breaking

      the response property // became optional for the status

    • breaking

      the response property // became optional for the status

    • breaking

      the response property // became optional for the status

    • breaking

      the response property // became optional for the status

    • breaking

      the response property // became optional for the status

    • breaking

      response property data/anyOf[subschema #1: VersionCheckResponse]/current_version list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property data/anyOf[subschema #1: VersionCheckResponse]/download_url list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property data/anyOf[subschema #1: VersionCheckResponse]/force_update list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property data/anyOf[subschema #1: VersionCheckResponse]/latest_version list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property data/anyOf[subschema #1: VersionCheckResponse]/message list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property data/anyOf[subschema #1: VersionCheckResponse]/minimum_version list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property data/anyOf[subschema #1: VersionCheckResponse]/update_required list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      the // response's property type changed from no type to string for status

    • warning

      added the new BLOCK_ACCESS enum value to the // response property for the response status

    • warning

      added the new NONE enum value to the // response property for the response status

    • warning

      added the new POP_UP_REMINDER enum value to the // response property for the response status

    • warning

      added the new SETTINGS_REMINDER enum value to the // response property for the response status

    • info

      removed subschema #2 from the // response property anyOf list for the response status

    • info

      the response's property default value NONE was added for the status

    • info

      added the optional property // to the response with the status