Skip to main content
Version: 1.2.0

Context History Service

ContextHistoryRestfulApi class

create history

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:

{
"data": {},
"message": "",
"method": "",
"status": 0
}

Get multiple histories

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:

{
"data": {},
"message": "",
"method": "",
"status": 0
}

Get history

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:

{
"data": {},
"message": "",
"method": "",
"status": 0
}

delete history

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:

{
"data": {},
"message": "",
"method": "",
"status": 0
}

search history

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:

{
"data": {},
"message": "",
"method": "",
"status": 0
}