-
Notifications
You must be signed in to change notification settings - Fork 0
Fix example applications #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
c5e7a91
Add revolver plugin
AlexGuzmanAtAbsa fc5295f
Update dependencies to align with library version
AlexGuzmanAtAbsa 1204a09
Fix example 1 spring boot
AlexGuzmanAtAbsa f88d31a
wip
AlexGuzmanAtAbsa d1952b0
Missing dependency
AlexGuzmanAtAbsa e35baa2
Truncated comment
AlexGuzmanAtAbsa 5f8f653
Update
AlexGuzmanAtAbsa acab67a
Merge branch 'main' into feature/fix-examples
AlexGuzmanAtAbsa a174190
README files
AlexGuzmanAtAbsa f0fb16d
Merge remote-tracking branch 'origin/feature/fix-examples' into featu…
AlexGuzmanAtAbsa 128601c
Fix custom types
AlexGuzmanAtAbsa 14b388d
Update examples/springdoc-openapi-scala-1/README.md
AlexGuzmanAtAbsa 6195033
Update examples/springdoc-openapi-scala-2/simple/README.md
AlexGuzmanAtAbsa 97dc83a
Correction
AlexGuzmanAtAbsa 5481a93
Merge branch 'main' into feature/fix-examples
kevinwallimann 51c3577
Merge branch 'main' into feature/fix-examples
AlexGuzmanAtAbsa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# springdoc-openapi-scala-2 Example Application | ||
|
||
This is a simple example application demonstrating the use of springdoc-openapi-scala with Spring Boot 2.x. | ||
|
||
## Prerequisites | ||
|
||
- JDK 17 or higher | ||
- SBT 1.x | ||
- Scala 2.12.x | ||
|
||
## Running the Application | ||
|
||
To run the application with hot-reload enabled: | ||
|
||
```bash | ||
cd springdoc-openapi-scala/examples/springdoc-openapi-scala-1/simple | ||
sed -i '' 's/`springdoc-openapi-scala-1-version`: String = \?\?\?/`springdoc-openapi-scala-1-version`: String = "0.3.2"/g' build.sbt # Omit '' after the -i flag if not on mac | ||
sbt compile | ||
sbt "~reStart" | ||
``` | ||
|
||
The `~reStart` command will automatically restart the application when source files change. | ||
|
||
## Accessing the API Documentation | ||
|
||
Once the application is running, you can access the OpenAPI documentation at: | ||
|
||
- OpenAPI JSON: http://localhost:8080/v3/api-docs | ||
|
||
## Features Demonstrated | ||
|
||
- Integration of springdoc-openapi with Scala classes | ||
- Automatic schema generation for Scala case classes | ||
- Support for complex type hierarchies | ||
- Custom schema customization | ||
|
||
## Project Structure | ||
|
||
- `src/main/scala/.../Application.scala` - Spring Boot application entry point | ||
- `src/main/scala/.../OpenAPIConfiguration.scala` - OpenAPI configuration | ||
- `src/main/scala/.../controller/` - REST controllers | ||
- `src/main/scala/.../model/` - Data models |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# springdoc-openapi-scala-2 Example Application | ||
|
||
This is a simple example application demonstrating the use of springdoc-openapi-scala with Spring Boot 3.x. | ||
|
||
## Prerequisites | ||
|
||
- JDK 17 or higher | ||
- SBT 1.x | ||
- Scala 2.12.x | ||
|
||
## Running the Application | ||
|
||
To run the application with hot-reload enabled: | ||
|
||
```bash | ||
cd springdoc-openapi-scala/examples/springdoc-openapi-scala-2/simple | ||
AlexGuzmanAtAbsa marked this conversation as resolved.
Show resolved
Hide resolved
|
||
sed -i '' 's/`springdoc-openapi-scala-2-version`: String = \?\?\?/`springdoc-openapi-scala-2-version`: String = "0.3.2"/g' build.sbt # Omit '' after the -i flag if not on mac | ||
sbt compile | ||
sbt "~reStart" | ||
``` | ||
|
||
The `~reStart` command will automatically restart the application when source files change. | ||
|
||
## Accessing the API Documentation | ||
|
||
Once the application is running, you can access the OpenAPI documentation at: | ||
|
||
- OpenAPI JSON: http://localhost:8080/v3/api-docs | ||
|
||
## Features Demonstrated | ||
|
||
- Integration of springdoc-openapi with Scala classes | ||
- Automatic schema generation for Scala case classes | ||
- Support for complex type hierarchies | ||
- Custom schema customization | ||
|
||
## Project Structure | ||
|
||
- `src/main/scala/.../Application.scala` - Spring Boot application entry point | ||
- `src/main/scala/.../OpenAPIConfiguration.scala` - OpenAPI configuration | ||
- `src/main/scala/.../controller/` - REST controllers | ||
- `src/main/scala/.../model/` - Data models |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,12 @@ ThisBuild / developers := List( | |
name = "Kevin Wallimann", | ||
email = "[email protected]", | ||
url = url("https://github.com/kevinwallimann") | ||
), | ||
Developer( | ||
id = "AlexGuzmanAtAbsa", | ||
name = "Alejandro Guzman", | ||
email = "[email protected]", | ||
url = url("https://github.com/AlexGuzmanAtAbsa") | ||
) | ||
) | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.