ProvMnS Get to support additional type in return 14/142514/1
authorseanbeirne <sean.beirne@est.tech>
Tue, 25 Nov 2025 12:55:55 +0000 (12:55 +0000)
committerseanbeirne <sean.beirne@est.tech>
Tue, 25 Nov 2025 13:09:44 +0000 (13:09 +0000)
- application/vnd.3gpp.object-tree-hierarchical+json now supported

Issue-ID: CPS-3066
Change-Id: I2dc85459987f0f58e850a04ab4b09e34a7b2e62a
Signed-off-by: seanbeirne <sean.beirne@est.tech>
cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/ProvMnS.java

index d9840d5..2004e93 100644 (file)
@@ -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<Object> getMoi(