@Api(value="Getting Activity Details",description="Get the details of the operations/activities executed by the server on the registered devices during a defined time period.")
@Api(value="Getting Activity Details",description="Get the details of the operations/activities executed by the"+
" server on the registered devices during a defined time period.")
@Scopes(
@Scopes(
scopes={
scopes={
@Scope(
@Scope(
@ -88,7 +89,8 @@ public interface ActivityInfoProviderService {
produces=MediaType.APPLICATION_JSON,
produces=MediaType.APPLICATION_JSON,
httpMethod="GET",
httpMethod="GET",
value="Getting the Details of a Specific Activity",
value="Getting the Details of a Specific Activity",
notes="Retrieve the details of a specific activity/operation, such as the meta information of an operation, and the responses from the devices.",
notes="Retrieve the details of a specific activity/operation, such as the meta information of an "+
"operation, and the responses from the devices.",
tags="Activity Info Provider",
tags="Activity Info Provider",
extensions={
extensions={
@Extension(properties={
@Extension(properties={
@ -160,7 +162,8 @@ public interface ActivityInfoProviderService {
produces=MediaType.APPLICATION_JSON,
produces=MediaType.APPLICATION_JSON,
httpMethod="GET",
httpMethod="GET",
value="Getting Activity Details of Specified Activity/Operation IDs",
value="Getting Activity Details of Specified Activity/Operation IDs",
notes="Retrieve the details of activities or operations, such as the meta information of an operation, and the responses from the devices."+
notes="Retrieve the details of activities or operations, such as the meta information of an operation,"+
" and the responses from the devices."+
"Define the activity or operation IDs as comma separated values.",
"Define the activity or operation IDs as comma separated values.",
@ -611,7 +619,8 @@ public interface DeviceAgentService {
consumes=MediaType.APPLICATION_JSON,
consumes=MediaType.APPLICATION_JSON,
httpMethod="GET",
httpMethod="GET",
value="Getting Specific Operations of a Device",
value="Getting Specific Operations of a Device",
notes="Device operations can be in the IN_PROGRESS, PENDING, COMPLETED, ERROR, or REPEATED status. You can use this API to get a list of all the operations that are in a specific status for a given device.",
notes="Device operations can be in the IN_PROGRESS, PENDING, COMPLETED, ERROR, or REPEATED status. "+
"You can use this API to get a list of all the operations that are in a specific status for a given device.",
tags="Device Agent Management",
tags="Device Agent Management",
extensions={
extensions={
@Extension(properties={
@Extension(properties={
@ -656,7 +665,8 @@ public interface DeviceAgentService {
"Server error occurred while retrieving information requested device.",
"Server error occurred while retrieving information requested device.",
response=ErrorResponse.class)
response=ErrorResponse.class)
})
})
ResponsegetOperationsByDeviceAndStatus(@ApiParam(name="type",value="The device type, such as ios, android, or windows.",required=true)
ResponsegetOperationsByDeviceAndStatus(@ApiParam(name="type",value="The device type, such as ios, android,"+
@ -476,16 +479,16 @@ public interface GroupManagementService {
@ResponseHeader(
@ResponseHeader(
name="ETag",
name="ETag",
description="Entity Tag of the response resource.\n"+
description="Entity Tag of the response resource.\n"+
"Used by caches, or in conditional requests."),
"Used by caches, or in conditional requests."),
@ResponseHeader(
@ResponseHeader(
name="Last-Modified",
name="Last-Modified",
description="Date and time the resource has been modified the last time.\n"+
description="Date and time the resource has been modified the last time.\n"+
"Used by caches, or in conditional requests."),
"Used by caches, or in conditional requests."),
}),
}),
@ApiResponse(
@ApiResponse(
code=304,
code=304,
message="Not Modified. \n Empty body because the client has already the latest version of "+
message="Not Modified. \n Empty body because the client has already the latest version of "+
"the requested resource."),
"the requested resource."),
@ApiResponse(
@ApiResponse(
code=404,
code=404,
message="Group not found.",
message="Group not found.",
@ -499,9 +502,9 @@ public interface GroupManagementService {
response=ErrorResponse.class)
response=ErrorResponse.class)
})
})
ResponsedeleteGroup(@ApiParam(
ResponsedeleteGroup(@ApiParam(
name="groupId",
name="groupId",
value="ID of the group to be deleted.",
value="ID of the group to be deleted.",
required=true)
required=true)
@PathParam("groupId")intgroupId);
@PathParam("groupId")intgroupId);
@Path("/id/{groupId}/share")
@Path("/id/{groupId}/share")
@ -510,12 +513,13 @@ public interface GroupManagementService {
produces=MediaType.APPLICATION_JSON,
produces=MediaType.APPLICATION_JSON,
httpMethod=HTTPConstants.HEADER_POST,
httpMethod=HTTPConstants.HEADER_POST,
value="Sharing a Group",
value="Sharing a Group",
notes="A device group can be shared with different user-roles. The users that belong to that role can then view the groups and the devices in it. Use this API to share a group among user roles.",
notes="A device group can be shared with different user-roles. The users that belong to that role can "+
"then view the groups and the devices in it. Use this API to share a group among user roles.",
@ -527,16 +531,16 @@ public interface GroupManagementService {
@ResponseHeader(
@ResponseHeader(
name="ETag",
name="ETag",
description="Entity Tag of the response resource.\n"+
description="Entity Tag of the response resource.\n"+
"Used by caches, or in conditional requests."),
"Used by caches, or in conditional requests."),
@ResponseHeader(
@ResponseHeader(
name="Last-Modified",
name="Last-Modified",
description="Date and time the resource has been modified the last time.\n"+
description="Date and time the resource has been modified the last time.\n"+
"Used by caches, or in conditional requests."),
"Used by caches, or in conditional requests."),
}),
}),
@ApiResponse(
@ApiResponse(
code=304,
code=304,
message="Not Modified. \n Empty body because the client has already the latest version of "+
message="Not Modified. \n Empty body because the client has already the latest version of "+
"the requested resource."),
"the requested resource."),
@ApiResponse(
@ApiResponse(
code=404,
code=404,
message="Group not found.",
message="Group not found.",
@ -550,9 +554,9 @@ public interface GroupManagementService {
response=ErrorResponse.class)
response=ErrorResponse.class)
})
})
ResponsemanageGroupSharing(@ApiParam(
ResponsemanageGroupSharing(@ApiParam(
name="groupName",
name="groupName",
value="Name of the group to be shared or unshared.",
value="Name of the group to be shared or unshared.",
required=true)
required=true)
@PathParam("groupId")intgroupId,
@PathParam("groupId")intgroupId,
@ApiParam(
@ApiParam(
name="userRoles",
name="userRoles",
@ -566,12 +570,13 @@ public interface GroupManagementService {
produces=MediaType.APPLICATION_JSON,
produces=MediaType.APPLICATION_JSON,
httpMethod=HTTPConstants.HEADER_GET,
httpMethod=HTTPConstants.HEADER_GET,
value="Getting the List of Roles the Group is Shared With",
value="Getting the List of Roles the Group is Shared With",
notes="A device group can be shared with different user-roles. The users that belong to that role can then view the groups and the devices in it. Using this API you get the list of roles the device group is shared with.",
notes="A device group can be shared with different user-roles. The users that belong to that role can"+
"then view the groups and the devices in it. Using this API you get the list of roles the device group is shared with.",
@Api(value="Device Policy Management",description="This API includes the functionality around device policy management")
@Api(value="Device Policy Management",description="This API includes the functionality around device policy "+
"management")
@Path("/policies")
@Path("/policies")
@Produces(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
@ -148,8 +149,10 @@ public interface PolicyManagementService {
produces=MediaType.APPLICATION_JSON,
produces=MediaType.APPLICATION_JSON,
httpMethod="POST",
httpMethod="POST",
value="Adding a Policy",
value="Adding a Policy",
notes="Add a policy using this REST API command. When adding a policy you will have the option of saving the policy or saving and publishing the policy."+
notes="Add a policy using this REST API command. When adding a policy you will have the option of "+
"Using this REST API you are able to save a created Policy and this policy will be in the inactive state.",
"saving the policy or saving and publishing the policy."+
"Using this REST API you are able to save a created Policy and this policy will be in the "+
"inactive state.",
tags="Device Policy Management",
tags="Device Policy Management",
extensions={
extensions={
@Extension(properties={
@Extension(properties={
@ -181,7 +184,8 @@ public interface PolicyManagementService {
),
),
@ApiResponse(
@ApiResponse(
code=303,
code=303,
message="See Other. \n The source can be retrieved from the URL specified in the location header",
message="See Other. \n The source can be retrieved from the URL specified in the "+
"location header",
responseHeaders={
responseHeaders={
@ResponseHeader(
@ResponseHeader(
name="Content-Location",
name="Content-Location",
@ -192,11 +196,13 @@ public interface PolicyManagementService {
response=ErrorResponse.class),
response=ErrorResponse.class),
@ApiResponse(
@ApiResponse(
code=401,
code=401,
message="Not Found. \n The user that is currently logged in is not authorized to add policies.",
message="Not Found. \n The user that is currently logged in is not authorized to add "+
"policies.",
response=ErrorResponse.class),
response=ErrorResponse.class),
@ApiResponse(
@ApiResponse(
code=415,
code=415,
message="Unsupported media type. \n The format of the requested entity was not supported."),
message="Unsupported media type. \n The format of the requested entity was not "+
"supported."),
@ApiResponse(
@ApiResponse(
code=500,
code=500,
message="Internal Server Error. \n "+
message="Internal Server Error. \n "+
@ -248,7 +254,8 @@ public interface PolicyManagementService {
),
),
@ApiResponse(
@ApiResponse(
code=304,
code=304,
message="Not Modified. \n Empty body because the client already has the latest version of the requested resource."),
message="Not Modified. \n Empty body because the client already has the latest version "+
"of the requested resource."),
@ApiResponse(
@ApiResponse(
code=400,
code=400,
message="Bad Request. \n Invalid request or validation error.",
message="Bad Request. \n Invalid request or validation error.",
@ -322,7 +329,8 @@ public interface PolicyManagementService {
),
),
@ApiResponse(
@ApiResponse(
code=304,
code=304,
message="Not Modified. \n Empty body because the client already has the latest version of the requested resource.\n"),
message="Not Modified. \n Empty body because the client already has the latest version "+
"of the requested resource.\n"),
@ApiResponse(
@ApiResponse(
code=404,
code=404,
message="Not Found. \n A specified policy was not found.",
message="Not Found. \n A specified policy was not found.",
@ -400,7 +408,8 @@ public interface PolicyManagementService {
response=ErrorResponse.class),
response=ErrorResponse.class),
@ApiResponse(
@ApiResponse(
code=415,
code=415,
message="Unsupported media type. \n The format of the requested entity was not supported."),
message="Unsupported media type. \n The format of the requested entity was not "+
"supported."),
@ApiResponse(
@ApiResponse(
code=500,
code=500,
message="Internal Server Error. \n "+
message="Internal Server Error. \n "+
@ -451,7 +460,8 @@ public interface PolicyManagementService {
response=ErrorResponse.class),
response=ErrorResponse.class),
@ApiResponse(
@ApiResponse(
code=415,
code=415,
message="Unsupported media type. \n The format of the requested entity was not supported.\n "
message="Unsupported media type. \n The format of the requested entity was not "+
"supported.\n "
+"supported format."),
+"supported format."),
@ApiResponse(
@ApiResponse(
code=500,
code=500,
@ -474,7 +484,8 @@ public interface PolicyManagementService {
produces=MediaType.APPLICATION_JSON,
produces=MediaType.APPLICATION_JSON,
httpMethod="POST",
httpMethod="POST",
value="Activating Policies",
value="Activating Policies",
notes="Publish a policy using this API to bring a policy that is in the inactive state to the active state.",
notes="Publish a policy using this API to bring a policy that is in the inactive state to the active "+
"state.",
tags="Device Policy Management",
tags="Device Policy Management",
extensions={
extensions={
@Extension(properties={
@Extension(properties={
@ -515,7 +526,8 @@ public interface PolicyManagementService {
produces=MediaType.APPLICATION_JSON,
produces=MediaType.APPLICATION_JSON,
httpMethod="POST",
httpMethod="POST",
value="Deactivating Policies",
value="Deactivating Policies",
notes="Unpublish a policy using this API to bring a policy that is in the active state to the inactive state.",
notes="Unpublish a policy using this API to bring a policy that is in the active state to the inactive "+
"state.",
tags="Device Policy Management",
tags="Device Policy Management",
extensions={
extensions={
@Extension(properties={
@Extension(properties={
@ -655,7 +667,8 @@ public interface PolicyManagementService {
),
),
@ApiResponse(
@ApiResponse(
code=304,
code=304,
message="Not Modified. \n Empty body because the client already has the latest version of the requested resource.\n"),
message="Not Modified. \n Empty body because the client already has the latest version "+
"of the requested resource.\n"),
@ApiResponse(
@ApiResponse(
code=404,
code=404,
message="Not Found. \n A specified policy was not found.",
message="Not Found. \n A specified policy was not found.",
@ -482,7 +482,9 @@ public interface RoleManagementService {
produces=MediaType.APPLICATION_JSON,
produces=MediaType.APPLICATION_JSON,
httpMethod="POST",
httpMethod="POST",
value="Adding a combined Role",
value="Adding a combined Role",
notes="You are able to combine two roles that already exist and create one role. For example, you might want a role that has device owner and application management role permissions, you can now select these two roles and create another new role that has all their permissions.",
notes="You are able to combine two roles that already exist and create one role. For example, you "+
"might want a role that has device owner and application management role permissions, you can"+
" now select these two roles and create another new role that has all their permissions.",
tags="Role Management",
tags="Role Management",
extensions={
extensions={
@Extension(properties={
@Extension(properties={
@ -511,7 +513,8 @@ public interface RoleManagementService {
"Used by caches, or in conditional requests.")}),
"Used by caches, or in conditional requests.")}),
@ApiResponse(
@ApiResponse(
code=303,
code=303,
message="See Other. \n The source can be retrieved from the URL specified in the location header.",
message="See Other. \n The source can be retrieved from the URL specified in the location "+
"header.",
responseHeaders={
responseHeaders={
@ResponseHeader(
@ResponseHeader(
name="Content-Location",
name="Content-Location",
@ -597,7 +600,8 @@ public interface RoleManagementService {
name="role",
name="role",
value="The properties required to update a role.\n"+
value="The properties required to update a role.\n"+
"NOTE: Don't change the role and the permissions of the admin user. "+
"NOTE: Don't change the role and the permissions of the admin user. "+
"If you want to try out this API by updating all the properties, create a new role and update the properties accordingly.",
"If you want to try out this API by updating all the properties, create a new role "+
"and update the properties accordingly.",
required=true)RoleInforole,
required=true)RoleInforole,
@ApiParam(
@ApiParam(
name="user-store",
name="user-store",
@ -610,7 +614,8 @@ public interface RoleManagementService {
@ApiOperation(
@ApiOperation(
httpMethod="DELETE",
httpMethod="DELETE",
value="Deleting a Role",
value="Deleting a Role",
notes="Roles become obsolete over time due to various reasons. In a situation where your Organization identifies that a specific role is no longer required, you "+
notes="Roles become obsolete over time due to various reasons. In a situation where your "+
"Organization identifies that a specific role is no longer required, you "+
"can delete a role using this REST API.",
"can delete a role using this REST API.",
tags="Role Management",
tags="Role Management",
extensions={
extensions={
@ -659,8 +664,10 @@ public interface RoleManagementService {
notes="Defining users to a role at the point of creating a new role is optional. "+
notes="Defining users to a role at the point of creating a new role is optional. "+
"You can update the users that belong to a given role after you have created "+
"You can update the users that belong to a given role after you have created "+
"a role using this REST API.\n"+
"a role using this REST API.\n"+
"Example: Your Organization hires 30 new engineers. Updating the role details for each user can "+
"Example: Your Organization hires 30 new engineers. Updating the role details for each user "+
"be cumbersome. Therefore, you can define all the new employees that belong to the engineering "+
"can "+
"be cumbersome. Therefore, you can define all the new employees that belong to the "+
"engineering "+
"role using this API.",
"role using this API.",
tags="Role Management",
tags="Role Management",
extensions={
extensions={
@ -684,7 +691,8 @@ public interface RoleManagementService {
"Used by caches, or in conditional requests."),
"Used by caches, or in conditional requests."),
@ResponseHeader(
@ResponseHeader(
name="Last-Modified",
name="Last-Modified",
description="Date and time the resource has been modified the last time.\n"+
description="Date and time the resource has been modified the last "+
"time.\n"+
"Used by caches, or in conditional requests.")}),
"Used by caches, or in conditional requests.")}),
@ApiResponse(
@ApiResponse(
code=400,
code=400,
@ -696,7 +704,8 @@ public interface RoleManagementService {
response=ErrorResponse.class),
response=ErrorResponse.class),
@ApiResponse(
@ApiResponse(
code=415,
code=415,
message="Unsupported media type. \n The format of the requested entity was not supported.\n"+
message="Unsupported media type. \n The format of the requested entity was not "+
@ -155,7 +155,8 @@ public interface UserManagementService {
produces=MediaType.APPLICATION_JSON,
produces=MediaType.APPLICATION_JSON,
httpMethod="POST",
httpMethod="POST",
value="Adding a User",
value="Adding a User",
notes="WSO2 IoTS supports user management. Add a new user to the WSO2 IoTS user management system via this REST API",
notes="WSO2 IoTS supports user management. Add a new user to the WSO2 IoTS user management system via "+
"this REST API",
tags="User Management",
tags="User Management",
extensions={
extensions={
@Extension(properties={
@Extension(properties={
@ -243,7 +244,8 @@ public interface UserManagementService {
}),
}),
@ApiResponse(
@ApiResponse(
code=304,
code=304,
message="Not Modified. \n Empty body because the client already has the latest version of the requested resource."),
message="Not Modified. \n Empty body because the client already has the latest version of the "+
"requested resource."),
@ApiResponse(
@ApiResponse(
code=404,
code=404,
message="Not Found. \n The specified resource does not exist.",
message="Not Found. \n The specified resource does not exist.",
@ -351,7 +353,8 @@ public interface UserManagementService {
@ApiOperation(
@ApiOperation(
httpMethod="DELETE",
httpMethod="DELETE",
value="Deleting a User",
value="Deleting a User",
notes="When an employee leaves the organization, you can remove the user details from WSO2 IoTS using this REST API.",
notes="When an employee leaves the organization, you can remove the user details from WSO2 IoTS using "+
"this REST API.",
tags="User Management",
tags="User Management",
extensions={
extensions={
@Extension(properties={
@Extension(properties={
@ -378,7 +381,8 @@ public interface UserManagementService {
@ApiParam(
@ApiParam(
name="username",
name="username",
value="Username of the user to be deleted.\n"+
value="Username of the user to be deleted.\n"+
"INFO: If you want to try out this API, make sure to create a new user and then remove that user. Do not remove the admin user.",
"INFO: If you want to try out this API, make sure to create a new user and then remove "+
"that user. Do not remove the admin user.",
required=true,
required=true,
defaultValue="[Create a new user named Jim, and then try out this API.]")
defaultValue="[Create a new user named Jim, and then try out this API.]")
@PathParam("username")Stringusername,
@PathParam("username")Stringusername,
@ -394,7 +398,8 @@ public interface UserManagementService {
produces=MediaType.APPLICATION_JSON,
produces=MediaType.APPLICATION_JSON,
httpMethod="GET",
httpMethod="GET",
value="Getting the Role Details of a User",
value="Getting the Role Details of a User",
notes="A user can be assigned to one or more role in IoTS. Using this REST API you can get the role/roles a user is assigned to.",
notes="A user can be assigned to one or more role in IoTS. Using this REST API you can get the "+
"role/roles a user is assigned to.",
tags="User Management",
tags="User Management",
extensions={
extensions={
@Extension(properties={
@Extension(properties={
@ -422,7 +427,8 @@ public interface UserManagementService {
}),
}),
@ApiResponse(
@ApiResponse(
code=304,
code=304,
message="Not Modified. \n Empty body because the client already has the latest version of the requested resource."),
message="Not Modified. \n Empty body because the client already has the latest version of the "+
"requested resource."),
@ApiResponse(
@ApiResponse(
code=404,
code=404,
message="Not Found. \n The specified resource does not exist.\n",
message="Not Found. \n The specified resource does not exist.\n",
@ -455,7 +461,8 @@ public interface UserManagementService {
produces=MediaType.APPLICATION_JSON,
produces=MediaType.APPLICATION_JSON,
httpMethod="GET",
httpMethod="GET",
value="Getting Details of Users",
value="Getting Details of Users",
notes="You are able to manage users in WSO2 IoTS by adding, updating and removing users. If you wish to get the list of users registered with WSO2 IoTS, you can do so "
notes="You are able to manage users in WSO2 IoTS by adding, updating and removing users. If you wish to"+
" get the list of users registered with WSO2 IoTS, you can do so "
+"using this REST API",
+"using this REST API",
tags="User Management",
tags="User Management",
extensions={
extensions={
@ -492,7 +499,8 @@ public interface UserManagementService {
response=ErrorResponse.class),
response=ErrorResponse.class),
@ApiResponse(
@ApiResponse(
code=500,
code=500,
message="Internal Server Error. \n Server error occurred while fetching the list of WSO2 IoTS users.",
message="Internal Server Error. \n Server error occurred while fetching the list of WSO2 IoTS "+
"users.",
response=ErrorResponse.class)
response=ErrorResponse.class)
})
})
ResponsegetUsers(
ResponsegetUsers(
@ -551,7 +559,8 @@ public interface UserManagementService {
response=ErrorResponse.class),
response=ErrorResponse.class),
@ApiResponse(
@ApiResponse(
code=500,
code=500,
message="Internal Server Error. \n Server error occurred while fetching the total number of users in WSO2 IoTS.",
message="Internal Server Error. \n Server error occurred while fetching the total number of "+
"users in WSO2 IoTS.",
response=ErrorResponse.class)
response=ErrorResponse.class)
})
})
ResponsegetUserCount();
ResponsegetUserCount();
@ -602,7 +611,8 @@ public interface UserManagementService {
produces=MediaType.APPLICATION_JSON,
produces=MediaType.APPLICATION_JSON,
httpMethod="GET",
httpMethod="GET",
value="Searching for a User Name",
value="Searching for a User Name",
notes="If you are unsure of the user name of a user and need to retrieve the details of a specific user, you can "
notes="If you are unsure of the user name of a user and need to retrieve the details of a specific "+
"user, you can "
+"search for that user by giving a character or a few characters in the username. "
+"search for that user by giving a character or a few characters in the username. "
+"You will be given a list of users having the user name in the exact order of the "
+"You will be given a list of users having the user name in the exact order of the "
+"characters you provided.",
+"characters you provided.",
@ -634,14 +644,16 @@ public interface UserManagementService {
}),
}),
@ApiResponse(
@ApiResponse(
code=304,
code=304,
message="Not Modified. \n Empty body because the client already has the latest version of the requested resource."),
message="Not Modified. \n Empty body because the client already has the latest version of the "+
"requested resource."),
@ApiResponse(
@ApiResponse(
code=406,
code=406,
message="Not Acceptable.\n The requested media type is not supported",
message="Not Acceptable.\n The requested media type is not supported",
response=ErrorResponse.class),
response=ErrorResponse.class),
@ApiResponse(
@ApiResponse(
code=500,
code=500,
message="Internal Server Error. \n Server error occurred while fetching the list of users that matched the given filter.",
message="Internal Server Error. \n Server error occurred while fetching the list of users that "+
"matched the given filter.",
response=ErrorResponse.class)
response=ErrorResponse.class)
})
})
ResponsegetUserNames(
ResponsegetUserNames(
@ -727,7 +739,9 @@ public interface UserManagementService {
httpMethod="POST",
httpMethod="POST",
value="Sending Enrollment Invitations to Users",
value="Sending Enrollment Invitations to Users",
notes="Send the users a mail inviting them to enroll their devices using the REST API given below.\n"+
notes="Send the users a mail inviting them to enroll their devices using the REST API given below.\n"+
"Before running the REST API command to send the enrollment invitations to users make sure to configure WSO2 IoTS as explained in step 4, under the WSO2 IoTS general server configurations documentation.",
"Before running the REST API command to send the enrollment invitations to users make sure to "+
"configure WSO2 IoTS as explained in step 4, under the WSO2 IoTS general server configurations "+