aboutsummaryrefslogtreecommitdiffstats
path: root/certService/src/main/java/org/onap/aaf/certservice/api/CertificationController.java
diff options
context:
space:
mode:
authorBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>2020-04-02 08:27:02 +0200
committerBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>2020-04-02 09:35:57 +0200
commit9cef3c276b4b8e2e9239c43fe8571c988508af4f (patch)
tree8c0d3daaf62f4cf8602236a6536114ff4440ccd6 /certService/src/main/java/org/onap/aaf/certservice/api/CertificationController.java
parent61319d09b01f8dadd1d511f9c8965589c0b9706c (diff)
UpdateSwagger annotations and OpenAPI.yaml
Issue-ID: AAF-1107 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I8b5981385c70a2f6c2521be500e16faee211622b
Diffstat (limited to 'certService/src/main/java/org/onap/aaf/certservice/api/CertificationController.java')
-rw-r--r--certService/src/main/java/org/onap/aaf/certservice/api/CertificationController.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/certService/src/main/java/org/onap/aaf/certservice/api/CertificationController.java b/certService/src/main/java/org/onap/aaf/certservice/api/CertificationController.java
index bf51e49e..c440ec34 100644
--- a/certService/src/main/java/org/onap/aaf/certservice/api/CertificationController.java
+++ b/certService/src/main/java/org/onap/aaf/certservice/api/CertificationController.java
@@ -64,14 +64,14 @@ public class CertificationController {
* @param encodedPrivateKey Private key for CSR, needed for PoP, encoded in Base64 form
* @return JSON containing trusted certificates and certificate chain
*/
- @GetMapping(value = "v1/certificate/{caName}", produces = "application/json; charset=utf-8")
+ @GetMapping(value = "v1/certificate/{caName}", produces = "application/json")
@ApiResponses(value = {
- @ApiResponse(responseCode = "200", description = "certificate successfully signed"),
- @ApiResponse(responseCode = "400", description = "given CSR or/and PK is incorrect",
+ @ApiResponse(responseCode = "200", description = "Certificate successfully signed"),
+ @ApiResponse(responseCode = "400", description = "Given CSR or/and PK is incorrect",
content = @Content(schema = @Schema(implementation = ErrorResponseModel.class))),
@ApiResponse(responseCode = "404", description = "CA not found for given name",
content = @Content(schema = @Schema(implementation = ErrorResponseModel.class))),
- @ApiResponse(responseCode = "500", description = "something went wrong during connecting to cmp client",
+ @ApiResponse(responseCode = "500", description = "Something went wrong during connectiion to CMPv2 server",
content = @Content(schema = @Schema(implementation = ErrorResponseModel.class)))
})
@Operation(