AppPotにログを送信するためのAPIです。

Get LogLevel

Authentication using for user login to the
system

URL

  • GET
    http://{AppPot Server name}:{Port}/{Context root}/api/{companyId}/{appId}/{appVersion}/logLevel?token=xxx
    

Authentication

ユーザー認証が完了している必要があります。

Content-Type: application/json
apppot-token: token

Name Data Format Description
apppot-token String (Required) AnonymousAuthToken

Response example

{
  "errCode": 0,
  "status":"OK",
  "result":"ERROR",
  "description":""
}

Response properties

Name Data Format Description
errCode int Response error code: 0, 105, 120, 121
status String (Required) API result status value.
result String (Optional) Log Level result if status is “OK”
description String (Optional) Detail error

Logging

URL

  • POST
    http://{AppPot Server name}:{Port}/{Context root}/api/{companyId}/{appId}/{appVersion}/logs
    

Authentication

This API requires login

Header

Content-Type: application/json
apppot-token: token

Name Data Format Description
apppot-token String (Required) token

Request parameters

Name Data Format Description
logLevel String (Required) “ERROR” or “MONITOR”
message String (Optional) content of message

Request example

{
  "message": "this is first message",
  "logLevel": "ERROR"
}

Response example

{
  "errCode": 0,
  "status": "OK"
}

Response properties

Name Data Format Description
errCode int Response error code: 0, 120, 121
status String (Required) API result status value.
description String (Optional) status detail error