Device Type and Subtype APIs
This page contains detail about the Device type and Device subtype API's.
Device Types
POST /devicetypes
This service will create the Device Types which are used in the MOSIP platform.
Resource URL
POST /devicetypes
Resource details
Parameters
Example Request
{
"id": "string",
"metadata": {},
"request": {
"code": "DeviceTypeCode",
"name": "Finger",
"descr": "Device Type Finger"
},
"requesttime": "2018-12-10T06:12:52.994Z",
"version": "string"
}
Example Response
Success Response
{
"id": "string",
"version": "string",
"metadata": {},
"responsetime": "2018-12-10T06:12:52.994Z",
"errors": null,
"response": [
{
"code": "Finger",
"name": "Device Type Finger"
}
],
}
Response Code: 200 Ok
Error Response
{
"id": "string",
"version": "string",
"metadata": {},
"responsetime": "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",
"errors": [
{
"errorCode": "string",
"message": "string"
}
],
"response": null
}
Response Code: 200 Ok
Failure details
GET /devicetypes/{code}
This service will provides the service to get the device types.
Resource URL
GET /devicetypes/{code}
Resource details