From: seanbeirne Date: Tue, 25 Nov 2025 12:55:55 +0000 (+0000) Subject: ProvMnS Get to support additional type in return X-Git-Tag: 3.7.3~1^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F14%2F142514%2F1;p=cps.git ProvMnS Get to support additional type in return - application/vnd.3gpp.object-tree-hierarchical+json now supported Issue-ID: CPS-3066 Change-Id: I2dc85459987f0f58e850a04ab4b09e34a7b2e62a Signed-off-by: seanbeirne --- diff --git a/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/ProvMnS.java b/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/ProvMnS.java index d9840d5514..2004e93ce4 100644 --- a/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/ProvMnS.java +++ b/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/ProvMnS.java @@ -87,19 +87,23 @@ public interface ProvMnS { + "only the selected attributes or sub-attributes are returned. " + "The response message body is constructed according to the " + "hierarchical response construction method (TS 32.158 [15]).", content = { - @Content(mediaType = "application/json", schema = @Schema(implementation = Resource.class)) + @Content(mediaType = "application/json", schema = @Schema(implementation = Resource.class)), + @Content(mediaType = "application/vnd.3gpp.object-tree-hierarchical+json", + schema = @Schema(implementation = Resource.class)) }), @ApiResponse(responseCode = "422", description = "Invalid Path Exception", content = { @Content(mediaType = "application/json", schema = @Schema(implementation = ErrorMessage.class)) }), @ApiResponse(responseCode = "default", description = "Error case.", content = { - @Content(mediaType = "application/json", schema = @Schema(implementation = ErrorResponseGet.class)) + @Content(mediaType = "application/json", schema = @Schema(implementation = ErrorResponseGet.class)), + @Content(mediaType = "application/vnd.3gpp.object-tree-hierarchical+json", + schema = @Schema(implementation = ErrorResponseGet.class)) }) } ) @GetMapping( value = "v1/**", - produces = { "application/json"} + produces = { "application/json", "application/vnd.3gpp.object-tree-hierarchical+json"} ) ResponseEntity getMoi(