File tree Expand file tree Collapse file tree 2 files changed +82
-0
lines changed
springdoc-openapi-scala-1
springdoc-openapi-scala-2/simple Expand file tree Collapse file tree 2 files changed +82
-0
lines changed Original file line number Diff line number Diff line change
1
+ # springdoc-openapi-scala-2 Example Application
2
+
3
+ This is a simple example application demonstrating the use of springdoc-openapi-scala with Spring Boot 2.x.
4
+
5
+ ## Prerequisites
6
+
7
+ - JDK 17 or higher
8
+ - SBT 1.x
9
+ - Scala 2.12.x
10
+
11
+ ## Running the Application
12
+
13
+ To run the application with hot-reload enabled:
14
+
15
+ ``` bash
16
+ cd springdoc-openapi-scala/examples/springdoc-openapi-scala-1/simple
17
+ sbt compile
18
+ sbt " ~reStart"
19
+ ```
20
+
21
+ The ` ~reStart ` command will automatically restart the application when source files change.
22
+
23
+ ## Accessing the API Documentation
24
+
25
+ Once the application is running, you can access the OpenAPI documentation at:
26
+
27
+ - OpenAPI JSON: http://localhost:8080/v3/api-docs
28
+
29
+ ## Features Demonstrated
30
+
31
+ - Integration of springdoc-openapi with Scala classes
32
+ - Automatic schema generation for Scala case classes
33
+ - Support for complex type hierarchies
34
+ - Custom schema customization
35
+
36
+ ## Project Structure
37
+
38
+ - ` src/main/scala/.../Application.scala ` - Spring Boot application entry point
39
+ - ` src/main/scala/.../OpenAPIConfiguration.scala ` - OpenAPI configuration
40
+ - ` src/main/scala/.../controller/ ` - REST controllers
41
+ - ` src/main/scala/.../model/ ` - Data models
Original file line number Diff line number Diff line change
1
+ # springdoc-openapi-scala-2 Example Application
2
+
3
+ This is a simple example application demonstrating the use of springdoc-openapi-scala with Spring Boot 3.x.
4
+
5
+ ## Prerequisites
6
+
7
+ - JDK 17 or higher
8
+ - SBT 1.x
9
+ - Scala 2.12.x
10
+
11
+ ## Running the Application
12
+
13
+ To run the application with hot-reload enabled:
14
+
15
+ ``` bash
16
+ cd springdoc-openapi-scala/examples/springdoc-openapi-scala-2/simple
17
+ sbt compile
18
+ sbt " ~reStart"
19
+ ```
20
+
21
+ The ` ~reStart ` command will automatically restart the application when source files change.
22
+
23
+ ## Accessing the API Documentation
24
+
25
+ Once the application is running, you can access the OpenAPI documentation at:
26
+
27
+ - OpenAPI JSON: http://localhost:8080/v3/api-docs
28
+
29
+ ## Features Demonstrated
30
+
31
+ - Integration of springdoc-openapi with Scala classes
32
+ - Automatic schema generation for Scala case classes
33
+ - Support for complex type hierarchies
34
+ - Custom schema customization
35
+
36
+ ## Project Structure
37
+
38
+ - ` src/main/scala/.../Application.scala ` - Spring Boot application entry point
39
+ - ` src/main/scala/.../OpenAPIConfiguration.scala ` - OpenAPI configuration
40
+ - ` src/main/scala/.../controller/ ` - REST controllers
41
+ - ` src/main/scala/.../model/ ` - Data models
You can’t perform that action at this time.
0 commit comments