diff --git a/bundles/org.openhab.core.io.rest.core/src/main/java/org/openhab/core/io/rest/core/internal/discovery/InboxResource.java b/bundles/org.openhab.core.io.rest.core/src/main/java/org/openhab/core/io/rest/core/internal/discovery/InboxResource.java index 17b37de5596..c22c0d51910 100644 --- a/bundles/org.openhab.core.io.rest.core/src/main/java/org/openhab/core/io/rest/core/internal/discovery/InboxResource.java +++ b/bundles/org.openhab.core.io.rest.core/src/main/java/org/openhab/core/io/rest/core/internal/discovery/InboxResource.java @@ -96,7 +96,7 @@ * @author Markus Rathgeb - Migrated to JAX-RS Whiteboard Specification * @author Wouter Born - Migrated to OpenAPI annotations * @author Laurent Garnier - Added optional parameter newThingId to approve API - * @author Laurent Garnier - Added API to generate file syntax + * @author Laurent Garnier - Added API to generate syntax */ @Component(service = { RESTResource.class, InboxResource.class }) @JaxrsResource @@ -218,9 +218,9 @@ public Response unignore(@PathParam("thingUID") @Parameter(description = "thingU } @GET - @Path("/{thingUID}/filesyntax") + @Path("/{thingUID}/syntax/generate") @Produces(MediaType.TEXT_PLAIN) - @Operation(operationId = "generateSyntaxForDiscoveryResult", summary = "Generate file syntax for the thing associated to the discovery result.", responses = { + @Operation(operationId = "generateSyntaxForDiscoveryResult", summary = "Generate syntax for the thing associated to the discovery result.", responses = { @ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = String.class))), @ApiResponse(responseCode = "400", description = "Unsupported syntax format."), @ApiResponse(responseCode = "404", description = "Discovery result not found in the inbox or thing type not found.") }) diff --git a/bundles/org.openhab.core.io.rest.core/src/main/java/org/openhab/core/io/rest/core/internal/item/ItemResource.java b/bundles/org.openhab.core.io.rest.core/src/main/java/org/openhab/core/io/rest/core/internal/item/ItemResource.java index 1f0bb800ec7..e8fff709007 100644 --- a/bundles/org.openhab.core.io.rest.core/src/main/java/org/openhab/core/io/rest/core/internal/item/ItemResource.java +++ b/bundles/org.openhab.core.io.rest.core/src/main/java/org/openhab/core/io/rest/core/internal/item/ItemResource.java @@ -143,7 +143,7 @@ * @author Stefan Triller - Added bulk item add method * @author Markus Rathgeb - Migrated to JAX-RS Whiteboard Specification * @author Wouter Born - Migrated to OpenAPI annotations - * @author Laurent Garnier - Added API to generate file syntax + * @author Laurent Garnier - Added API to generate syntax */ @Component @JaxrsResource @@ -923,9 +923,9 @@ public Response getSemanticItem(final @Context UriInfo uriInfo, final @Context H @GET @RolesAllowed({ Role.ADMIN }) - @Path("/filesyntax") + @Path("/syntax/generate") @Produces(MediaType.TEXT_PLAIN) - @Operation(operationId = "generateSyntaxForAllItems", summary = "Generate file syntax for all items.", security = { + @Operation(operationId = "generateSyntaxForAllItems", summary = "Generate syntax for all items.", security = { @SecurityRequirement(name = "oauth2", scopes = { "admin" }) }, responses = { @ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = String.class))), @ApiResponse(responseCode = "400", description = "Unsupported syntax format.") }) @@ -943,9 +943,9 @@ public Response generateSyntaxForAllItems( @GET @RolesAllowed({ Role.ADMIN }) - @Path("/{itemname: [a-zA-Z_0-9]+}/filesyntax") + @Path("/{itemname: [a-zA-Z_0-9]+}/syntax/generate") @Produces(MediaType.TEXT_PLAIN) - @Operation(operationId = "generateSyntaxForItem", summary = "Generate file syntax for an item.", security = { + @Operation(operationId = "generateSyntaxForItem", summary = "Generate syntax for an item.", security = { @SecurityRequirement(name = "oauth2", scopes = { "admin" }) }, responses = { @ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = String.class))), @ApiResponse(responseCode = "400", description = "Unsupported syntax format."), diff --git a/bundles/org.openhab.core.io.rest.core/src/main/java/org/openhab/core/io/rest/core/internal/thing/ThingResource.java b/bundles/org.openhab.core.io.rest.core/src/main/java/org/openhab/core/io/rest/core/internal/thing/ThingResource.java index 18c9552035d..abd0e40c17b 100644 --- a/bundles/org.openhab.core.io.rest.core/src/main/java/org/openhab/core/io/rest/core/internal/thing/ThingResource.java +++ b/bundles/org.openhab.core.io.rest.core/src/main/java/org/openhab/core/io/rest/core/internal/thing/ThingResource.java @@ -146,7 +146,7 @@ * @author Dimitar Ivanov - replaced Firmware UID with thing UID and firmware version * @author Markus Rathgeb - Migrated to JAX-RS Whiteboard Specification * @author Wouter Born - Migrated to OpenAPI annotations - * @author Laurent Garnier - Added API to generate file syntax + * @author Laurent Garnier - Added API to generate syntax */ @Component @JaxrsResource @@ -739,9 +739,9 @@ public Response getFirmwares(@PathParam("thingUID") @Parameter(description = "th @GET @RolesAllowed({ Role.ADMIN }) - @Path("/filesyntax") + @Path("/syntax/generate") @Produces(MediaType.TEXT_PLAIN) - @Operation(operationId = "generateSyntaxForAllThings", summary = "Generate file syntax for all things.", security = { + @Operation(operationId = "generateSyntaxForAllThings", summary = "Generate syntax for all things.", security = { @SecurityRequirement(name = "oauth2", scopes = { "admin" }) }, responses = { @ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = String.class))), @ApiResponse(responseCode = "400", description = "Unsupported syntax format.") }) @@ -760,9 +760,9 @@ public Response generateSyntaxForAllThings( @GET @RolesAllowed({ Role.ADMIN }) - @Path("/{thingUID}/filesyntax") + @Path("/{thingUID}/syntax/generate") @Produces(MediaType.TEXT_PLAIN) - @Operation(operationId = "generateSyntaxForThing", summary = "Generate file syntax for a thing.", security = { + @Operation(operationId = "generateSyntaxForThing", summary = "Generate syntax for a thing.", security = { @SecurityRequirement(name = "oauth2", scopes = { "admin" }) }, responses = { @ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = String.class))), @ApiResponse(responseCode = "400", description = "Unsupported syntax format."),