-
Notifications
You must be signed in to change notification settings - Fork 0
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
Pavel Radkevich
committed
Jul 27, 2023
1 parent
facf0b6
commit 0ba5030
Showing
6 changed files
with
58 additions
and
3 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
36 changes: 36 additions & 0 deletions
36
src/main/java/pl/pingwit/pingwitdemospring/config/swagger/OpenAPIConfig.java
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package pl.pingwit.pingwitdemospring.config.swagger; | ||
|
||
import io.swagger.v3.oas.models.OpenAPI; | ||
import io.swagger.v3.oas.models.info.Contact; | ||
import io.swagger.v3.oas.models.info.Info; | ||
import io.swagger.v3.oas.models.info.License; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
/** | ||
* @author Pavel Radkevich | ||
* @since 27.07.23 | ||
*/ | ||
@Configuration | ||
public class OpenAPIConfig { | ||
|
||
@Bean | ||
public OpenAPI myOpenAPI() { | ||
|
||
Contact contact = new Contact(); | ||
contact.setEmail("[email protected]"); | ||
contact.setName("Pavel Radkevich"); | ||
contact.setUrl("https://github.com/RadkevichP/"); | ||
|
||
License mitLicense = new License().name("MIT License").url("https://choosealicense.com/licenses/mit/"); | ||
|
||
Info info = new Info() | ||
.title("Pingwit Shop API") | ||
.version("1.0") | ||
.contact(contact) | ||
.description("API for Pingwit Shop System") | ||
.license(mitLicense); | ||
|
||
return new OpenAPI().info(info); | ||
} | ||
} |
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
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
1 change: 1 addition & 0 deletions
1
src/main/java/pl/pingwit/pingwitdemospring/converter/OrderConverter.java
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
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