[]
        
立即下载
(Showing Draft Content)

ApplicationApiV1

ApplicationApiV1

[POST] /Manager/Application/Start

启动一个应用。

Request Body

Type: application/json-patch+json

ApplicationApiParam

Example:

{
  "ApplicationName": "App1"
}

Type: application/json

ApplicationApiParam

Example:

{
  "ApplicationName": "App1"
}

Type: text/json

ApplicationApiParam

Example:

{
  "ApplicationName": "App1"
}

Type: application/*+json

ApplicationApiParam

Example:

{
  "ApplicationName": "App1"
}

Responses

[200] OK

ResultDataBase

Type: [text/plain]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [application/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [text/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

[POST] /Manager/Application/Stop

停止一个应用。

Request Body

Type: application/json-patch+json

ApplicationApiParam

Example:

{
  "ApplicationName": "App1"
}

Type: application/json

ApplicationApiParam

Example:

{
  "ApplicationName": "App1"
}

Type: text/json

ApplicationApiParam

Example:

{
  "ApplicationName": "App1"
}

Type: application/*+json

ApplicationApiParam

Example:

{
  "ApplicationName": "App1"
}

Responses

[200] OK

ResultDataBase

Type: [text/plain]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [application/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [text/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

[POST] /Manager/Application/StartAll

启动所有的应用。

Responses

[200] OK

ResultDataBase

Type: [text/plain]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [application/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [text/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

[POST] /Manager/Application/StopAll

停止所有的应用。

Responses

[200] OK

ResultDataBase

Type: [text/plain]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [application/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [text/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

[POST] /Manager/Application/TakeOnline

上线应用,退出维护模式。

Request Body

Type: application/json-patch+json

ApplicationApiParam

Example:

{
  "ApplicationName": "App1"
}

Type: application/json

ApplicationApiParam

Example:

{
  "ApplicationName": "App1"
}

Type: text/json

ApplicationApiParam

Example:

{
  "ApplicationName": "App1"
}

Type: application/*+json

ApplicationApiParam

Example:

{
  "ApplicationName": "App1"
}

Responses

[200] OK

ResultDataBase

Type: [text/plain]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [application/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [text/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

[POST] /Manager/Application/TakeAllOnline

使所有应用上线并退出维护模式。

Responses

[200] OK

ResultDataBase

Type: [text/plain]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [application/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [text/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

[POST] /Manager/Application/TakeOffline

下线应用,进入维护模式。

Request Body

Type: application/json-patch+json

ApplicationApiParam

Example:

{
  "ApplicationName": "App1"
}

Type: application/json

ApplicationApiParam

Example:

{
  "ApplicationName": "App1"
}

Type: text/json

ApplicationApiParam

Example:

{
  "ApplicationName": "App1"
}

Type: application/*+json

ApplicationApiParam

Example:

{
  "ApplicationName": "App1"
}

Responses

[200] OK

ResultDataBase

Type: [text/plain]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [application/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [text/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

[POST] /Manager/Application/TakeAllOffline

使所有应用下线并进入维护模式。

Responses

[200] OK

ResultDataBase

Type: [text/plain]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [application/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [text/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

[GET] /Manager/Application/GetAllApplications

获取所有应用的信息。

Responses

[200] OK

ApplicationsInfoResultData

Type: [text/plain]

Example:

{
  "Applications": [
    {
      "ApplicationName": "NormalApp",
      "PublishDate": "2025/4/8 17:45:14",
      "IsOffline": false,
      "IsRunning": true
    },
    {
      "ApplicationName": "MaintenanceApp",
      "PublishDate": "2025/4/8 17:45:14",
      "IsOffline": true,
      "IsRunning": true
    },
    {
      "ApplicationName": "StoppedApp",
      "PublishDate": "2025/4/8 17:45:14",
      "IsOffline": false,
      "IsRunning": false
    }
  ],
  "Result": true,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

ApplicationsInfoResultData

Type: [application/json]

Example:

{
  "Applications": [
    {
      "ApplicationName": "NormalApp",
      "PublishDate": "2025/4/8 17:45:14",
      "IsOffline": false,
      "IsRunning": true
    },
    {
      "ApplicationName": "MaintenanceApp",
      "PublishDate": "2025/4/8 17:45:14",
      "IsOffline": true,
      "IsRunning": true
    },
    {
      "ApplicationName": "StoppedApp",
      "PublishDate": "2025/4/8 17:45:14",
      "IsOffline": false,
      "IsRunning": false
    }
  ],
  "Result": true,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

ApplicationsInfoResultData

Type: [text/json]

Example:

{
  "Applications": [
    {
      "ApplicationName": "NormalApp",
      "PublishDate": "2025/4/8 17:45:14",
      "IsOffline": false,
      "IsRunning": true
    },
    {
      "ApplicationName": "MaintenanceApp",
      "PublishDate": "2025/4/8 17:45:14",
      "IsOffline": true,
      "IsRunning": true
    },
    {
      "ApplicationName": "StoppedApp",
      "PublishDate": "2025/4/8 17:45:14",
      "IsOffline": false,
      "IsRunning": false
    }
  ],
  "Result": true,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

[GET] /Manager/Application/GetApplication

Parameters

属性名 In 类型 说明
applicationName query string

获取应用的信息。

Responses

[200] OK

ApplicationInfoResultData

Type: [text/plain]

Example:

{
  "PublishDate": "2025/4/8 17:45:14",
  "IsOffline": false,
  "IsRunning": true,
  "Result": true,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

ApplicationInfoResultData

Type: [application/json]

Example:

{
  "PublishDate": "2025/4/8 17:45:14",
  "IsOffline": false,
  "IsRunning": true,
  "Result": true,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

ApplicationInfoResultData

Type: [text/json]

Example:

{
  "PublishDate": "2025/4/8 17:45:14",
  "IsOffline": false,
  "IsRunning": true,
  "Result": true,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

Models

Ƭ ResultDataBase

请求结果。

属性名 类型 说明 Example
Result Boolean 请求是否成功。
MessageNullable string 请求返回的信息。
ErrorCode int32 请求返回的错误码。
MessagePropertiesNullable Array 请求返回信息中的数据。

Ƭ ApplicationApiParam

属性名 类型 说明 Example
ApplicationNameNullable string

Ƭ ApplicationsInfoResultData

属性名 类型 说明 Example
ApplicationsNullable Array<ApplicationInfo>
Result Boolean 请求是否成功。
MessageNullable string 请求返回的信息。
ErrorCode int32 请求返回的错误码。
MessagePropertiesNullable Array 请求返回信息中的数据。

Ƭ ApplicationInfo

属性名 类型 说明 Example
ApplicationNameNullable string
PublishDate ISO DateTime Sting
IsOffline Boolean
IsRunning Boolean

Ƭ ApplicationInfoResultData

属性名 类型 说明 Example
PublishDate ISO DateTime Sting
IsOffline Boolean
IsRunning Boolean
Result Boolean 请求是否成功。
MessageNullable string 请求返回的信息。
ErrorCode int32 请求返回的错误码。
MessagePropertiesNullable Array 请求返回信息中的数据。