Skip to content

Commit bc67b90

Browse files
author
wlanboy
committed
/correlate und /tls ApiResponses hinzugefügt
1 parent 1000de6 commit bc67b90

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/main/java/com/wlanboy/javahttpclient/controller/DiagnosticController.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ public ResponseEntity<?> getIstioResources(
101101
summary = "URL mit VirtualService/DestinationRule korrelieren",
102102
description = "Prüft ob die angegebene URL durch einen VirtualService abgedeckt ist und welche Routen/DestinationRules zutreffen."
103103
)
104+
@ApiResponses({
105+
@ApiResponse(responseCode = "200", description = "Korrelationsergebnis erfolgreich abgerufen")
106+
})
104107
@GetMapping("/correlate")
105108
public ResponseEntity<Map<String, Object>> correlateUrl(
106109
@Parameter(description = "Ziel-URL", example = "http://my-service.default.svc.cluster.local/api/v1")
@@ -114,6 +117,9 @@ public ResponseEntity<Map<String, Object>> correlateUrl(
114117
summary = "TLS-Zertifikat inspizieren",
115118
description = "Baut eine separate TLS-Verbindung zum Ziel auf und gibt Protokoll, Cipher Suite, Zertifikatskette und SPIFFE/mTLS-Informationen zurück."
116119
)
120+
@ApiResponses({
121+
@ApiResponse(responseCode = "200", description = "TLS-Informationen erfolgreich abgerufen")
122+
})
117123
@GetMapping("/tls")
118124
public ResponseEntity<Map<String, Object>> inspectTls(
119125
@Parameter(description = "Ziel-URL (muss https:// sein)", example = "https://example.com")

0 commit comments

Comments
 (0)