GeezerVison is showing github.com — open api · AsmaStack/java-angular-basic@3a41ceb
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: README.md +5Lines changed: 5 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,3 +8,8 @@ https://marco.dev/deploy-java-angular-one |
8 | 8 | And a demo of the installation in this video: |
9 | 9 | https://youtu.be/xCNCCZLvd0Y |
10 | 10 |
|
| 11 | +To the basic example I added some 'showcase' extra features: |
| 12 | +- Test with MockMvc |
| 13 | +- Test with RestTemplateTest |
| 14 | +- OpenApi using Spring Doc (code first). Swagger-ui is accessible here: http://localhost:8080/swagger-ui |
| 15 | + |
Collapse file
Copy file name to clipboardExpand all lines: backend/pom.xml +8Lines changed: 8 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
31 | 31 | <groupId>org.springframework.boot</groupId> |
32 | 32 | <artifactId>spring-boot-starter-test</artifactId> |
33 | 33 | </dependency> |
| 34 | + |
| 35 | + <!-- This is used to document the API --> |
| 36 | + <dependency> |
| 37 | + <groupId>org.springdoc</groupId> |
| 38 | + <artifactId>springdoc-openapi-ui</artifactId> |
| 39 | + <version>1.5.13</version> |
| 40 | + </dependency> |
34 | 41 | </dependencies> |
35 | 42 |
|
| 43 | + |
36 | 44 | <build> |
37 | 45 | <plugins> |
38 | 46 | <plugin> |
|
Collapse file
Copy file name to clipboard +4-1Lines changed: 4 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | # url of the development frontend |
2 | | -app.dev.frontend.local=http://localhost:4200 |
| 2 | +app.dev.frontend.local=http://localhost:4200 |
| 3 | + |
| 4 | +# swagger-ui custom path, this is the default path. I added the property only for show case |
| 5 | +springdoc.swagger-ui.path=/swagger-ui.html |