You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* BREAKING_CHANGE: fully rewrite render Eta templates process, overriding only one template(#166), template path prefixes
* docs: update README.md
* docs: update README
* docs: update README
* docs: add extra readmes for template folders
* docs: remove words about mustache version in README
* BREAKING_CHANGE: removed TPromise type
* feat: --axios option (axios based HttpClient class)
* bump: up version to 6.0.0
* fix: support of older templates; fix: spec_templates test; chore: apply comments for axios http client
--single-http-client Ability to send HttpClient instance to Api constructor (default: false)
62
60
--default-response <type> default type for empty response schema (default: "void")
63
61
-h, --help display help for command
@@ -128,25 +126,43 @@ generateApi({
128
126
129
127
## 💎 options
130
128
### **`--templates`**
131
-
This option needed for cases when you don't want to use default `swagger-typescript-api` output structure
129
+
This option needed for cases when you don't want to use the default `swagger-typescript-api` output structure
132
130
133
131
Templates:
134
-
-`api.eta` - Api class module
135
-
-`data-contracts.eta` - all types (data contracts) from swagger schema
136
-
-`http-client.eta` - HttpClient class module
137
-
-`procedure-call.eta` - route in Api class
138
-
-`route-docs.eta` - documentation for route in Api class
139
-
-`route-name.eta` - route name for route in Api class
140
-
-`route-type.eta` - *(`--route-types` option)*
141
-
-`route-types.eta` - *(`--route-types` option)*
132
+
-`api.eta` - Api class module (locations: [/templates/default](https://github.com/acacode/swagger-typescript-api/tree/next/templates/default/api.eta), [/templates/modular](https://github.com/acacode/swagger-typescript-api/tree/next/templates/modular/api.eta))
133
+
-`data-contracts.eta` - all types (data contracts) from swagger schema (locations: [/templates/base](https://github.com/acacode/swagger-typescript-api/tree/next/templates/base/data-contracts.eta))
134
+
-`http-client.eta` - HttpClient class module (locations: [/templates/base](https://github.com/acacode/swagger-typescript-api/tree/next/templates/base/http-client.eta))
135
+
-`procedure-call.eta` - route in Api class (locations: [/templates/default](https://github.com/acacode/swagger-typescript-api/tree/next/templates/default/procedure-call.eta), [/templates/modular](https://github.com/acacode/swagger-typescript-api/tree/next/templates/modular/procedure-call.eta))
136
+
-`route-docs.eta` - documentation for route in Api class (locations: [/templates/base](https://github.com/acacode/swagger-typescript-api/tree/next/templates/base/route-docs.eta))
137
+
-`route-name.eta` - route name for route in Api class (locations: [/templates/base](https://github.com/acacode/swagger-typescript-api/tree/next/templates/base/route-name.eta))
1. copy swagger-typescript-api templates into your place in project
142
+
1. copy `swagger-typescript-api` templates into your place in project
145
143
- from [/templates/default](https://github.com/acacode/swagger-typescript-api/tree/next/templates/default) for single api file
146
144
- from [/templates/modular](https://github.com/acacode/swagger-typescript-api/tree/next/templates/modular) for multiple api files (with `--modular` option)
145
+
- from [/templates/base](https://github.com/acacode/swagger-typescript-api/tree/next/templates/base) for base templates (templates using both in default and modular)
0 commit comments