mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
removing swagger definition from the soap endpoints
This commit is contained in:
parent
e81d2b1c20
commit
8655da595e
@ -21,11 +21,14 @@ package org.wso2.carbon.device.mgt.mobile.windows.api.services;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import org.w3c.dom.Document;
|
import org.w3c.dom.Document;
|
||||||
|
import org.wso2.carbon.apimgt.annotations.api.Scope;
|
||||||
|
import org.wso2.carbon.apimgt.annotations.api.Scopes;
|
||||||
import org.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementException;
|
import org.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementException;
|
||||||
import org.wso2.carbon.device.mgt.mobile.windows.api.common.PluginConstants;
|
import org.wso2.carbon.device.mgt.mobile.windows.api.common.PluginConstants;
|
||||||
import org.wso2.carbon.device.mgt.mobile.windows.api.common.exceptions.WindowsConfigurationException;
|
import org.wso2.carbon.device.mgt.mobile.windows.api.common.exceptions.WindowsConfigurationException;
|
||||||
import org.wso2.carbon.device.mgt.mobile.windows.api.common.exceptions.WindowsDeviceEnrolmentException;
|
import org.wso2.carbon.device.mgt.mobile.windows.api.common.exceptions.WindowsDeviceEnrolmentException;
|
||||||
import org.wso2.carbon.device.mgt.mobile.windows.api.operations.WindowsOperationException;
|
import org.wso2.carbon.device.mgt.mobile.windows.api.operations.WindowsOperationException;
|
||||||
|
import org.wso2.carbon.device.mgt.mobile.windows.api.operations.util.Constants;
|
||||||
|
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.POST;
|
import javax.ws.rs.POST;
|
||||||
@ -38,25 +41,17 @@ import javax.ws.rs.core.Response;
|
|||||||
/**
|
/**
|
||||||
* Interface for Windows 10 Device management phase.
|
* Interface for Windows 10 Device management phase.
|
||||||
*/
|
*/
|
||||||
@SwaggerDefinition(
|
@Path("/devicemgt")
|
||||||
info = @Info(
|
@Scopes(
|
||||||
version = "1.0.0",
|
scopes = {
|
||||||
title = "",
|
@Scope(
|
||||||
extensions = {
|
name = "Pending operations",
|
||||||
@Extension(properties = {
|
description = "Register an Android device",
|
||||||
@ExtensionProperty(name = "name", value = "Windows 10 Device management"),
|
key = "perm:windows:enroll",
|
||||||
@ExtensionProperty(name = "context",
|
permissions = {"/device-mgt/devices/enroll/windows"}
|
||||||
value = "/api/device-mgt/windows/v1.0/management/devicemgt"),
|
)
|
||||||
})
|
|
||||||
}
|
|
||||||
),
|
|
||||||
tags = {
|
|
||||||
@Tag(name = "windows", description = "")
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
//@Api(value = "Windows 10 Device management",
|
|
||||||
// description = "This carries all the resources related to Windows 10 management session message flow.")
|
|
||||||
@Path("/devicemgt")
|
|
||||||
public interface DeviceManagementService {
|
public interface DeviceManagementService {
|
||||||
@Path("/pending-operations")
|
@Path("/pending-operations")
|
||||||
@POST
|
@POST
|
||||||
@ -68,14 +63,10 @@ public interface DeviceManagementService {
|
|||||||
notes = "Using this API to fetching more information to enroll the Device and " +
|
notes = "Using this API to fetching more information to enroll the Device and " +
|
||||||
"getting pending operations.",
|
"getting pending operations.",
|
||||||
tags = "Windows Device Management Administrative Service",
|
tags = "Windows Device Management Administrative Service",
|
||||||
authorizations = {
|
extensions = {
|
||||||
@Authorization(
|
@Extension(properties = {
|
||||||
value = "permission",
|
@ExtensionProperty(name = Constants.SCOPE, value = "perm:android:enroll")
|
||||||
scopes = {@AuthorizationScope(
|
})
|
||||||
scope = "/device-mgt/devices/enroll/windows",
|
|
||||||
description = "Getting pending operations and " +
|
|
||||||
"device information to enroll the device")}
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@ -42,24 +42,7 @@ import javax.xml.ws.soap.SOAPBinding;
|
|||||||
/**
|
/**
|
||||||
* Interface for Discovery service related operations.
|
* Interface for Discovery service related operations.
|
||||||
*/
|
*/
|
||||||
@SwaggerDefinition(
|
|
||||||
info = @Info(
|
|
||||||
version = "1.0.0",
|
|
||||||
title = "",
|
|
||||||
extensions = {
|
|
||||||
@Extension(properties = {
|
|
||||||
@ExtensionProperty(name = "name", value = "Windows Discovery Service"),
|
|
||||||
@ExtensionProperty(name = "context",
|
|
||||||
value = "/api/device-mgt/windows/v1.0/discovery/post"),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
),
|
|
||||||
tags = {
|
|
||||||
@Tag(name = "windows", description = "")
|
|
||||||
}
|
|
||||||
)
|
|
||||||
@Api(value = "Windows Discovery Service",
|
|
||||||
description = "This carries all the resources related to Windows Discovery service.")
|
|
||||||
@WebService(targetNamespace = PluginConstants.DISCOVERY_SERVICE_TARGET_NAMESPACE,
|
@WebService(targetNamespace = PluginConstants.DISCOVERY_SERVICE_TARGET_NAMESPACE,
|
||||||
name = "IDiscoveryService")
|
name = "IDiscoveryService")
|
||||||
@BindingType(value = SOAPBinding.SOAP12HTTP_BINDING)
|
@BindingType(value = SOAPBinding.SOAP12HTTP_BINDING)
|
||||||
|
|||||||
@ -86,4 +86,13 @@ public class DiscoveryRequest implements Serializable {
|
|||||||
this.osEdition = osEdition;
|
this.osEdition = osEdition;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
public String getApplicationVersion() {
|
||||||
|
return applicationVersion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setApplicationVersion(String applicationVersion) {
|
||||||
|
this.applicationVersion = applicationVersion;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
@ -35,25 +35,6 @@ import javax.xml.ws.ResponseWrapper;
|
|||||||
import javax.xml.ws.soap.SOAPBinding;
|
import javax.xml.ws.soap.SOAPBinding;
|
||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
|
|
||||||
@SwaggerDefinition(
|
|
||||||
info = @Info(
|
|
||||||
version = "1.0.0",
|
|
||||||
title = "",
|
|
||||||
extensions = {
|
|
||||||
@io.swagger.annotations.Extension(properties = {
|
|
||||||
@ExtensionProperty(name = "name", value = "Windows 10 Enrollment Service"),
|
|
||||||
@ExtensionProperty(name = "context",
|
|
||||||
value = "/api/device-mgt/windows/v1.0/deviceenrolment/enrollment"),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
),
|
|
||||||
tags = {
|
|
||||||
@Tag(name = "windows", description = "")
|
|
||||||
}
|
|
||||||
)
|
|
||||||
//@Api(value = "Windows 10 Enrollment Service",
|
|
||||||
// description = "This carries all the resources related to Windows enrollment.")
|
|
||||||
|
|
||||||
@WebService(targetNamespace = PluginConstants.DEVICE_ENROLLMENT_SERVICE_TARGET_NAMESPACE, name = "enrollment")
|
@WebService(targetNamespace = PluginConstants.DEVICE_ENROLLMENT_SERVICE_TARGET_NAMESPACE, name = "enrollment")
|
||||||
@BindingType(value = SOAPBinding.SOAP12HTTP_BINDING)
|
@BindingType(value = SOAPBinding.SOAP12HTTP_BINDING)
|
||||||
public interface EnrollmentService {
|
public interface EnrollmentService {
|
||||||
|
|||||||
@ -37,24 +37,7 @@ import javax.ws.rs.core.Response;
|
|||||||
/**
|
/**
|
||||||
* Interface for Windows 8.1 enrollment flow.
|
* Interface for Windows 8.1 enrollment flow.
|
||||||
*/
|
*/
|
||||||
@SwaggerDefinition(
|
|
||||||
info = @Info(
|
|
||||||
version = "1.0.0",
|
|
||||||
title = "",
|
|
||||||
extensions = {
|
|
||||||
@Extension(properties = {
|
|
||||||
@ExtensionProperty(name = "name", value = "Windows 8.1 Device Management Service"),
|
|
||||||
@ExtensionProperty(name = "context",
|
|
||||||
value = "/api/device-mgt/windows/v1.0/syncml"),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
),
|
|
||||||
tags = {
|
|
||||||
@Tag(name = "windows", description = "")
|
|
||||||
}
|
|
||||||
)
|
|
||||||
@Api(value = "Windows 8.1 Device Management Service",
|
|
||||||
description = "This carries all the resources related to Windows syncml message flow.")
|
|
||||||
@Path("/devicemanagement")
|
@Path("/devicemanagement")
|
||||||
public interface SyncmlService {
|
public interface SyncmlService {
|
||||||
|
|
||||||
|
|||||||
@ -41,24 +41,6 @@ import javax.xml.ws.soap.SOAPBinding;
|
|||||||
* Interface for MS-XCEP implementation.
|
* Interface for MS-XCEP implementation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@SwaggerDefinition(
|
|
||||||
info = @Info(
|
|
||||||
version = "1.0.0",
|
|
||||||
title = "",
|
|
||||||
extensions = {
|
|
||||||
@io.swagger.annotations.Extension(properties = {
|
|
||||||
@ExtensionProperty(name = "name", value = "Windows Enrollment policy Service"),
|
|
||||||
@ExtensionProperty(name = "context",
|
|
||||||
value = "/api/device-mgt/windows/v1.0/certificatepolicy/xcep"),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
),
|
|
||||||
tags = {
|
|
||||||
@Tag(name = "windows", description = "")
|
|
||||||
}
|
|
||||||
)
|
|
||||||
@Api(value = "Windows Enrollment policy Service",
|
|
||||||
description = "This carries all the resources related to Windows enrollment policy.")
|
|
||||||
@WebService(targetNamespace = PluginConstants.CERTIFICATE_ENROLLMENT_POLICY_SERVICE_TARGET_NAMESPACE,
|
@WebService(targetNamespace = PluginConstants.CERTIFICATE_ENROLLMENT_POLICY_SERVICE_TARGET_NAMESPACE,
|
||||||
name = "IPolicy")
|
name = "IPolicy")
|
||||||
@BindingType(value = SOAPBinding.SOAP12HTTP_BINDING)
|
@BindingType(value = SOAPBinding.SOAP12HTTP_BINDING)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user