Device APIs
This page contains detail about the service APIs for Device Master data.
Devices API These APIs includes create and update APIs. These are used by the Administrator Portal for the Create and Update Device functionality.
Device Types API These APIs includes create and update APIs. These are used by the Administrator Portal for the Create and Update Device Type functionality.
Device Specifications API These APIs includes create and update APIs. These are used by the Administrator Portal for the Create and Update Device Specification functionality.
Devices
POST /devices
This service will create a device which will be used in the MOSIP platform. Please find the steps to create primary/secondary languages in Registration Center Create/Update API.
Resource URL
https://{base_url}/v1/masterdata/devices
Resource details
Parameters
Example Request
Example Response
Response codes: 200 Ok
Error Response:
Response codes: 200 Ok
Failure details
PUT /devices
This service will update the list of devices which are used in the MOSIP platform. Please find the steps to create primary/secondary languages in Registration Center Create/Update API
Resource URL
https://{base_url}/v1/masterdata/devices
Resource details
Parameters
Example Request
Example Response
Response codes: 200 Ok
Error Response
Response codes: 200 Ok
Failure details
GET /devices/{languagecode}
This service will provides the service for the list of devices.
Resource URL
GET https://{base_url}/v1/masterdata/devices/{languagecode}
Resource details
Parameters
Example Response
Response codes: 200 Ok
Error Response
Response codes: 200 Ok
Failure details
GET /devices/{languagecode}/{deviceType}
This service will provides the list of devices based on device type and language code.
Resource URL
GET https://{base_url}/v1/masterdata/devices/{languagecode}/{deviceType}
Resource details
Parameters
Example Response
Response codes: 200 Ok
Error Response
Response codes: 200 Ok
Failure details
PUT /devices/decommission/{id}
This service will update existing devices.
Resource URL
PUT /devices/decommission/{id}
Resource details
Parameters
Example Request
-NA-
Example Response
Response codes: 200 Ok
Error Response
Response codes: 200 Ok
Failure details
DELETE /devices/{id}
This service will delete the devices.
Resource URL
DELETE https://{base_url}/v1/masterdata/devices/{id}
Resource details
Parameters
Example Response
Response codes: 200 Ok
Failure Response:
Failure details
POST /devices/search
This service is for the devices search functionality. All the filter parameters are passed and the devices are searched and the matching results are returned.
Resource URL
POST /devices/search
Resource details
Parameters
Filter Values
Please find the filter columns used in search * name * isActive * macAddress * serialNum * mapStatus * deviceTypeName
Example Request
Example Response
Response codes: 200 Ok
POST /devices/filtervalues
This service returns the filter values which are required in the dropdown entries of the filter screen.
Resource URL
POST /devices/filtervalues
Resource details
Parameters
Example Request
Example Response
Response codes: 200 Ok
Device Types
POST /devicetypes
This service will create the list of Device types which are used in the MOSIP platform.
Resource URL
POST /devicetypes
Resource details
Parameters
Example Request
Example Response
Response codes: 200 Ok
Failure details
PUT /devicetypes
This service will update the list of Device types which are used in the MOSIP platform.
Resource URL
PUT /devicetypes
Resource details
Parameters
Example Request
Example Response
Response codes: 200 Ok
Failure details
POST /devicetypes/search
This service is for the devices types search functionality. All the filter parameters are passed and the devices types are searched and the matching results are returned.
Resource URL
POST /devicetypes/search
Resource details
Parameters
Filter Values
Please find the filter columns used in search * name * status
Example Request
Example Response
Response codes: 200 Ok
POST /devicetypes/filtervalues
This service returns the filter values which are required in the dropdown entries of the filter screen.
Resource URL
POST /devicetypes/filtervalues
Resource details
Parameters
Example Request
Example Response
Response codes: 200 Ok
Device Specifications
POST /devicespecifications
This service will create a Device Specification which are used in the MOSIP platform.
Resource URL
https://mosip.io/v1/masterdata/devicespecifications
Resource details
Parameters
Example Request
Example Response
Response codes: 200 Ok
PUT /devicespecifications
This service will update a Device Specification which are used in the MOSIP platform.
Resource URL
PUT /devicespecifications
Resource details
Parameters
Example Request
Example Response
Response codes: 200 Ok
DELETE /devicespecifications/{id}
This service deletes a Device Specification from the Device Specifications master module.
Resource URL
DELETE /devicespecifications/{id}
Resource details
Parameters
Example Response
Response codes: 200 Ok
GET /devicespecifications/{langcode}/{devicetypecode}
This service will provides the list of all Device Specifications for specified language code and device type code .
Resource URL
GET /devicespecifications/{langcode}/{devicetypecode}
Resource details
Parameters
Example Request
Example Response
Response codes: 200 Ok
GET /devicespecifications/{lang_code}
This service will provides the list of all Device Specifications in a specific language.
Resource URL
GET /devicespecifications/{lang_code}
Resource details
Parameters
Example Request
Example Response
Response codes: 200 Ok
Failure Response:
Response codes: 200 Ok
Failure details
POST /devicespecifications/search
This service is for the devices specifications search functionality. All the filter parameters are passed and the device specifications are searched and the matching results are returned.
Resource URL
POST /devicespecifications/search
Resource details
Parameters
Filter Values
Please find the filter columns used in search * name * isActive * deviceTypeName
Example Request
Example Response
Response codes: 200 Ok
POST /devicespecifications/filtervalues
This service returns the filter values which are required in the dropdown entries of the filter screen.
Resource URL
POST /devicespecifications/filtervalues
Resource details
Parameters
Example Request
Example Response
Response codes: 200 Ok
Last updated