in server/resource/v1/history_resource.go [125:164]
func (r *HistoryResource) URLPatterns() []restful.Route {
return []restful.Route{
{
Method: http.MethodGet,
Path: "/v1/{project}/kie/revision/{kv_id}",
ResourceFunc: r.GetRevisions,
FuncDesc: "get all revisions by key id",
Parameters: []*restful.Parameters{
DocPathProject, DocPathKeyID,
},
Returns: []*restful.Returns{
{
Code: http.StatusOK,
Model: model.DocResponseGetKey{},
},
},
Consumes: []string{goRestful.MIME_JSON},
Produces: []string{goRestful.MIME_JSON},
},
{
Method: http.MethodGet,
Path: "/v1/{project}/kie/track",
ResourceFunc: r.GetPollingData,
FuncDesc: "get polling tracks of clients of kie server",
Parameters: []*restful.Parameters{
DocPathProject, DocQuerySessionIDParameters, DocQueryIPParameters, DocQueryURLPathParameters, DocQueryUserAgentParameters,
},
Returns: []*restful.Returns{
{
Code: http.StatusOK,
Message: "true",
Model: []model.PollingDataResponse{},
},
},
Consumes: []string{goRestful.MIME_JSON},
Produces: []string{goRestful.MIME_JSON},
},
}
}