-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c013007
commit a757cbd
Showing
1 changed file
with
16 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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(); | ||
} | ||
|
||
|
||
|