Skip to content

Commit

Permalink
rectify swagger docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SelimHorri committed Sep 15, 2021
1 parent c013007 commit a757cbd
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions src/main/java/com/pfa/app/config/swagger/SwaggerConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,44 +30,43 @@ public class SwaggerConfig {

@Bean
public Docket productApi() {

return new Docket(DocumentationType.SWAGGER_2)
.select()
.apis(RequestHandlerSelectors.basePackage(BASE_PACKAGE))
.paths(regex("/app/api/.*"))
.paths(regex("/.*"))
.build()
.apiInfo(this.metaData());
.apiInfo(this.metaData());
}

private ApiInfo metaData() {

final String title = "Project-Tracker-System";
final String title = "Project Tracking System";
final String description = "Manage and track commits transactions by Employees and their Managers on a specific project.\n"
+ "- 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"
+ "- Managers can create, edit & delete projects, also assign them to their employees and track them efficiently & easily\n"
+ "- Admin manages all Employees as well as their credentials & departments\n"
+ "For more, you can check more on our GitHub repositories : \n"
+ "- Selim Horri : https://github.com/SelimHorri?tab=repositories \n"
+ "- Imen Toukebri : https://github.com/imen1012?tab=repositories \n"
+ "- Bader Idoudi : https://github.com/Bader1996?tab=repositories \n";
final String version = "1.0";
+ "- Selim Horri: https://github.com/SelimHorri \n"
+ "- Imen Toukebri: https://github.com/imen1012 \n"
+ "- Bader Idoudi: https://github.com/Bader1996 \n";
final String version = "9.0";
final String termsOfServiceUrl = "Terms of service";
final String name = "Selim Horri, Imen Touk, Badr Idoudi";
final String url = "https://github.com/SelimHorri/Project-Tracking-System";
final String url = "https://github.com/SelimHorri/project-tracking-system-backend-app";
final String email = "[email protected]";
final Contact contact = new Contact(name, url, email);
final String license = "Apache Licence version 2.0";
final String licenseUrl = "https://apache.org/license.html";

return new ApiInfoBuilder()
.title(title)
.description(description)
.version(version)
.termsOfServiceUrl(termsOfServiceUrl)
.contact(contact)
.license(license)
.licenseUrl(licenseUrl)
.build();
.title(title)
.description(description)
.version(version)
.termsOfServiceUrl(termsOfServiceUrl)
.contact(contact)
.license(license)
.licenseUrl(licenseUrl)
.build();
}


Expand Down

0 comments on commit a757cbd

Please sign in to comment.