Skip to content

Commit e90c826

Browse files
committed
media-type: application/json
1 parent bab7cd4 commit e90c826

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/main/resources/application.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ spring.jpa.open-in-view=false
2626
# swagger
2727
springdoc.swagger-ui.path=/documentation
2828
springdoc.api-docs.path=/documentation/schemas
29+
springdoc.default-produces-media-type=application/json
30+
springdoc.default-consumes-media-type=application/json
2931

3032
# token
3133
token.expiration-in-hours=${TOKEN_EXPIRATION_IN_HOURS:24}

src/test/resources/application.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ spring.jpa.show-sql=${show-sql:true}
1616
# swagger
1717
springdoc.swagger-ui.path=/documentation
1818
springdoc.api-docs.path=/documentation/schemas
19+
springdoc.default-produces-media-type=application/json
20+
springdoc.default-consumes-media-type=application/json
1921

2022
# configuracoes do spring JPA.
2123
spring.jpa.hibernate.ddl-auto=none

0 commit comments

Comments
 (0)