diff options
author | Bogumil Zebek <bogumil.zebek@nokia.com> | 2020-04-02 11:10:09 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-04-02 11:10:09 +0000 |
commit | fa33d3f9cf9b613968bf277284841164d392fc21 (patch) | |
tree | 984ef066becbb589110c7a7f5c98577d6e019429 /certService/src/main/java/org/onap/aaf/certservice/api/CertificationController.java | |
parent | 784e89ec062c673d8441ac23d15f04857a3a820e (diff) | |
parent | 9cef3c276b4b8e2e9239c43fe8571c988508af4f (diff) |
Merge "UpdateSwagger annotations and OpenAPI.yaml"
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.java | 8 |
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( |