Generating a response to a client device in an internet of things domain
AssigneeHewlett Packard Enterprise Development LP
InventorHugh Hamill
Life of this patent
Estimating the term…
Abstract
The present disclosure relates to a method, system, and medium to generate a response to a client device in an IoT domain. The disclosed system can receive a request, which includes a resource parameter in a plural form, from a client device to retrieve information from an IoT API. The system then derives a singular form of the resource parameter. Also, the system inquires to the IoT API whether the singular form of the resource parameter is a valid object type in an IoT domain. If so, the system retrieves information about a plurality of objects corresponding to the valid object type, and generates a response comprising the information about the plurality of objects to the client device.
Claims20
A method comprising:
- receiving, by a computing device, a request from a client device to retrieve information from an Internet of Things (IoT) Application Programming Interface (API), the request comprising a resource parameter in a plural form;
- deriving, by the computing device, a singular form of the resource parameter;
- inquiring, by the computing device, to the IoT API whether the singular form of the resource parameter is a valid object type in an IoT domain;
- in response to the singular form of the resource parameter being the valid object type, retrieving, by the computing device, information about a plurality of objects corresponding to the valid object type;
- and
- generating, by the computing device, a response comprising the information about the plurality of objects to the client device.
A system comprising:
- a memory;
- a hardware processor executing instructions in the memory to:
- receive a request from a client device to retrieve information corresponding to a collection of resources from an Internet of Things (IoT) Application Programming Interface (API), the request comprising a resource type parameter, an object identifier, and a message type parameter;
- derive an object type name based on a singular form of the resource type parameter;
- derive a message name based on a singular form of the message type parameter;
- retrieve an object from the IoT API based on the object identifier in the request;
- retrieve a message type from the IoT API based on the object type and the message name;
- retrieve a message from the IoT API based on the message type and the object identifier;
- and
- generate a response comprising the information about the message to the client device.
A non-transitory machine-readable storage medium encoded with instructions executable by at least one processor of a network device, the machine-readable storage medium comprising instructions to:
- receive a request from a client device to retrieve information from an Internet of Things (IoT) Application Programming Interface (API), the request comprising a resource parameter in a plural form, an object identifier, and a related resource parameter;
- derive an object name from a singular form of the resource parameter and a related object name from a singular form of the related resource parameter;
- retrieve a relationship type using a first object type corresponding to the object name as a source qualifier and a second object type corresponding to the related object name as a target qualifier;
- retrieve a relationship from the IoT API using the relationship type and the object identifier;
- retrieve an object whose identifier equals to a target identifier in the relationship;
- and
- generate a response comprising the information about the object to the client device.
Dependencies are inferred from the claim text.