aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPrudence Au <prudence.au@amdocs.com>2019-09-04 14:12:09 -0400
committerPrudence Au <prudence.au@amdocs.com>2019-09-04 14:12:09 -0400
commitf8d36209b972fddd500ef958b1df453376ff8703 (patch)
treeb7d13500d03852c92e635ea10180f6ef04c18426 /src
parent8c43901ef7ade0fcaf5304541f69cbafff61d6b7 (diff)
Use v2 of io.swagger to avoid the use of jQuery
Issue-ID: LOG-1101 Signed-off-by: Prudence Au <prudence.au@amdocs.com> Change-Id: I91535ecf43869aa8d1ce5a86278c0b61fda7040b
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/onap/pomba/contextbuilder/sdc/service/rs/RestService.java24
1 files changed, 10 insertions, 14 deletions
diff --git a/src/main/java/org/onap/pomba/contextbuilder/sdc/service/rs/RestService.java b/src/main/java/org/onap/pomba/contextbuilder/sdc/service/rs/RestService.java
index 91a3569..6b2b8e3 100644
--- a/src/main/java/org/onap/pomba/contextbuilder/sdc/service/rs/RestService.java
+++ b/src/main/java/org/onap/pomba/contextbuilder/sdc/service/rs/RestService.java
@@ -17,10 +17,8 @@
*/
package org.onap.pomba.contextbuilder.sdc.service.rs;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-import io.swagger.annotations.ApiResponse;
-import io.swagger.annotations.ApiResponses;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.responses.ApiResponse;
import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.Path;
@@ -31,7 +29,6 @@ import javax.ws.rs.core.Response;
import org.onap.pomba.contextbuilder.sdc.exception.ToscaCsarException;
-@Api
@Path("{version: v2}/service")
@Produces({MediaType.APPLICATION_JSON})
public interface RestService {
@@ -40,15 +37,14 @@ public interface RestService {
@GET
@Path("/context")
@Produces({ MediaType.APPLICATION_JSON })
- @ApiOperation(
- value = "Retrieve SDC CSAR file for a give UUID",
- notes = "This method returns SDC CSAR encoded value. ",
- response = Response.class)
- @ApiResponses(value = {
- @ApiResponse(code = 404, message = "Service not available"),
- @ApiResponse(code = 400, message = "Bad request"),
- @ApiResponse(code = 401, message = "Unauthorized"),
- @ApiResponse(code = 500, message = "Unexpected Runtime error") })
+ @Operation(
+ summary = "Retrieve SDC CSAR file for a give UUID",
+ description = "This method returns SDC CSAR encoded value. ",
+ responses = {
+ @ApiResponse(responseCode = "404", description = "Service not available"),
+ @ApiResponse(responseCode = "400", description = "Bad request"),
+ @ApiResponse(responseCode = "401", description = "Unauthorized"),
+ @ApiResponse(responseCode = "500", description = "Unexpected Runtime error") })
public Response getContext(
@HeaderParam("Authorization") String authorization,
@HeaderParam("X-FromAppId") String xFromAppId,