Skip to content

Commit 9c13bbc

Browse files
committed
Disables PatchSubmodelElementByPathValueOnly Endpoint
1 parent 0591c79 commit 9c13bbc

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

basyx.submodelrepository/basyx.submodelrepository-http/src/main/java/org/eclipse/digitaltwin/basyx/submodelrepository/http/SubmodelRepositoryApiHTTPController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public ResponseEntity<SubmodelElementValue> getSubmodelElementByPathValueOnlySub
214214

215215
@Override
216216
public ResponseEntity<Void> patchSubmodelElementByPathValueOnlySubmodelRepo(Base64UrlEncodedIdentifier submodelIdentifier, String idShortPath, @Valid SubmodelElementValue body, @Valid String level) {
217-
return handleSubmodelElementValueSetRequest(submodelIdentifier, idShortPath, body);
217+
return new ResponseEntity<Void>(HttpStatus.NOT_IMPLEMENTED);
218218
}
219219

220220
@Override

basyx.submodelservice/basyx.submodelservice-http/src/main/java/org/eclipse/digitaltwin/basyx/submodelservice/http/SubmodelServiceHTTPApiController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@ public ResponseEntity<Void> patchSubmodelElementByPathValueOnly(
192192
@Parameter(in = ParameterIn.QUERY, description = "A server-generated identifier retrieved from pagingMetadata that specifies from which position the result listing should continue", schema = @Schema()) @Valid @RequestParam(value = "cursor", required = false) Base64UrlEncodedCursor cursor,
193193
@Parameter(in = ParameterIn.QUERY, description = "Determines the structural depth of the respective resource content", schema = @Schema(allowableValues = {
194194
"core" }, defaultValue = "core")) @Valid @RequestParam(value = "level", required = false, defaultValue = "core") String level) {
195-
service.setSubmodelElementValue(idShortPath, body);
196-
return new ResponseEntity<Void>(HttpStatus.NO_CONTENT);
195+
return new ResponseEntity<Void>(HttpStatus.NOT_IMPLEMENTED);
197196
}
198197

199198
@Override

0 commit comments

Comments
 (0)