mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Update service to remove /delete from url and to update swagger api annotations
This commit is contained in:
parent
9d7ad19f57
commit
4a70d8e17d
@ -594,7 +594,7 @@ public interface DeviceTypeManagementAdminService {
|
||||
|
||||
|
||||
@DELETE
|
||||
@Path("/{deviceTypeName}/delete")
|
||||
@Path("/{deviceTypeName}")
|
||||
@ApiOperation(
|
||||
httpMethod = "DELETE",
|
||||
value = "Delete device type.",
|
||||
@ -618,9 +618,12 @@ public interface DeviceTypeManagementAdminService {
|
||||
code = 401,
|
||||
message = "Unauthorized.\n The unauthorized access to the requested resource.",
|
||||
response = ErrorResponse.class),
|
||||
@ApiResponse(
|
||||
code = 404,
|
||||
message = "Not Found. \n Device type trying to delete does not exist"),
|
||||
@ApiResponse(
|
||||
code = 406,
|
||||
message = "Not Acceptable.\n The requested media type is not supported"),
|
||||
message = "Not Acceptable. \n The requested media type is not supported"),
|
||||
@ApiResponse(
|
||||
code = 500,
|
||||
message = "Internal Server Error. \n Server error occurred while deleting device type.",
|
||||
|
||||
@ -320,7 +320,7 @@ public class DeviceTypeManagementAdminServiceImpl implements DeviceTypeManagemen
|
||||
|
||||
@Override
|
||||
@DELETE
|
||||
@Path("/{deviceTypeName}/delete")
|
||||
@Path("/{deviceTypeName}")
|
||||
public Response deleteDeviceType(@PathParam("deviceTypeName") String deviceTypeName) {
|
||||
try {
|
||||
DeviceManagementProviderService deviceManagementProviderService =
|
||||
|
||||
Loading…
Reference in New Issue
Block a user