Skip to content

Commit 1649c40

Browse files
committed
Swagger url fix
1 parent 66baf6a commit 1649c40

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ $ mvnw test -Dtest=UsuariosControllerIntegrationTests#should_save_a_new_user
104104

105105

106106
## Documentação do Swagger
107-
Assim que a aplicação estiver de pé, fica disponível em: [localhost:8080/swagger-ui/index.html](localhost:8080/swagger-ui/index.html)
107+
Assim que a aplicação estiver de pé, fica disponível em: [localhost:8080/documentation](localhost:8080/documentation)
108108

109109

110-
[exemplo no heroku](https://throyer-crud-api.herokuapp.com/swagger-ui/index.html)
110+
[exemplo no heroku](https://throyer-crud-api.herokuapp.com/documentation)
111111

112112
## Postman
113113
Clique [**aqui**](./postman/crud_api.postman_collection.json) para acessar o aquivo `json` da coleção do postman.

src/test/java/com/github/throyer/common/springboot/SwaggerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class SwaggerTests {
2323
@DisplayName("Deve exibir a documentação | swagger ui")
2424
public void should_show_swagger_docs_ui() throws Exception {
2525

26-
var request = get("/swagger-ui/index.html");
26+
var request = get("/swagger-ui/index.html?configUrl=/documentation/schemas/swagger-config");
2727

2828
api.perform(request)
2929
.andDo(print())

0 commit comments

Comments
 (0)