Skip to content

Commit 3a41ceb

Browse files
marco76marco76
authored andcommitted
open api
1 parent 4058783 commit 3a41ceb

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ https://marco.dev/deploy-java-angular-one
88
And a demo of the installation in this video:
99
https://youtu.be/xCNCCZLvd0Y
1010

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+

backend/pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,16 @@
3131
<groupId>org.springframework.boot</groupId>
3232
<artifactId>spring-boot-starter-test</artifactId>
3333
</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>
3441
</dependencies>
3542

43+
3644
<build>
3745
<plugins>
3846
<plugin>
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# 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

0 commit comments

Comments
 (0)