Skip to content

Commit a174190

Browse files
README files
1 parent 5f8f653 commit a174190

File tree

2 files changed

+82
-0
lines changed

2 files changed

+82
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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

0 commit comments

Comments
 (0)