You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: bundles/org.openhab.core.io.rest.core/src/main/java/org/openhab/core/io/rest/core/internal/fileformat/FileFormatResource.java
+16-40
Original file line number
Diff line number
Diff line change
@@ -239,10 +239,10 @@ public Response createFileFormatForAllThings(final @Context HttpHeaders httpHead
239
239
@RolesAllowed({ Role.ADMIN })
240
240
@Path("/things/{thingUID}")
241
241
@Produces("text/vnd.openhab.dsl.thing")
242
-
@Operation(operationId = "createFileFormatForThing", summary = "Create file format for an existing thing in registry.", security = {
242
+
@Operation(operationId = "createFileFormatForThing", summary = "Create file format for an existing thing in things or discovery registry.", security = {
@DefaultValue("true") @QueryParam("hideDefaultParameters") @Parameter(description = "hide the configuration parameters having the default value") booleanhideDefaultParameters,
@@ -257,50 +257,26 @@ public Response createFileFormatForThing(final @Context HttpHeaders httpHeaders,
257
257
ThingUIDaThingUID = newThingUID(thingUID);
258
258
Thingthing = thingRegistry.get(aThingUID);
259
259
if (thing == null) {
260
-
returnResponse.status(Response.Status.NOT_FOUND)
261
-
.entity("Thing with UID '" + thingUID + "' not found in the things registry!").build();
@Operation(operationId = "createFileFormatForDiscoveryResult", summary = "Create file format for an existing thing in discovey registry.", security = {
@DefaultValue("true") @QueryParam("hideDefaultParameters") @Parameter(description = "hide the configuration parameters having the default value") booleanhideDefaultParameters,
0 commit comments