Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
wwwroot/*.js
node_modules
typings
dist
src/app/client/
src/environments/*
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This project was generated with [Angular CLI](https://github.com/angular/angular

### Download Swagger Codegen CLI Jar

The v3.0.9 jar can be downloaded from here: [swagger-codegen](https://repo1.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/3.0.24/swagger-codegen-cli-3.0.24.jar).
The v3.0.24 jar can be downloaded from here: [swagger-codegen](https://repo1.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/3.0.24/swagger-codegen-cli-3.0.24.jar).

### Configure package.json

Expand All @@ -27,6 +27,14 @@ java -jar <swagger-jar-location> generate -i <swagger-yaml-location> -l typescri
Eg:
java -jar /tmp/swagger-codegen-cli-3.0.9.jar generate -i /tmp/pet-api.yaml -l typescript-angular -o src/app/client/
```

### Swagger Codegen fix
There is a problem with current codegen, add a following fix to avoid compile time issue

navigate to /src/client/api.module.ts and update the following line
```
ModuleWithProviders { to ModuleWithProviders<ApiModule> {
```
# To run Angular...
## Development server

Expand All @@ -39,7 +47,3 @@ Added service URL in proxy-config.json, this should avoid CORS issue
Follow my other repository to generate Java Spring Boot codegen using swagger

https://github.com/sivagasc/java-spring-swagger-codegen




Loading