Skip to content

Commit 68a102a

Browse files
committed
feat(docs): add production server URL to SpringDoc configuration
1 parent a317a7d commit 68a102a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/main/java/com/github/renancvitor/inventory/infra/documentation/SpringDocConfiguration.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,23 @@ public OpenAPI customOpenAPI() {
2525
.scheme("bearer")
2626
.bearerFormat("JWT")))
2727
.addSecurityItem(new SecurityRequirement().addList("bearer-key"))
28+
.addServersItem(new Server()
29+
.url("https://www.inventory-system.renantech.com.br")
30+
.description("Ambiente de produção"))
2831
.addServersItem(new Server()
2932
.url("http://localhost:8080")
3033
.description("Ambiente local"))
3134
.info(new Info()
3235
.title("Inventory Notification System")
33-
.version("1.0.0")
36+
.version("1.2.0")
3437
.description(
3538
"API REST da aplicação Inventory Notification System." +
3639
"Forneceções operações de criação, leitura, atualização e remoção (CRUD) para os recursos do sistema. O projeto está em desenvolvimento e esta documentação será atualizada em tempo."
3740
+
3841
"Esta API garante validação, autenticação via JWT (JSON Web Token) e tratamento consistente de erros, permitindo integração segura com o Frontend.")
3942
.contact(new Contact()
4043
.name("Renan C. Vitor")
44+
.url("https://github.com/renancvitor")
4145
.email("renan.vitor.cm@gmail.com"))
4246
.license(new License()
4347
.name("MIT Licence")

src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ security:
2626

2727
app:
2828
name: Inventory Notification System Backend
29-
version: 1.1.1
29+
version: 1.2.0
3030
environment: default
3131

0 commit comments

Comments
 (0)