Skip to content

Commit

Permalink
Fix descriptions for Devices Configurations methods in SwaggerUI
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Mezzasalma <claudio.mezzasalma@eurotech.com>
  • Loading branch information
Claudio Mezzasalma authored and Coduz committed Dec 10, 2018
1 parent 45fb1d2 commit 99424bc
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -85,7 +85,7 @@ public DeviceConfiguration get(
*/
@PUT
@Consumes({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
@ApiOperation(nickname = "deviceConfigurationUpdate", value = "Updates a device component configuration", notes = "Updates a device component configuration", response = DeviceConfiguration.class)
@ApiOperation(nickname = "deviceConfigurationUpdate", value = "Updates a device configuration", notes = "Updates a device configuration", response = DeviceConfiguration.class)
public Response update(
@ApiParam(value = "The ScopeId of the Device.", required = true, defaultValue = DEFAULT_SCOPE_ID) @PathParam("scopeId") ScopeId scopeId,
@ApiParam(value = "The id of the device", required = true) @PathParam("deviceId") EntityId deviceId,
Expand Down Expand Up @@ -119,7 +119,7 @@ public Response update(
@GET
@Path("{componentId}")
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
@ApiOperation(nickname = "deviceConfigurationComponentGet", value = "Gets the device configurations", notes = "Returns the configuration of a device or the configuration of the OSGi component " +
@ApiOperation(nickname = "deviceConfigurationComponentGet", value = "Gets the configuration of a component on a device", notes = "Returns the configuration of a device or the configuration of the OSGi component " +
"identified with specified PID (service's persistent identity). " +
"In the OSGi framework, the service's persistent identity is defined as the name attribute of the " +
"Component Descriptor XML file; at runtime, the same value is also available " +
Expand Down Expand Up @@ -157,7 +157,7 @@ public DeviceConfiguration getComponent(
@PUT
@Path("{componentId}")
@Consumes({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
@ApiOperation(nickname = "deviceConfigurationComponentUpdate", value = "Updates a device component configuration", notes = "Updates a device component configuration", response = DeviceConfiguration.class)
@ApiOperation(nickname = "deviceConfigurationComponentUpdate", value = "Updates the configuration of a component on a device", notes = "Updates a device component configuration", response = DeviceConfiguration.class)
public Response updateComponent(
@ApiParam(value = "The ScopeId of the Device.", required = true, defaultValue = DEFAULT_SCOPE_ID) @PathParam("scopeId") ScopeId scopeId,
@ApiParam(value = "The id of the device", required = true) @PathParam("deviceId") EntityId deviceId,
Expand Down

0 comments on commit 99424bc

Please sign in to comment.