|
6 | 6 | import com.featureprobe.api.base.doc.PatchApiResponse; |
7 | 7 | import com.featureprobe.api.base.doc.ProjectKeyParameter; |
8 | 8 | import com.featureprobe.api.base.doc.ToggleKeyParameter; |
| 9 | +import com.featureprobe.api.dto.AfterTargetingVersionResponse; |
9 | 10 | import com.featureprobe.api.dto.TargetingRequest; |
10 | 11 | import com.featureprobe.api.dto.TargetingResponse; |
11 | 12 | import com.featureprobe.api.dto.TargetingVersionRequest; |
@@ -67,7 +68,19 @@ public TargetingResponse query( |
67 | 68 | public Page<TargetingVersionResponse> versions( |
68 | 69 | @PathVariable("projectKey") String projectKey, |
69 | 70 | @PathVariable("environmentKey") String environmentKey, |
| 71 | + @PathVariable("toggleKey") String toggleKey, |
70 | 72 | TargetingVersionRequest targetingVersionRequest) { |
71 | | - return targetingService.queryVersions(projectKey, environmentKey, targetingVersionRequest); |
| 73 | + return targetingService.queryVersions(projectKey, environmentKey, toggleKey, targetingVersionRequest); |
| 74 | + } |
| 75 | + |
| 76 | + @GetApiResponse |
| 77 | + @GetMapping("/versions/{version}") |
| 78 | + @Operation(summary = "Get all targeting versions larger than the version。", |
| 79 | + description = "Get all targeting versions larger than the version.") |
| 80 | + public AfterTargetingVersionResponse allAfterVersions(@PathVariable("projectKey") String projectKey, |
| 81 | + @PathVariable("environmentKey") String environmentKey, |
| 82 | + @PathVariable("toggleKey") String toggleKey, |
| 83 | + @PathVariable("version") Long version) { |
| 84 | + return targetingService.queryAfterVersion(projectKey, environmentKey, toggleKey, version); |
72 | 85 | } |
73 | 86 | } |
0 commit comments