Skip to content

Commit

Permalink
feat: add title and version number in Swagger (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
GtanSndil authored Dec 11, 2023
1 parent 92b671b commit e3cf0cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/fr/insee/rmes/RmesApplication.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
package fr.insee.rmes;

import fr.insee.rmes.config.PropertiesLogger;
import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.info.Info;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

@OpenAPIDefinition(info = @Info(title = "DDI-AS", version = "${fr.insee.rmes.ddias.version}"))
@SpringBootApplication
public class RmesApplication {

Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
logging.logback.rollingpolicy.max-file-size=1MB
logging.file.name= /logs/ddi-access-services-local.log

# Get properties from pom.xml
fr.insee.rmes.ddias.version=@project.version@

spring.servlet.multipart.max-file-size=10MB
springdoc.swagger-ui.path= /.
Expand Down

0 comments on commit e3cf0cc

Please sign in to comment.