Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class OpenAPIConfig {
@Value("${server.port}")
private String port;

@Value("${spring.security.oauth2.resourceserver.jwt.token-uri}")
@Value("${openapi.api-docs.token-uri}")
private String keycloakTokenUrl;

private String passwordSecurityScheme = "passwordFlow";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public Category requestToEntity(CategoryRequest request, Optional<Integer> id) {

entity.setId(id.orElse(null));
entity.setName(request.getName());
entity.setDescription(request.getDescription());

return entity;
}
Expand All @@ -28,6 +29,7 @@ public CategoryResponse entityToResponse(Category entity) {
return CategoryResponse.builder()
.id(entity.getId())
.name(entity.getName())
.description(entity.getDescription())
.build();
}

Expand Down
1 change: 1 addition & 0 deletions bookService/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.hibernate.ddl-auto=none

springdoc.api-docs.path=/api-docs
openapi.api-docs.token-uri=http://localhost:8181/realms/e-library/protocol/openid-connect/token

spring.kafka.template.default-topic=book-deleted
spring.kafka.producer.key-serializer=org.apache.kafka.common.serialization.StringSerializer
Expand Down
10 changes: 9 additions & 1 deletion reviewService/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,15 @@
</execution>
</executions>
</plugin>
</plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class OpenAPIConfig {
@Value("${server.port}")
private String port;

@Value("${spring.security.oauth2.resourceserver.jwt.token-uri}")
@Value("${openapi.api-docs.token-uri}")
private String keycloakTokenUrl;

private String passwordSecurityScheme = "passwordFlow";
Expand Down
1 change: 1 addition & 0 deletions reviewService/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ logging.level.org.springframework.web.filter.CommonsRequestLoggingFilter=DEBUG
logging.level.org.springframework.security=DEBUG

springdoc.api-docs.path=/api-docs
openapi.api-docs.token-uri=http://localhost:8181/realms/e-library/protocol/openid-connect/token

spring.kafka.consumer.group-id=review-service
spring.kafka.consumer.key-deserializer=org.apache.kafka.common.serialization.StringDeserializer
Expand Down
Loading