Skip to content

Commit 8cebce6

Browse files
authored
Merge pull request #129 from nanotaboada/feature/readme-api-docs
chore: add API docs section
2 parents a7b56ca + d6a2141 commit 8cebce6

5 files changed

Lines changed: 15 additions & 4 deletions

File tree

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"configurations": [
33
{
44
"type": "java",
5-
"name": "Spring Boot (Debug)",
5+
"name": "Java: Launch Spring Boot (Debug)",
66
"request": "launch",
77
"cwd": "${workspaceFolder}",
88
"console": "internalConsole",

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ The following is a simplified dependency diagram of modules and main libraries:
1818

1919
![Dependency Diagram](java.samples.spring.boot.svg)
2020

21+
## Documentation
22+
23+
```console
24+
http://localhost:9000/swagger/index.html
25+
```
26+
27+
![API Documentation](java.samples.spring.boot-swagger.png)
28+
2129
## Credits
2230

2331
The solution has been coded using [Visual Studio Code](https://code.visualstudio.com/) with the [Extension Pack for Java](https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack)
294 KB
Loading

src/main/java/ar/com/nanotaboada/java/samples/spring/boot/controllers/BooksController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929
import ar.com.nanotaboada.java.samples.spring.boot.services.BooksService;
3030

3131
@RestController
32-
@Tag(name = "Books", description = "CRUD operations for books")
32+
@Tag(name = "Books")
3333
@OpenAPIDefinition(
3434
info = @Info(
3535
title = "java.samples.spring.boot",
3636
version = "1.0",
3737
description = "🧪 Proof of Concept for a RESTful Web Service made with JDK 21 (LTS) and Spring Boot 3",
3838
contact = @Contact(
39-
name = "Github",
39+
name = "GitHub",
4040
url = "https://github.com/nanotaboada/java.samples.spring.boot"
4141
),
4242
license = @License(

src/main/resources/application.properties

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ management.endpoint.health.show-details=always
99
# http://localhost:9001/actuator/info
1010
management.info.env.enabled=true
1111
info.app.name=Sample RESTful Web Service with Spring Boot
12-
info.app.description=Proof of Concept for a RESTful Web Service made with Spring Boot 3 targeting JDK 21
12+
info.app.description=Proof of Concept for a RESTful Web Service made with Spring Boot 3 targeting JDK 21
13+
14+
springdoc.api-docs.path=/docs
15+
springdoc.swagger-ui.path=/swagger/index.html

0 commit comments

Comments
 (0)