Skip to content

Commit a757cbd

Browse files
committed
rectify swagger docs
1 parent c013007 commit a757cbd

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

src/main/java/com/pfa/app/config/swagger/SwaggerConfig.java

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,44 +30,43 @@ public class SwaggerConfig {
3030

3131
@Bean
3232
public Docket productApi() {
33-
3433
return new Docket(DocumentationType.SWAGGER_2)
3534
.select()
3635
.apis(RequestHandlerSelectors.basePackage(BASE_PACKAGE))
37-
.paths(regex("/app/api/.*"))
36+
.paths(regex("/.*"))
3837
.build()
39-
.apiInfo(this.metaData());
38+
.apiInfo(this.metaData());
4039
}
4140

4241
private ApiInfo metaData() {
4342

44-
final String title = "Project-Tracker-System";
43+
final String title = "Project Tracking System";
4544
final String description = "Manage and track commits transactions by Employees and their Managers on a specific project.\n"
4645
+ "- Employees can be assigned to projects created and managed by their managers, can add a new commits to a specific project so manager can track its progression\n"
4746
+ "- Managers can create, edit & delete projects, also assign them to their employees and track them efficiently & easily\n"
4847
+ "- Admin manages all Employees as well as their credentials & departments\n"
4948
+ "For more, you can check more on our GitHub repositories : \n"
50-
+ "- Selim Horri : https://github.com/SelimHorri?tab=repositories \n"
51-
+ "- Imen Toukebri : https://github.com/imen1012?tab=repositories \n"
52-
+ "- Bader Idoudi : https://github.com/Bader1996?tab=repositories \n";
53-
final String version = "1.0";
49+
+ "- Selim Horri: https://github.com/SelimHorri \n"
50+
+ "- Imen Toukebri: https://github.com/imen1012 \n"
51+
+ "- Bader Idoudi: https://github.com/Bader1996 \n";
52+
final String version = "9.0";
5453
final String termsOfServiceUrl = "Terms of service";
5554
final String name = "Selim Horri, Imen Touk, Badr Idoudi";
56-
final String url = "https://github.com/SelimHorri/Project-Tracking-System";
55+
final String url = "https://github.com/SelimHorri/project-tracking-system-backend-app";
5756
final String email = "[email protected]";
5857
final Contact contact = new Contact(name, url, email);
5958
final String license = "Apache Licence version 2.0";
6059
final String licenseUrl = "https://apache.org/license.html";
6160

6261
return new ApiInfoBuilder()
63-
.title(title)
64-
.description(description)
65-
.version(version)
66-
.termsOfServiceUrl(termsOfServiceUrl)
67-
.contact(contact)
68-
.license(license)
69-
.licenseUrl(licenseUrl)
70-
.build();
62+
.title(title)
63+
.description(description)
64+
.version(version)
65+
.termsOfServiceUrl(termsOfServiceUrl)
66+
.contact(contact)
67+
.license(license)
68+
.licenseUrl(licenseUrl)
69+
.build();
7170
}
7271

7372

0 commit comments

Comments
 (0)