2021-01-25 14:16:37 +01:00
|
|
|
package eu.dnetlib.data.mdstore.manager;
|
|
|
|
|
2022-08-19 13:27:36 +02:00
|
|
|
import org.springdoc.core.GroupedOpenApi;
|
2021-01-25 14:16:37 +01:00
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
2021-05-13 09:01:43 +02:00
|
|
|
import org.springframework.boot.autoconfigure.domain.EntityScan;
|
2021-01-25 14:16:37 +01:00
|
|
|
import org.springframework.cache.annotation.EnableCaching;
|
2022-08-19 13:27:36 +02:00
|
|
|
import org.springframework.context.annotation.Bean;
|
2021-11-02 11:50:50 +01:00
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
2021-01-25 14:16:37 +01:00
|
|
|
|
2021-01-27 12:17:38 +01:00
|
|
|
import eu.dnetlib.common.app.AbstractDnetApp;
|
2021-01-25 14:16:37 +01:00
|
|
|
|
|
|
|
@SpringBootApplication
|
|
|
|
@EnableCaching
|
2021-11-02 11:50:50 +01:00
|
|
|
@EnableScheduling
|
2021-05-13 09:01:43 +02:00
|
|
|
@EntityScan("eu.dnetlib.dhp.schema.mdstore")
|
2021-01-27 12:17:38 +01:00
|
|
|
public class MainApplication extends AbstractDnetApp {
|
2021-01-25 14:16:37 +01:00
|
|
|
|
|
|
|
public static void main(final String[] args) {
|
|
|
|
SpringApplication.run(MainApplication.class, args);
|
|
|
|
}
|
|
|
|
|
2022-08-19 13:27:36 +02:00
|
|
|
@Bean
|
|
|
|
public GroupedOpenApi publicApi() {
|
|
|
|
return GroupedOpenApi.builder()
|
|
|
|
.group("MDStore APIs")
|
2022-09-01 09:04:31 +02:00
|
|
|
.pathsToMatch("/mdstores/**")
|
2022-08-19 13:27:36 +02:00
|
|
|
.build();
|
|
|
|
}
|
|
|
|
|
2021-01-27 12:17:38 +01:00
|
|
|
@Override
|
2022-08-30 08:59:01 +02:00
|
|
|
protected String swaggerTitle() {
|
|
|
|
return "MDStore Manager APIs";
|
2021-01-25 14:16:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|