Context Listening Service

ContextListenerRestfulApi class

Context listener service

heartbeat

Interface address:/api/rest_j/v1/contextservice/heartbeat

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
jsonNodejsonNodebodytrueJsonNodeJsonNode

Response Status:

Status codeDescriptionschema
200OKMessage
201Created
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }

onBindIDListener

Interface address:/api/rest_j/v1/contextservice/onBindIDListener

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
jsonNodejsonNodebodytrueJsonNodeJsonNode

Response Status:

Status codeDescriptionschema
200OKMessage
201Created
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }

onBindKeyListener

Interface address:/api/rest_j/v1/contextservice/onBindKeyListener

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
jsonNodejsonNodebodytrueJsonNodeJsonNode

Response Status:

Status codeDescriptionschema
200OKMessage
201Created
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }