Open LegendarySpork9 opened 6 months ago
Added authorisation endpoint. Need to complete validation.
All endpoints added and tested on the UAT environment.
Code rearranged and retested. Submitting to HF for review and suggestions
Full details attached. API Feedback.docx
Ignore the counts model. Have it in the response model:
return Ok(new
{
entries = FormattedRecords,
entry_count = Result.Item1.Length,
page_number = Filters.PageNumber,
page_size = Filters.PageSize,
total_page_count = Math.Ceiling(TotalPages),
total_count = TotalRecords
}); // Mine
CrackedEntitiesResponseModel responseModel = new()
{
CrackedEntities = crackedEntityModels,
ContinuationToken = continuationToken,
PageSize = pageSize,
PageCount = crackedEntityModels.Count
};
response = await request.CreateJsonResponse(HttpStatusCode.OK, responseModel);
return response; // DW
Build the Assistant API and Test it.