Description
Typescript-fetch does not implement in any way the ap+key or Oauth2 security definitions, either globally or indivually applied rules.
Swagger-codegen version
2.2.1
Swagger declaration file content or url
swagger: '2.0'
info:
title: foo
description: bar
version: "1.0.0"
host: localhost:3001
schemes:
- http
# will be prefixed to all paths
basePath: /v1
produces:
- application/json
securityDefinitions:
OpenSecurity:
type: basic
UserSecurity:
type: apiKey
in: header
name: API-KEY
security:
- OpenSecurity: []
paths:
/foo:
x-swagger-router-controller: Foo
get:
operationId: loadFoo
summary: Loads foo foo
description:
foobar
tags:
- Foo
parameters:
- name: fooId
in: query
description: The foo id to load
required: true
type: string
responses:
200:
description: An single foo that matched our search
schema:
type: array
items:
type: string
default:
description: Unexpected error
schema:
type: string
post:
operationId: submitFoo
summary: Submit new Foo
security:
- UserSecurity: []
description: |
The consumer provides a foo to be submitted.
tags:
- Foo
parameters:
- name: foo
in: body
required: true
description: The Foo to upload.
schema:
type: string
responses:
200:
description: The submitted Foo
schema:
type: array
items:
type: string
default:
description: Unexpected error
schema:
type: string
```
##### Command line used for generation
java -Dmodels -Dapis -DsupportingFiles=api.ts -jar
swagger-codegen-cli-2.2.1.jar generate -l typescript-fetch
-o ./src/api -i swagger.yaml --additional-properties supportsES6=true
Description
Typescript-fetch does not implement in any way the ap+key or Oauth2 security definitions, either globally or indivually applied rules.
Swagger-codegen version
2.2.1
Swagger declaration file content or url
java -Dmodels -Dapis -DsupportingFiles=api.ts -jar
swagger-codegen-cli-2.2.1.jar generate -l typescript-fetch
-o ./src/api -i swagger.yaml --additional-properties supportsES6=true