created interfaces for the api classes in order add swagger definitions

revert-70aa11f8
Madhawa 9 years ago
parent f5915cbf5d
commit 36c3a057dc

@ -24,7 +24,7 @@ import javax.ws.rs.Consumes;
import javax.ws.rs.Produces; import javax.ws.rs.Produces;
/** /**
* AuthenticationImpl related REST-API interface. * Authentication related REST-API interface.
*/ */
@Api(value = "Authentication") @Api(value = "Authentication")
@Produces({ "application/json", "application/xml" }) @Produces({ "application/json", "application/xml" })

@ -25,7 +25,7 @@ import javax.ws.rs.*;
import javax.ws.rs.core.Response; import javax.ws.rs.core.Response;
/** /**
* General Tenant ConfigurationImpl REST-API implementation. * General Tenant Configuration REST-API implementation.
* All end points support JSON, XMl with content negotiation. * All end points support JSON, XMl with content negotiation.
*/ */
@Api(value = "Configuration", description = "General Tenant Configuration implementation") @Api(value = "Configuration", description = "General Tenant Configuration implementation")

@ -36,7 +36,7 @@ public interface Device {
* Get all devices. We have to use accept all the necessary query parameters sent by datatable. * Get all devices. We have to use accept all the necessary query parameters sent by datatable.
* Hence had to put lot of query params here. * Hence had to put lot of query params here.
* *
* @return DeviceImpl List * @return Device List
*/ */
@GET @GET
@ApiOperation( @ApiOperation(
@ -63,7 +63,7 @@ public interface Device {
/** /**
* Fetch device details for a given device type and device Id. * Fetch device details for a given device type and device Id.
* *
* @return DeviceImpl wrapped inside Response * @return Device wrapped inside Response
*/ */
@GET @GET
@ApiOperation( @ApiOperation(
@ -81,8 +81,8 @@ public interface Device {
/** /**
* Fetch device details of a given user. * Fetch device details of a given user.
* *
* @param user UserImpl Name * @param user User Name
* @return DeviceImpl * @return Device
*/ */
@GET @GET
@Path("user/{user}") @Path("user/{user}")
@ -91,8 +91,8 @@ public interface Device {
/** /**
* Fetch device count of a given user. * Fetch device count of a given user.
* *
* @param user UserImpl Name * @param user User Name
* @return DeviceImpl * @return Device
*/ */
@GET @GET
@Path("user/{user}/count") @Path("user/{user}/count")
@ -117,7 +117,7 @@ public interface Device {
/** /**
* Get the list of devices that matches with the given name. * Get the list of devices that matches with the given name.
* *
* @param deviceName DeviceImpl name * @param deviceName Device name
* @param tenantDomain Callee tenant domain * @param tenantDomain Callee tenant domain
* @return list of devices. * @return list of devices.
*/ */

@ -31,7 +31,7 @@ import javax.ws.rs.Produces;
import javax.ws.rs.core.Response; import javax.ws.rs.core.Response;
/** /**
* DeviceNotificationImpl management REST-API implementation. * DeviceNotification management REST-API implementation.
* All end points support JSON, XMl with content negotiation. * All end points support JSON, XMl with content negotiation.
*/ */
@Api(value = "DeviceNotification") @Api(value = "DeviceNotification")

@ -37,9 +37,9 @@ import javax.ws.rs.core.Response;
public interface Feature { public interface Feature {
/** /**
* Get all features for Mobile DeviceImpl Type * Get all features for Mobile Device Type
* *
* @return FeatureImpl * @return Feature
*/ */
@GET @GET
@Path("/{type}") @Path("/{type}")

@ -34,7 +34,7 @@ public interface License {
/** /**
* This method returns the license text related to a given device type and language code. * This method returns the license text related to a given device type and language code.
* *
* @param deviceType DeviceImpl type, ex: android, ios * @param deviceType Device type, ex: android, ios
* @param languageCode Language code, ex: en_US * @param languageCode Language code, ex: en_US
* @return Returns the license text * @return Returns the license text
*/ */
@ -47,8 +47,8 @@ public interface License {
/** /**
* This method is used to add license to a specific device type. * This method is used to add license to a specific device type.
* *
* @param deviceType DeviceImpl type, ex: android, ios * @param deviceType Device type, ex: android, ios
* @param license LicenseImpl object * @param license License object
* @return Returns the acknowledgement for the action * @return Returns the acknowledgement for the action
*/ */
@POST @POST

@ -36,7 +36,7 @@ import javax.ws.rs.core.Response;
import java.util.List; import java.util.List;
/** /**
* This represents the JAX-RS services of UserImpl related functionality. * This represents the JAX-RS services of User related functionality.
*/ */
@Api(value = "User") @Api(value = "User")
public interface User { public interface User {

@ -2,19 +2,19 @@
<!-- <!--
~ Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. ~ Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
~ ~
~ WSO2 Inc. licenses this file to you under the Apache LicenseImpl, ~ WSO2 Inc. licenses this file to you under the Apache License,
~ Version 2.0 (the "LicenseImpl"); you may not use this file except ~ Version 2.0 (the "License"); you may not use this file except
~ in compliance with the LicenseImpl. ~ in compliance with the License.
~ You may obtain a copy of the LicenseImpl at ~ You may obtain a copy of the License at
~ ~
~ http://www.apache.org/licenses/LICENSE-2.0 ~ http://www.apache.org/licenses/LICENSE-2.0
~ ~
~ Unless required by applicable law or agreed to in writing, ~ Unless required by applicable law or agreed to in writing,
~ software distributed under the LicenseImpl is distributed on an ~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the LicenseImpl for the ~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations ~ specific language governing permissions and limitations
~ under the LicenseImpl. ~ under the License.
--> -->
<!-- This file contains the list of permissions that are associated with URL end points <!-- This file contains the list of permissions that are associated with URL end points
@ -29,7 +29,7 @@
--> -->
<PermissionConfiguration> <PermissionConfiguration>
<APIVersion></APIVersion> <APIVersion></APIVersion>
<!-- DeviceImpl related APIs --> <!-- Device related APIs -->
<Permission> <Permission>
<name>Device Management</name> <name>Device Management</name>
@ -262,7 +262,7 @@
<url>/devices/user/*</url> <url>/devices/user/*</url>
<method>GET</method> <method>GET</method>
</Permission> </Permission>
<!-- End of DeviceImpl related APIs --> <!-- End of Device related APIs -->
<!-- Notification related APIs --> <!-- Notification related APIs -->
<Permission> <Permission>
@ -373,7 +373,7 @@
</Permission> </Permission>
<!--<Permission>--> <!--<Permission>-->
<!--<name>Get Applications For DeviceImpl Type</name>--> <!--<name>Get Applications For Device Type</name>-->
<!--<path>/device-mgt/operations/application/view</path>--> <!--<path>/device-mgt/operations/application/view</path>-->
<!--<url>/operations/*</url>--> <!--<url>/operations/*</url>-->
<!--<method>GET</method>--> <!--<method>GET</method>-->
@ -381,7 +381,7 @@
<!--</Permission>--> <!--</Permission>-->
<!-- End of Operations related APIs --> <!-- End of Operations related APIs -->
<!-- FeatureImpl related APIs --> <!-- Feature related APIs -->
<Permission> <Permission>
<name>List policies</name> <name>List policies</name>
<path>/device-mgt/admin/policies/list</path> <path>/device-mgt/admin/policies/list</path>
@ -410,9 +410,9 @@
<method>GET</method> <method>GET</method>
</Permission> </Permission>
<!-- End of FeatureImpl related APIs --> <!-- End of Feature related APIs -->
<!-- RoleImpl related APIs --> <!-- Role related APIs -->
<Permission> <Permission>
<name>List roles</name> <name>List roles</name>
<path>/device-mgt/admin/roles/list</path> <path>/device-mgt/admin/roles/list</path>
@ -504,9 +504,9 @@
<url>/roles/count</url> <url>/roles/count</url>
<method>GET</method> <method>GET</method>
</Permission> </Permission>
<!-- End of RoleImpl related APIs --> <!-- End of Role related APIs -->
<!-- UserImpl related APIs --> <!-- User related APIs -->
<Permission> <Permission>
<name>List users</name> <name>List users</name>
<path>/device-mgt/admin/users/list</path> <path>/device-mgt/admin/users/list</path>
@ -660,9 +660,9 @@
<url>/users/authorize</url> <url>/users/authorize</url>
<method>POST</method> <method>POST</method>
</Permission> </Permission>
<!-- End of UserImpl related APIs --> <!-- End of User related APIs -->
<!-- PolicyImpl related APIs --> <!-- Policy related APIs -->
<Permission> <Permission>
<name>Add Policy</name> <name>Add Policy</name>
<path>/device-mgt/admin/policies/add</path> <path>/device-mgt/admin/policies/add</path>
@ -816,9 +816,9 @@
<url>/policies/*/*</url> <url>/policies/*/*</url>
<method>GET</method> <method>GET</method>
</Permission> </Permission>
<!-- End of PolicyImpl related APIs --> <!-- End of Policy related APIs -->
<!-- ProfileImpl related APIs --> <!-- Profile related APIs -->
<Permission> <Permission>
<name>Add policy</name> <name>Add policy</name>
<path>/device-mgt/admin/policies/add</path> <path>/device-mgt/admin/policies/add</path>
@ -839,7 +839,7 @@
<url>/profiles/*</url> <url>/profiles/*</url>
<method>DELETE</method> <method>DELETE</method>
</Permission> </Permission>
<!-- End of ProfileImpl related APIs --> <!-- End of Profile related APIs -->
<!--Start of the device search and information --> <!--Start of the device search and information -->
@ -860,7 +860,7 @@
<!--End of the device search and information --> <!--End of the device search and information -->
<!-- LicenseImpl related APIs --> <!-- License related APIs -->
<!--<Permission>--> <!--<Permission>-->
<!--<name>Get license</name>--> <!--<name>Get license</name>-->
<!--<path>/device-mgt/license/view</path>--> <!--<path>/device-mgt/license/view</path>-->
@ -875,9 +875,9 @@
<!--<method>POST</method>--> <!--<method>POST</method>-->
<!----> <!---->
<!--</Permission>--> <!--</Permission>-->
<!-- End of LicenseImpl related APIs --> <!-- End of License related APIs -->
<!-- ConfigurationImpl related APIs --> <!-- Configuration related APIs -->
<Permission> <Permission>
<name>View configuration</name> <name>View configuration</name>
<path>/device-mgt/admin/platform-configs/view</path> <path>/device-mgt/admin/platform-configs/view</path>
@ -899,9 +899,9 @@
<method>PUT</method> <method>PUT</method>
</Permission> </Permission>
<!-- End of ConfigurationImpl related APIs --> <!-- End of Configuration related APIs -->
<!-- CertificateImpl related APIs --> <!-- Certificate related APIs -->
<Permission> <Permission>
<name>Save certificate in the database</name> <name>Save certificate in the database</name>
<path>/device-mgt/android/certificate/save</path> <path>/device-mgt/android/certificate/save</path>
@ -920,7 +920,7 @@
<url>/certificates/*</url> <url>/certificates/*</url>
<method>DELETE</method> <method>DELETE</method>
</Permission> </Permission>
<!-- End of CertificateImpl related APIs --> <!-- End of Certificate related APIs -->
<!-- Group related APIs --> <!-- Group related APIs -->
<Permission> <Permission>

@ -3,19 +3,19 @@
<!-- <!--
~ Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. ~ Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
~ ~
~ WSO2 Inc. licenses this file to you under the Apache LicenseImpl, ~ WSO2 Inc. licenses this file to you under the Apache License,
~ Version 2.0 (the "LicenseImpl"); you may not use this file except ~ Version 2.0 (the "License"); you may not use this file except
~ in compliance with the LicenseImpl. ~ in compliance with the License.
~ You may obtain a copy of the LicenseImpl at ~ You may obtain a copy of the License at
~ ~
~ http://www.apache.org/licenses/LICENSE-2.0 ~ http://www.apache.org/licenses/LICENSE-2.0
~ ~
~ Unless required by applicable law or agreed to in writing, ~ Unless required by applicable law or agreed to in writing,
~ software distributed under the LicenseImpl is distributed on an ~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the LicenseImpl for the ~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations ~ specific language governing permissions and limitations
~ under the LicenseImpl. ~ under the License.
--> -->
<!-- <!--

Loading…
Cancel
Save