Context History Service

ContextHistoryRestfulApi class

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

Request method: POST

Request data type: application/json

Response data type: */*

Interface Description:

Create History

Request Parameters:

Parameter nameParameter descriptionRequiredRequest typeData typeschema
Parameter nameParameter descriptionRequiredRequest typeData typeschema
contextHistoryHistory contextfalseStringString
contextIDcontext idfalseStringString

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. }

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

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Get multiple history records

Request Parameters:

Parameter nameParameter descriptionRequiredRequest typeData typeschema
Parameter nameParameter descriptionRequiredRequest typeData typeschema
contextIDcontext idfalseStringString

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. }

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

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Get history records

Request Parameters:

Parameter nameParameter descriptionRequiredRequest typeData typeschema
Parameter nameParameter descriptionRequiredRequest typeData typeschema
contextIDContextIdfalseStringString
sourceContext SourcefalseStringString

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. }

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

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Delete history records

Request Parameters:

Parameter nameParameter descriptionRequiredRequest typeData typeschema
Parameter nameParameter descriptionRequiredRequest typeData typeschema
contextHistoryHistory contextfalseStringString
contextIDcontext idfalseStringString

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. }

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

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Search history

Request Parameters:

Parameter nameParameter descriptionRequiredRequest typeData typeschema
Parameter nameParameter descriptionRequiredRequest typeData typeschema
contextIDContextIdfalseStringString
keywordsKeywordsfalseStringString

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. }