Skip to content

Commit

Permalink
Merge pull request #16 from bouanani-soufiane/PIG-72-API-documentation
Browse files Browse the repository at this point in the history
PIG-72-API-documentation
  • Loading branch information
bouanani-soufiane authored Nov 10, 2024
2 parents ea8670b + 5c94479 commit 0db9ce6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@
<artifactId>spring-security-crypto</artifactId>
<version>6.3.4</version>
</dependency>

<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.6.0</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
package ma.yc.PigeonSkyRace;

import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.info.Info;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
import org.springframework.scheduling.annotation.EnableScheduling;

@OpenAPIDefinition(
info = @Info(
title = "Pigeon Sky Race API",
version = "1.0",
description = "API documentation for managing pigeon racing competitions with MongoDB"
)
)
@SpringBootApplication(scanBasePackages = "ma.yc.PigeonSkyRace")
@EnableMongoRepositories
@EnableScheduling
Expand Down

0 comments on commit 0db9ce6

Please sign in to comment.