-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop_back_core' into fix/phone_duplicate_validation-…
…B-core-#652
- Loading branch information
Showing
6 changed files
with
53 additions
and
9 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...main/java/site/timecapsulearchive/core/global/config/GlobalHeaderOperationCustomizer.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,24 @@ | ||
package site.timecapsulearchive.core.global.config; | ||
|
||
import io.swagger.v3.oas.annotations.enums.ParameterIn; | ||
import io.swagger.v3.oas.models.Operation; | ||
import io.swagger.v3.oas.models.media.StringSchema; | ||
import io.swagger.v3.oas.models.parameters.Parameter; | ||
import org.springdoc.core.customizers.GlobalOperationCustomizer; | ||
import org.springframework.stereotype.Component; | ||
import org.springframework.web.method.HandlerMethod; | ||
|
||
@Component | ||
public class GlobalHeaderOperationCustomizer implements GlobalOperationCustomizer { | ||
|
||
@Override | ||
public Operation customize(Operation operation, HandlerMethod handlerMethod) { | ||
Parameter customHeaderVersion = new Parameter().in(ParameterIn.HEADER.toString()) | ||
.name("Default-Key") | ||
.description("api key").schema(new StringSchema()) | ||
.required(false); | ||
|
||
operation.addParametersItem(customHeaderVersion); | ||
return operation; | ||
} | ||
} |
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
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
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