Skip to content

Latest commit

 

History

History
executable file
·
69 lines (37 loc) · 1.54 KB

i-swagger-build-definition.md

File metadata and controls

executable file
·
69 lines (37 loc) · 1.54 KB

ISwaggerBuildDefinition

setBasePath: string

Define base URL for all API.

  • Optional.
  • Default is "/"

setOpenapi: string

Define version of OpenAPI.

  • Optional.

setInfo : SwaggerInfo

Define setInfo.

setConsumes: string[]

Define the MIME types supported by the API for setConsumes. The root-level definition can be overridden in individual operations.

setProduces: string[]

Define the MIME types supported by the API for setProduces. The root-level definition can be overridden in individual operations.

setSchemes: string[]

Define Schemes.

setHost: string

Define setHost.

  • Optional

models: {[key: string]: ISwaggerBuildDefinitionModel}

Define all model.

  • Required

externalDocs: ISwaggerExternalDocs

Define external docs

  • Optional

securityDefinitions: {[key: string]: ISwaggerSecurityDefinition}

Define security definitions

  • Optional

responses: {[key: string]: IApiOperationArgsBaseResponse}

Define global responses

  • Optional