Skip to content
Snippets Groups Projects

Rename defaultValue to default and description to summary. Add openapiversion....

Merged Baptiste Toulemonde requested to merge describe_repository_api into master
10 files
+ 672
386
Compare changes
  • Side-by-side
  • Inline
Files
10
@@ -23,39 +23,52 @@ export interface ItemDTO {
}
export interface ResponseSchemaDTO {
type: string,
items: ItemDTO[]
items: ItemDTO
}
export interface ContentDTO {
schema: ResponseSchemaDTO
schema: ResponseSchemaDTO;
contentType: string;
}
export type MimeTypeToContentMapDTO = Map<string,ContentDTO>;
export interface ResponseDTO {
description: string,
content: MimeTypeToContentMapDTO
content: any;
httpStatusCode: string;
}
export type HttpCodeToResponseMapDTO = Map<HttpStatusCode,ResponseDTO>;
export interface RequestDTO {
description: string,
httpmethod: string;
title: string;
summary: string,
tags: string[]
parameters: ParameterDTO[],
responses : HttpCodeToResponseMapDTO,
responses : any;
}
export type MethodToRequestMapDTO = Map<HttpMethod,RequestDTO>;
export type PathMapDTO = Map<string,MethodToRequestMapDTO>;
export type InfoMapDTO = Map<string,string>;
export type InfoMapDTO = {
title: string;
version: string;
description: string;
'x-catalog-id': string;
'x-format': string;
'x-page-param': string;
'x-result': string;
'x-start-param': string;
};
export interface OpenApiDTO {
openapi: string;
info: InfoMapDTO;
servers: ServerDTO[];
paths: PathMapDTO;
paths: any;
}
Loading