{
    "openapi": "3.0.0",
    "info": {
        "title": "Device classification API",
        "version": "1.0.0",
        "description": "APIs for fetching classifications of devices from database."
    },
    "paths": {
        "/classification/{deviceType}": {
            "get": {
                "summary": "Identify classification of a given device",
                "description": "get the classification of the device based on the given device type",
                "operationId": "retrievedeviceclassifications",
                "parameters": [
                    {
                        "name": "DeviceType",
                        "in": "query",
                        "description": "Type of device like surgical masks, oxygen masks etc",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "classification of the device",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "classification": {
                                            "type": "string",
                                            "description": "classification for given device"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}