search api

This commit is contained in:
Timo 2021-07-19 15:03:39 +03:00
parent 354d308067
commit ff471bf52a
3 changed files with 42 additions and 1 deletions

View File

@ -66,7 +66,7 @@ export class SearchControllerService {
}
// to determine the Accept header
let httpHeaderAccepts: string[] = ['application/json'];
const httpHeaderAccepts: string[] = ['application/json'];
const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);

View File

@ -0,0 +1,23 @@
/**
* API Documentation for Redaction Gateway
* Description for redaction
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
import { MatchedSection } from './matchedSection';
export interface MatchedDocument {
containsAllMatchedSections?: boolean;
dossierId?: string;
fileId?: string;
highlights?: { [key: string]: Array<string> };
matchedSections?: Array<MatchedSection>;
matchedTerms?: Array<string>;
score?: number;
unmatchedTerms?: Array<string>;
}

View File

@ -0,0 +1,18 @@
/**
* API Documentation for Redaction Gateway
* Description for redaction
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
export interface MatchedSection {
headline?: string;
matchedTerms?: Array<string>;
pages?: Array<number>;
sectionNumber?: number;
}