A computer system may include a processor configured to search storage locations for candidate Application Programming Interface (api) files that are to be published on an internet of things (IoT) platform configured to interact with IoT devices for different device manufacturers. The processor may generate a list of candidate apis based on searching the storage locations; generate a list of published platform apis published on the IoT platform; compare the list of candidate apis with the list of published platform apis; generate an api create list based on the comparing; generate an api update list based on the comparing; create one or more candidate apis from the generated api create list on a testing system; and update one or more candidate apis from the generated api update list on the testing system.
|
9. A computer system comprising:
a memory device storing instructions executable by one or more processors; and
a processor configured to execute the instructions to:
search a plurality of storage locations for candidate Application Programming Interface (api) files that are to be published on an internet of things (IoT) platform configured to interact with IoT devices associated with a plurality of different device manufacturers;
generate a list of candidate apis based on searching the plurality of storage locations, wherein when generating the list of candidate apis, the processor is further configured to identify the candidate apis based on identifying one or more mandatory fields associated with platform apis published on the IoT platform;
generate a list of published platform apis published on the IoT platform;
compare the generated list of candidate apis with the generated list of published platform apis using one or more fields designated as api identifying information fields and using one or more fields designated as detailed information fields;
generate an api create list based on the comparing using the one or more fields designated as api identifying information fields, wherein the api create list includes apis from the candidate list that are to be created, and wherein when generating the api create list based on the comparing, the processor is further configured to:
select a particular candidate api from the generated list of candidate apis;
determine that the selected particular candidate api has no matching name and version in the list of published platform apis based on the one or more fields designated as api identifying information fields; and
add the selected particular candidate api to the api create list based on determining that the selected particular candidate api has no matching name and version in the list of published platform apis;
generate an api update list based on the comparing using the one or more fields designated as detailed information fields, wherein the api update list includes apis from the candidate list that correspond to apis from the list of platform apis that are to be updated, and wherein when generating the api update list based on the comparing, the processor is further configured to:
determine that the selected particular candidate api has a matching name and version in the list of published platform apis with a particular platform api in the list of published platform apis based on the one or more fields designated as api identifying information fields;
determine that the selected particular candidate api and the particular published platform api have a mismatch in the one or more fields designated as detailed information fields; and
add the selected particular candidate api to the api update list based on determining that the selected particular candidate api and the particular published platform api have a mismatch in the one or more fields designated as detailed information fields;
create one or more candidate apis from the generated api create list on a testing system;
update one or more candidate apis from the generated api update list on the testing system;
test an api from the generated api create list or the generated api update list using the testing system;
determine that the testing of the api was successful;
publish the api to the IoT platform based on determining that the testing of the api was successful;
receive, from a requesting device, a first request for a target IoT device associated with the published api; and
send a second request to the target IoT device using the published api based on the received first request.
1. A method performed by a computer system, the method comprising:
searching, by the computer system, a plurality of storage locations for candidate Application Programming Interface (api) files that are to be published on an internet of things (IoT) platform configured to interact with IoT devices associated with a plurality of different device manufacturers;
generating, by the computer system, a list of candidate apis based on searching the plurality of storage locations, wherein generating the list of candidate apis includes identifying the candidate apis based on identifying one or more mandatory fields associated with platform apis published on the IoT platform;
generating, by the computer system, a list of published platform apis published on the IoT platform;
comparing, by the computer system, the generated list of candidate apis with the generated list of published platform apis using one or more fields designated as api identifying information fields and using one or more fields designated as detailed information fields;
generating, by the computer system, an api create list based on the comparing using the one or more fields designated as api identifying information fields, wherein the api create list includes apis from the candidate list that are to be created, and wherein generating the api create list includes:
selecting a particular candidate api from the generated list of candidate apis;
determining that the selected particular candidate api has no matching name and version in the list of published platform apis based on the one or more fields designated as api identifying information; and
adding the selected particular candidate api to the api create list based on determining that the selected particular candidate api has no matching name and version in the list of published platform apis;
generating, by the computer system, an api update list based on the comparing using the one or more fields designated as detailed information fields, wherein the api update list includes apis from the candidate list that correspond to apis from the list of platform apis that are to be updated, and wherein generating the api update list includes:
determining that the selected particular candidate api has a matching name and version in the list of published platform apis with a particular platform api in the list of published platform apis based on the one or more fields designated as api identifying information fields;
determining that the selected particular candidate api and the particular published platform api have a mismatch in the one or more fields designated as detailed information fields; and
adding the selected particular candidate api to the api update list based on determining that the selected particular candidate api and the particular published platform api have a mismatch in the one or more fields designated as detailed information fields;
creating, by the computer system, one or more candidate apis from the generated api create list on a testing system;
updating, by the computer system, one or more candidate apis from the generated api update list on the testing system;
testing, by the computer device, an api from the generated api create list or the generated api update list using the testing system;
determining, by the computer device, that the testing of the api was successful;
publishing, by the computer device, the api to the IoT platform based on determining that the testing of the api was successful;
receiving, by the computer device and from a requesting device, a first request for a target IoT device associated with the published api; and
sending, by the computer device, a second request to the target IoT device using the published api based on the received first request.
16. A non-transitory memory device storing instructions executable by one or more processors, the non-transitory memory device comprising:
one or more instructions to search a plurality of storage locations for candidate Application Programming Interface (api) files that are to be published on an internet of things (IoT) platform configured to interact with IoT devices associated with a plurality of different device manufacturers;
one or more instructions to generate a list of candidate apis based on searching the plurality of storage locations, wherein the one or more instructions to generate the list of candidate apis further include one or more instructions to identify the candidate apis based on identifying one or more mandatory fields associated with platform apis published on the IoT platform;
one or more instructions to generate a list of published platform apis published on the IoT platform;
one or more instructions to compare the generated list of candidate apis with the generated list of published platform apis using one or more fields designated as api identifying information fields and using one or more fields designated as detailed information fields;
one or more instructions to generate an api create list based on the comparing using the one or more fields designated as api identifying information fields, wherein the api create list includes apis from the candidate list that are to be created, and wherein the one or more instructions to generate the api create list include:
one or more instructions to select a particular candidate api from the generated list of candidate apis;
one or more instructions to determine that the selected particular candidate api has no matching name and version in the list of published platform apis based on the one or more fields designated as api identifying information fields; and
one or more instructions to add the selected particular candidate api to the api create list based on determining that the selected particular candidate api has no matching name and version in the list of published platform apis;
one or more instructions to generate an api update list based on the comparing using the one or more fields designated as detailed information fields, wherein the api update list includes apis from the candidate list that correspond to apis from the list of platform apis that are to be updated, and wherein the one or more instructions to generate the api update list include:
one or more instructions to determine that the selected particular candidate api has a matching name and version in the list of published platform apis with a particular platform api in the list of published platform apis based on the one or more fields designated as api identifying information fields;
one or more instructions to determine that the selected particular candidate api and the particular published platform api have a mismatch in the one or more fields designated as detailed information fields; and
one or more instructions to add the selected particular candidate api to the api update list based on determining that the selected particular candidate api and the particular published platform api have a mismatch in the one or more fields designated as detailed information fields;
one or more instructions to create one or more candidate apis from the generated api create list on a testing system;
one or more instructions to update one or more candidate apis from the generated api update list on the testing system;
one or more instructions to test an api from the generated api create list or the generated api update list using the testing system;
one or more instructions to determine that the testing of the api was successful;
one or more instructions to publish the api to the IoT platform based on determining that the testing of the api was successful;
one or more instructions to receive, from a requesting device, a first request for a target IoT device associated with the published api; and
one or more instructions to send a second request to the target IoT device using the published api based on the received first request.
2. The method of
parsing the identified candidate apis into a format that includes the one or more mandatory fields and one or more optional attribute fields.
3. The method of
a visibility field that identifies whether an api is public or private;
a description field that includes information describing the api;
a tags field that includes one or more tags associated with the api;
a Uniform Resource Locator (URL) pattern associated with the api;
Hypertext Transfer Protocol verbs associated with the api;
a URL endpoint associated with the api;
a supported transport type associated with the api;
one or more data throttling tiers associated with the api; or
information identifying a default version of the api.
4. The method of
determining that the selected particular candidate api has a matching name and version in the list of platform apis with a particular published platform api in the list of published platform apis based on the one or more fields designated as api identifying information fields;
determining that the selected particular candidate api and the particular published platform api do not have a mismatch in each of the one or more fields designated as detailed information fields; and
removing the particular published platform api from the list of published platform apis, in response to determining that the selected particular candidate api and the particular published platform api do not have a mismatch in each of the one or more fields designated as detailed information fields.
5. The method of
generating a remove api list by adding any remaining published platform apis to the remove api list after all candidate apis from the generated list of candidate apis have been compared with all published platform apis in the generated list of published platform apis.
6. The method of
selecting a particular candidate api from the generated api create list;
publishing the selected particular candidate api to the testing system; and
mapping a first plurality of fields from the selected particular candidate api to a second plurality of fields for a device model api, wherein the device model api is independent of a manufacturer implementation of a target device associated with the device model api.
7. The method of
testing the api using one or more automated testing scripts.
8. The method of
selecting a particular candidate api from the generated api update list;
identifying one or more fields of the selected particular candidate api that differ from a published version of the selected particular candidate api; and
updating the identified one or more fields of the selected particular candidate api in the published version of the selected particular candidate api.
10. The computer system of
select a particular candidate api from the generated api create list;
publish the selected particular candidate api to the testing system; and
map a first plurality of fields from the selected particular candidate api to a second plurality of fields for a device model api, wherein the device model api is independent of a manufacturer implementation of a target device associated with the device model api.
11. The computer system of
test the api using one or more automated testing scripts.
12. The computer system of
select a particular candidate api from the generated api update list;
identify one or more fields of the selected particular candidate api that differ from a published version of selected particular candidate api; and
update the identified one or more fields of the selected particular candidate api in the published version of the selected particular candidate api.
13. The computer system of
test another api from the generated api create list or the generated api update list using the testing system;
determine that the testing of the other api was not successful; and
mark the other api as inactive, in response to determining that the testing of the other api was not successful.
14. The computer system of
15. The computer system of
a visibility field that identifies whether an api is public or private;
a description field that includes information describing the api;
a tags field that includes one or more tags associated with the api;
a Uniform Resource Locator (URL) pattern associated with the api;
Hypertext Transfer Protocol verbs associated with the api;
a URL endpoint associated with the api;
a supported transport type associated with the api;
one or more data throttling tiers associated with the api; or
information identifying a default version of the api.
17. The method of
testing another api from the generated api create list or the generated api update list using the testing system;
determining that the testing of the other api was not successful; and
marking the other api as inactive, in response to determining that the testing of the other api was not successful.
18. The non-transitory memory device of
one or more instructions to test another api from the generated api create list or the generated api update list using the testing system;
one or more instructions to determine that the testing of the other api was not successful; and
one or more instructions to mark the other api as inactive, in response to determining that the testing of the other api was not successful.
19. The non-transitory memory device of
one or more instructions to select a particular candidate api from the generated api create list;
one or more instructions to publish the selected particular candidate api to the testing system; and
one or more instructions to map a first plurality of fields from the selected particular candidate api to a second plurality of fields for a device model api, wherein the device model api is independent of a manufacturer implementation of a target device associated with the device model api.
20. The non-transitory memory device of
one or more instructions to test the api using one or more automated testing scripts.
|
In order to satisfy the needs and demands of users of mobile communication devices, providers of wireless communication services continue to improve and expand available services and networks. One aspect of such improvements includes the development of wireless access networks for Internet of Things (IoT) applications. A provider's wireless access networks may communicate with a large number of IoT devices of various types from different manufacturers. The provider may make available to customers various functionalities to manage and communicate with the IoT devices connected to the provider's wireless access network.
The following detailed description refers to the accompanying drawings. The same reference numbers in different drawings identify the same or similar elements.
A wireless communication device, also referred to herein as a user equipment (UE), may be configured to participate in machine-to-machine (M2M) communication for Internet of Things (IoT) applications. For example, the wireless communication device may be configured to communicate using machine-type communication (MTC), a type of M2M communication standardized by the 3rd Generation Partnership Project (3GPP) for Long Term Evolution (LTE) wireless access networks. Two devices may communicate via MTC using wireless signals without requiring user participation. A provider of wireless communication services may manage wireless access networks that include a large number of M2M devices. The M2M devices may be configured to communicate with other M2M devices or with UE devices operated by users. The provider may further manage a system that includes an IoT platform that enables manufacturers, developers, and users to create, update, manage, and/or use technologies and functionalities for communicating, accessing, managing, controlling, and/or otherwise using M2M devices.
A device may interact with an M2M device using one or more Application Programming Interfaces (APIs). An API may include a set of definitions for a structured format for interacting with an M2M device to perform a particular function. For example, an API may specify a particular format for a particular command or request for an M2M device, for a group of M2M devices, and/or for an account associated with an M2M device or a group of M2M devices. The particular format may specify one or more required parameters and/or provide for one or more optional parameters, and may include a format for each parameter. An application running on a user device or another M2M device may use the API to execute the particular command or request with respect to the M2M device, group of M2M devices, and/or the account associated with an M2M device or group of M2M devices.
The IoT platform system may publish available APIs for M2M devices and may enable manufacturers of M2M devices and/or third-party developers to publish APIs on the platform system. As the number of M2M devices grows, the number of published APIs and the number of APIs waiting to be published will continue to increase. Moreover, the published APIs will continue to be updated and/or deleted by manufacturers of M2M devices and/or third party developers. Manual analysis to determine whether an API needs to be created, updates, or deleted may be time consuming and labor intensive.
Implementations described herein relate to automated API publication for an IoT platform system. The IoT platform system may be configured to interact with IoT devices associated with many different device manufacturers and may store published platform APIs associated with the IoT devices. A published platform API may be publicly accessible and may include information related to the API and how to access, call, execute, and/or otherwise use the API. For example, the published platform API may include information identifying the name and version of the API, as well as one or more contexts of the API, one or more tags associated with the API, a description of the API, visibility information identifying whether the API is public or private, information identifying a Uniform Resource Locator (URL) associated with the API, information identifying a URL endpoint used to access the API, supported transport types for the API, available throttling tiers for the API, information identifying a default version of the API, and/or other types of information associated with the API.
The IoT platform system may map published APIs to device model APIs for particular device types that are independent of particular manufacturer implementations. When an M2M device sends requests using an API to another M2M device, or when a user sends a request to an M2M device via an application, the request may be generated as a manufacturer-independent request using a device model API. Alternatively, a manufacturer-specific request may be converted to a manufacturer-independent device model API request. Thus, the device model APIs may function as a universal language between different device implementations and may be independent of a manufacturer implementation of a target device associated with the device model API. When an API is published on the IoT platform system, the API may be mapped by the IoT platform system to a device model API for a device type associated with the API.
Before a candidate API is published on the IoT platform system, the candidate API may need to be published on a testing system that includes a virtual model of the IoT platform system and tested to ensure that the API functions correctly and/or that mapping from the API to a device model API functions correctly. A testing system may automatically search multiple storage locations for candidate API files that are to be published on the IoT platform system. A candidate API may include information that is to be included in a published API and may be stored in one of the multiple storage locations. The candidate API may be identified based on one or more mandatory fields, associated with published platform APIs, in a specified format. The storage locations may include, for example, a developer system used to develop APIs. Additionally or alternatively, the storage locations may include cloud storage locations in a cloud center associated with the provider and/or other storage locations designated for storing candidate APIs. The testing system may generate a list of candidate APIs based on searching the storage locations and may parse the identified candidate APIs into a format that includes one or more mandatory fields and/or one or more optional attribute fields.
The testing system may further generate a list of published platform APIs published on the IoT platform system, may compare the generated list of candidate APIs with the generated list of published platform APIs. Based on the comparison, the testing system may generate: an API create list that includes APIs that are to be created; an API update list that includes APIs that correspond to APIs to be updated, and a remove API list of APIs that are to be removed from the list of published platform APIs.
The API create list may be generated by selecting a candidate API from the generated list of candidate APIs, determining whether the selected candidate API has no matching name and version in the list of published platform APIs, and, if so, adding the selected candidate API to the API create list.
The API update list may be generated by determining whether the selected candidate API has a matching name and version in the list of published platform APIs (for a particular published platform API in the list of platform APIs); and if so, determining whether the selected candidate API and the particular published platform API have a mismatch in one or more detailed information fields. If there is a mismatch, the candidate API is added to the API update list. If there is no mismatch in any of the detailed information fields between the selected candidate API and the particular published platform API, then the particular published platform API is removed from the list of published platform APIs.
After each candidate API from the list of candidate APIs is selected and compared to the list of published platform APIs, any remaining APIs in the list of published platform APIs are added to the API remove list because the remaining published platform APIs do not differ from a version that is already published and therefore no updating or testing needs to be performed with respect to the remaining published platform APIs.
The testing system may then publish the APIs from the three lists on the testing system and, as part of the publication, may perform a corresponding action on the APIs based on which list each APIs has been placed. The APIs from the remove API list may be removed from the testing system, since no action needs to be performed on the APIs included in the remove API list.
The APIs from the create API list may be created on the testing system. The testing system may select an API from the create API list, may publish the selected API to the testing system, and may perform a mapping from the selected API to a device model API. The mapping may include, for example, mapping parameters of the selected API to corresponding parameters of a device model API. Furthermore, the testing system may test the created API using one or more automated testing scripts. If the testing system determines that the testing of the created API is successful, the created API may be published to the IoT platform system.
The APIs from the update API list may be updated on the testing system. For example, the testing system may select an API from the update API list, may publish the selected API to the testing system and may compare each field of the selected API with a corresponding field in the matching published platform API to identify fields that differ. Each identified differing field may be updated based on the information in the selected API and testing of the updated fields may be performed using one or more automated testing scripts. If the testing system determines that the testing of the updated API is successful, the updated API may be published to the IoT platform system.
While
Developer device 110 may be used by a developer to access API storage system 150 and generate one or more candidate APIs that are to be published on IoT platform system 170. Developer device 110, and/or requesting device 120, may each include a handheld wireless communication device (e.g., a mobile phone, a smart phone, a phablet device, etc.); a wearable computer device (e.g., a head-mounted display computer device, a head-mounted camera device, a wristwatch computer device, etc.), a global positioning system (GPS) device; a laptop computer, a tablet computer, or another type of portable computer; a media playing device; a portable gaming system; a home appliance device; a home monitoring device; and/or any other type of computer device with wireless communication capabilities.
Requesting device 120 may use an API published on IoT platform system 170 to execute a request or command associated with target device 130. Target device 130, and requesting device 120 may each include a wireless device configured to communicate with other devices over an M2M interface. For example, target device 130 and/or requesting device 120 may each include a sensor device, such as an environment monitoring sensor (e.g., a temperature sensor, a humidity sensor, a pressure sensor, a wind speed sensor, a motion detector, a light detector, a camera, a microphone, etc.); a health monitoring sensor (e.g., a blood pressure monitoring device, a blood glucose monitoring device, etc.); a location sensor (e.g., a Global Positioning System receiver, etc.); a position or tilt sensor (e.g., an accelerometer, a gyroscope, etc.); a sensor monitoring one or more functions of a vehicle (e.g., a climate sensor, an engine sensor, etc.), a sensor monitoring an electronic sign (e.g., an electronic billboard, etc.), a sensor monitoring a manufacturing system (e.g., a robot arm sensor, an assembly line sensor, etc.), a security system sensor (e.g., a camera, a motion sensor, a window sensor, a lock sensor, a proximity sensor, etc.), a power system sensor (e.g., a smart grid monitoring device, etc.), a sensor monitoring a financial transaction system (e.g., a point-of-sale terminal, a vending machine, etc.), and/or another type of electronic sensor device.
Additionally or alternatively, target device 130 and/or requesting device 120 may each include an actuator device. The actuator device may include an electrical and/or mechanical mechanism to convert electrical and/or magnetic energy into motion. For example, the actuator device may include a microelectromechanical (MEMS) actuator, an electric motor, a piezoelectric actuator, a pneumatic actuator, an electroactive polymer device, a thermal bimorph device, and/or another type of actuator device.
Additionally or alternatively, target device 130 and/or requesting device 120 may each include a microcontroller, such as a microcontroller controlling one or more actuators, a microcontroller controlling one or more sensors, a microcontroller that performs data processing, and/or another type of electronic device with a microcontroller. Examples of such devices may include a health monitoring device (e.g., a blood pressure monitoring device, a blood glucose monitoring device, etc.), an asset tracking device (e.g., a system monitoring the geographic location of a fleet of vehicles, etc.), a device controlling one or more functions of a vehicle (e.g., a climate control system, an engine monitoring system, etc.), a device controlling an electronic sign (e.g., an electronic billboard, etc.), a device controlling a manufacturing system (e.g., a robot arm, an assembly line, etc.), a device controlling a security system (e.g., a camera, a motion sensor, a window sensor, etc.), a device controlling a power system (e.g., a smart grid monitoring device, etc.), a device controlling a financial transaction system (e.g., a point-of-sale terminal, a vending machine, a parking meter, etc.), and/or another type of electronic device.
Network 140 may include a local area network (LAN), a wide area network (WAN), a metropolitan area network (MAN), an optical network, a cable television network, a satellite network, one or more wireless networks (e.g., a Code Division Multiple Access (CDMA) network, a general packet radio service (GPRS) network, and/or an LTE network), an ad hoc network, a telephone network (e.g., the Public Switched Telephone Network (PSTN) or a cellular network), an intranet, the Internet, or a combination of networks. The one or more access networks may include base stations 145. Each base station 145 may enable devices to communicate with network 140 using wireless signals. For example, base station 145 may include an eNodeB that enables a device, such as developer device 110, requesting device 120, and/or target device 130 to communicate, via wireless signals and an LTE wireless access network, with network 140.
API storage system 150 may include one or more computer devices, such as server devices, which store candidate APIs that are to be published on IoT platform system 170. As an example, API storage system 150 may include a storage location designated by IoT platform system 170 as a location for storing candidate APIs. For example, API storage system 150 may include one or more devices in a cloud center that provide cloud storage for customers associated with the provider of communication services that manages IoT platform system 170. As another example, API storage system 150 may include a developer system accessed by developer device 110 and used to develop candidate APIs by a particular developer. As yet another example, API storage system 150 may include an API development platform managed by the provider associated with IoT platform system 170.
Testing system 160 may include one or more computer devices, such as server devices, which perform automatic publishing and testing of candidate APIs. For example, testing system 160 may access, at particular intervals or in response to a command or request, multiple API storage systems 150 to identify candidate APIs. Testing system 160 may further access IoT platform system 170 to identify published APIs. Testing system 160 may compare the candidate APIs to the published APIs to identify APIs that need to be created and APIs that need to be updated. Testing system 160 may generate a virtual model of IoT platform system 170, may publish the candidate APIs to the virtual model, and may test the candidate APIs. If the tests of the candidate APIs are successful, testing system 160 may publish the candidate APIs to IoT platform system 170.
IoT platform system 170 may include one or more computer devices, such as server devices, which store and maintain published APIs for M2M devices. For example, IoT platform system 170 may include documentation that explains how to use a particular API and may store code, and/or may point to code, which processes API requests for published APIs. Furthermore, IoT platform system 170 may maintain device model APIs that provide standardized APIs for particular device types. M2M devices or applications on user devices may use the device model APIs to make requests to other M2M devices. IoT platform system 170 may translate the device model APIs to published APIs associated with particular M2M devices. Moreover, IoT platform system 170 may be configured to interact with user devices, such as mobile wireless devices, to develop applications that interact with IoT platform system 170 and use APIs published on IoT platform system 170.
Although
Bus 210 may include a path that permits communication among the components of device 200. Processor 220 may include any type of single-core processor, multi-core processor, microprocessor, latch-based processor, and/or processing logic (or families of processors, microprocessors, and/or processing logics) that interprets and executes instructions. In other embodiments, processor 220 may include an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), and/or another type of integrated circuit or processing logic.
Memory 230 may include any type of dynamic storage device that may store information and/or instructions, for execution by processor 220, and/or any type of non-volatile storage device that may store information for use by processor 220. For example, memory 230 may include a random access memory (RAM) or another type of dynamic storage device, a read-only memory (ROM) device or another type of static storage device, a content addressable memory (CAM), a magnetic and/or optical recording memory device and its corresponding drive (e.g., a hard disk drive, optical drive, etc.), and/or a removable form of memory, such as a flash memory.
Input device 240 may allow an operator to input information into device 200. Input device 240 may include, for example, a keyboard, a mouse, a pen, a microphone, a remote control, an audio capture device, an image and/or video capture device, a touch-screen display, and/or another type of input device. In some embodiments, device 200 may be managed remotely and may not include input device 240. In other words, device 200 may be “headless” and may not include a keyboard, for example.
Output device 250 may output information to an operator of device 200. Output device 250 may include a display, a printer, a speaker, and/or another type of output device. For example, device 200 may include a display, which may include an LCD for displaying content to the customer. In some embodiments, device 200 may be managed remotely and may not include output device 250. In other words, device 200 may be “headless” and may not include a display, for example.
Communication interface 260 may include a transceiver that enables device 200 to communicate with other devices and/or systems via wireless communications (e.g., radio frequency, infrared, and/or visual optics, etc.), wired communications (e.g., conductive wire, twisted pair cable, coaxial cable, transmission line, fiber optic cable, and/or waveguide, etc.), or a combination of wireless and wired communications. Communication interface 260 may include a transmitter that converts baseband signals to radio frequency (RF) signals and/or a receiver that converts RF signals to baseband signals. Communication interface 260 may be coupled to an antenna for transmitting and receiving RF signals.
Communication interface 260 may include a logical component that includes input and/or output ports, input and/or output systems, and/or other input and output components that facilitate the transmission of data to other devices. For example, communication interface 260 may include a network interface card (e.g., Ethernet card) for wired communications and/or a wireless network interface (e.g., a WiFi) card for wireless communications. Communication interface 260 may also include a universal serial bus (USB) port for communications over a cable, a Bluetooth™ wireless interface, a radio-frequency identification (RFID) interface, a near-field communications (NFC) wireless interface, and/or any other type of interface that converts data from one form to another form.
As will be described in detail below, device 200 may perform certain operations relating to automated publishing of APIs for an IoT platform system. Device 200 may perform these operations in response to processor 220 executing software instructions contained in a computer-readable medium, such as memory 230. A computer-readable medium may be defined as a non-transitory memory device. A memory device may be implemented within a single physical memory device or spread across multiple physical memory devices. The software instructions may be read into memory 230 from another computer-readable medium or from another device. The software instructions contained in memory 230 may cause processor 220 to perform processes described herein. Alternatively, hardwired circuitry may be used in place of, or in combination with, software instructions to implement processes described herein. Thus, implementations described herein are not limited to any specific combination of hardware circuitry and software.
Although
API storage system interface 310 may be configured to communicate with API storage systems 150 to obtain candidate APIs. Storage locations DB 315 may include information identifying storage locations that are to be searched for candidate APIs, such as storage locations associated with API storage systems 150. API storage system interface 310 may access the identified storage locations at particular intervals to identify and retrieve candidate APIs. Additionally or alternatively, API storage system interface 310 may receive a request from developer device 110 and/or API storage system 150 to publish candidate APIs stored on API storage system 150.
IoT platform interface 320 may communicate with IoT platform system 170. IoT platform interface 320 may access IoT platform system 170 to identify and obtain a list of published platform APIs. Furthermore, IoT platform interface 320 may provide tested candidate APIs to IoT platform system 170 for publishing. IoT platform interface 320 may sync with IoT system 170 at particular intervals to ensure that the list of published APIs in published API DB 355 associated with virtual machine IoT platform 350 is up to date with respect to the APIs published on IoT platform system 170.
Publishing module 330 may publish candidate APIs to virtual machine IoT platform 350 to create and/or update APIs and to test the created or updated APIs. Publishing module 330 may obtain a list of candidate APIs from API storage system interface 310 and provide the candidate APIs to parser 340. Parser 340 may parse the candidate APIs into a particular format corresponding to the format used by IoT platform system 170 for published API and store the candidate APIs in candidate API DB 345. Publishing module 330 may obtain a list of published platform APIs from IoT platform interface 320 and may store the list of published platform APIs in published API DB 355. Exemplary information that may be stored in candidate API DB 345 and/or published API DB 355 is described below with reference to
Publishing module 330 may include an API creation module 322, an API update module 334, and an API remove module 336. Publishing module 330 may compare candidate APIs stored in candidate API DB 345 with published APIs stored in published API DB 355 to generate a create API list, an update API list, and a remove API list. API creation module 332 may create APIs included in create API list by publishing them to published API DB 355. API update module 334 may update published APIs in published API DB 355 based on information included in matching identified candidate APIs. API remove module 336 may remove APIs from published API DB 355 that do not need to be updated and/or tested because there are no matching candidate APIs in candidate API DB 345.
Virtual machine IoT platform 350 may correspond to a virtual machine version of IoT platform system 150 and may thus simulate IoT platform system 150. Testing module 360 may test candidate APIs published to virtual machine IoT platform 350 using testing scripts stored in testing scripts DB 365. For example, testing module 360 may simulate a particular device, operating system, and/or communication method to send a request to an API in published API DB 355 and may obtain and analyze a response received from virtual machine IoT platform 350. For example, a testing script may make a first request to a published API using all required parameters, may make a second request with an invalid parameter value, may make a third request with a missing parameter value, etc. Furthermore, testing module 360 may test the API by simulating different types of devices, different operating systems, different applications, and/or different communication methods.
Although
API ID field 410 may include a name and/or an ID that uniquely identifies a particular API. The name and/or ID may be in a specified format associated with IoT platform system 170. Version field 415 may specify a version for the particular API. Thus, different versions of the same API may be stored in different API records 401. Context field 420 may specify one or more contexts for the particular API. A context may specify a field of use for the particular API and/or may classify the API in a hierarchical classification scheme (e.g., sensor category, temperature sensor subcategory, data retrieval subcategory, etc.). Furthermore, context may also identify a third party vendor entity and/or a particular product and/or service line. For example, if three vendors A, B, and C each provide two different API solutions 1 and 2 for a particular device type or for a particular type of request, the context may be identified based on the vendor and the API solutions: A1, A2, B1, B2, C1, and C2. In some implementations, API ID field 410, version field 415, and context field 420 may be designated as mandatory fields and other fields may be designated as optional fields. In other implementations, fewer or additional fields may be designated as mandatory fields.
Parameters field 422 may store information identifying one or more mandatory parameters and one or more optional parameters associated with the particular API. Visibility field 425 may identify whether the particular API is public or private and/or may identify a class of users that may access the API. For example, a first version of an API may be a public version of the API and a second version of the API may be a private version that includes additional parameters. Tags field 430 may include information identifying one or more tags associated with the particular API. The tags may be further used to classify the particular API and/or associate the particular API with applications and/or devices types.
URL pattern field 435 may identify a URL pattern associated with the API. Furthermore, URL pattern field 435 may identify one or more Hypertext Transfer Protocol (HTTP) verbs (e.g., GET, PUT, POST, DELETE, etc.) associated with the particular API. URL endpoints field 440 may identify one or more endpoints associated with the API. A URL endpoint may store code that processes requests for the particular API. Transport types field 445 may store information identifying one or more transport types supported by the particular API (e.g., HTTP, HTTP Secure (HTTPS), etc.).
Throttling tiers field 450 may store information identifying one or more data throttling tiers associated with the particular API. For example, a first throttling tier may limit requests to the particular API a first number of times in a time period (e.g., 10 requests per second), a second throttling tier may limit requests to the particular API a second number of times in the time period (e.g., 5 requests per second), etc. Default version field 455 may identify a default version of the particular API. The default version may be invoked by another M2M device or an application on a user device if another version does not function correctly. Business info field 460 may include business information associated with the particular API, such as, for example, one or more rates for using the API.
Although
The process of
Published identified platform APIs may be identified (block 560), the identified published platform APIs may be parsed (block 570), and a list of published platform APIs may be generated (block 580). For example, IoT platform interface 320 may, at particular intervals, synchronize the published APIs on IoT platform system 170 with the published APIs stored in published API DB 355 by obtaining a list of published platform APIs from IoT platform system 170. In some implementations, the published platform APIs may be parsed if the format used by virtual machine IoT platform 350 differs from the format used by IoT platform system 170. Processing may continue to
The process of
If the API identifying information is not the same (block 630—NO), a determination may be made if there are more published APIs to compare with the selected candidate API (block 635). If there are more published APIs to compare (block 635—YES), processing may return to block 615 to select the next published API from the published API list. If there are no more published APIs to compare (block 635—NO), the selected candidate API is added to the create API list (block 640) and a determination is made so to whether there are more candidate APIs to compare (block 645). If it is determined that there are more candidate APIs (block 645—YES), processing may return to block 610 to select the next candidate API. If it is determined that there are no more candidate APIs (block 645—NO), any remaining published APIs are added to the remove API list (block 650), because the remaining published APIs are not associated with any candidate APIs and therefore do not need to be updated and tested. Thus, after all of the candidate APIs are exhausted for comparison, the remaining APIs in the list of published platform APIs are added to API remove list.
Returning to block 630, if the API identifying information is the same (block 630—YES), detailed information may be compared (block 660). For example, publishing module 330 may compare all the remaining fields of the selected candidate API from candidate API DB 345 and the selected published API from published API DB 355 to determine if any of the remaining fields differ between the selected candidate API and the selected published API. If there is a mismatch (block 665—YES), the selected candidate API is added to the update API list (block 670) and the selected published API is removed from the published API list (block 680). If there is no mismatch (block 665—NO), the selected published API is also removed from the published API list (block 680). Processing continues to block 645. After the process of
The process of
A device model API may be mapped to the created API (block 720). For example, publishing module 330 may identify a device model type based on information stored in the context field 420 and/or based on information stored in tags field 430 and may select a device model type API based on the identified information. Publishing module 330 may then map the parameters identified in parameters field 422 to the parameters associated with selected device model type API. The created API may be tested (block 725). For example, testing module 460 may run one or more testing scripts to test the behavior of the created API under various situations.
A determination may be made as to whether there are more APIs in the create API list (block 730). If more APIs are in the create API list (block 730—YES), processing may return to block 710 to select the next API to be created. If there are no more APIs in the create API list (block 730—NO), processing may continue to process the update API list.
An API may be selected from the update API list (block 735) and one or more field requiring an update may be identified (block 740) and updated (block 745). For example, API update module 334 may compare each field in API record 401 in published API DB 355 with a corresponding field in the corresponding API record 401, associated with the selected API in candidate API DB 345. Each field that is identified as including differing information may be updated by copying information from the field in candidate API DB 345 to the corresponding field in in published API DB 355. The updated API may be tested (block 750). For example, testing module 460 may run one or more testing scripts to test the behavior of the updated API under various situations. The testing scripts for testing a created API may be different from the testing scripts for testing an updated API.
A determination may be made as to whether there are more APIs in the update API list (block 755). If more APIs are in the update API list (block 755—YES), processing may return to block 735 to select the next API to be updated. If there are no more APIs in the update API list (block 755—NO), processing may continue to delete APIs in the remove API list (block 760). Published APIs that do not correspond to APIs that need to be updated may be removed from published API DB 355, because there are no changes to the APIs in the API remove list that need to be updated and tested. Thus, API remove module 336 may delete the API records 401 included on the API remove list from published API DB 355. In other implementations, the API records 401 for APIs on the remove API list may not be deleted but designated as inactive in published API DB 355.
APIs that have been successfully tested may be published to the IoT platform (block 765). APIs that have not been successfully tested may be flagged and/or marked as inactive. Publishing module 330 may then instruct IoT platform interface 320 to synchronize the information in published API DB 355 with IoT platform system 170 and IoT platform interface 320 may publish the APIs in published API DB 355 to IoT platform system 170.
Testing system 160 may sort and publish the candidate API as a newly created API along with other identified and collected APIs in a virtual model of IoT platform system 170 on testing system 160 (block 820). Furthermore, testing system 160 may map the newly created candidate API to a device model API (block 822). For example, the transaction data API may be mapped to a manufacturer-independent vending machine device model API. The mapped candidate API may be tested with one or more automated testing scripts to determine whether the candidate API exhibits expected behavior, such as returning expected data types, returning expected errors if required parameters are omitted, etc. (block 824). If testing is successful, the candidate API may be published to IoT platform system 170 (signal 830). The published API may include a URL endpoint for calling the API, which may be used to call the API directly.
At a later time, target device 130 may register with IoT platform system 170 (signal 840). For example, a customer may set up a subscription for a set of vending machines and may register the vending machines with IoT platform system 170 so that the vending machines may exchange information with an accounting system that keeps track of products sold by the vending machines. IoT platform system 170 may generate a device record for target device 130 and may associate a particular device type with target device 130 as well as a particular manufacturer model with the target device 130 (block 842). The device type may be associated with a device model that includes one or more device model APIs and the manufacturer model may be associated with the published transaction data API. The device model may be, for example, a vending machine device model that includes a vending machine device model transaction data API. Thus, another M2M device, or an application on a user device, may use the vending machine device model transaction data API to request data from a vending machine without needing to know the model of the vending machine or the particular APIs associated with the model.
At a later time, requesting device 120 may select to obtain transaction data from the vending machines. Requesting device 120 may select to access target device 130 by sending a request to IoT platform system 170 using the vending machine device model transaction data API (signal 860). For example, requesting device 120 may call the vending machine device model transaction data API with a device ID parameter that identifies target device 130 and a parameter that specifies the time period for which transaction data is requested.
IoT platform system 170 may receive the request, may identify a device model record for target device 130 based on the device ID parameter included in the request, may identify the manufacturer model for target device 130 identified in the device model record, and may identify the published transaction data API for the identified manufacturer model. IoT platform system 170 may map the vending machine device model transaction data API request to a published transaction data API request and may send the published transaction data API to target device 130 (signal 860). Target device 130 may respond with the requested transaction data and IoT platform system 170 may provide the requested transaction data to requesting device 120 using the vending machine device model transaction data API (not shown in
Testing system 160 may compare candidate API list 1010 and published API list 1020 to generate a create API list 1030, an update API list 1040, and a remove API list 1050. Create API list 1030 may include APIs that do not exist on IoT platform system 170 and need to be created. Create API list 1030 is generated to include APIs that are not identified in published API list 1020 and, in scenario 1000, include get device group list API 1012 and change device group API 1015.
Update API list 1040 may include APIs that exist on IoT platform system 170, but that need to be updated based on a new candidate API file existing. Update API list 1040 is generated to include APIs that are identified as having a matching name and version number with an API included in published API list 1020, but that are different in detailed information, such as one or more fields included in the API file and, in scenario 1000, include create device group API 1011 and get devices in group API 1014.
Remove API list 1050 may include published APIs from published API list 1020 that do not match any candidate APIs and that therefore do not need to be tested on testing system 160. APIs on the remove API list 1050 are removed from testing system 160 and, in scenario 1000, include get device use history API 1021, get all data API 1022, change device ID API 1023, initiate session API 1027, end session API 1028, and reset password API 1029.
In the preceding specification, various preferred embodiments have been described with reference to the accompanying drawings. It will, however, be evident that various modifications and changes may be made thereto, and additional embodiments may be implemented, without departing from the broader scope of the invention as set forth in the claims that follow. The specification and drawings are accordingly to be regarded in an illustrative rather than restrictive sense.
For example, while a series of blocks have been described with respect to
It will be apparent that systems and/or methods, as described above, may be implemented in many different forms of software, firmware, and hardware in the implementations illustrated in the figures. The actual software code or specialized control hardware used to implement these systems and methods is not limiting of the embodiments. Thus, the operation and behavior of the systems and methods were described without reference to the specific software code—it being understood that software and control hardware can be designed to implement the systems and methods based on the description herein.
Further, certain portions, described above, may be implemented as a component that performs one or more functions. A component, as used herein, may include hardware, such as a processor, an ASIC, or a FPGA, or a combination of hardware and software (e.g., a processor executing software).
It should be emphasized that the terms “comprises”/“comprising” when used in this specification are taken to specify the presence of stated features, integers, steps or components but does not preclude the presence or addition of one or more other features, integers, steps, components or groups thereof.
The term “logic,” as used herein, may refer to a combination of one or more processors configured to execute instructions stored in one or more memory devices, may refer to hardwired circuitry, and/or may refer to a combination thereof. Furthermore, a logic may be included in a single device or may be distributed across multiple, and possibly remote, devices.
For the purposes of describing and defining the present invention, it is additionally noted that the term “substantially” is utilized herein to represent the inherent degree of uncertainty that may be attributed to any quantitative comparison, value, measurement, or other representation. The term “substantially” is also utilized herein to represent the degree by which a quantitative representation may vary from a stated reference without resulting in a change in the basic function of the subject matter at issue.
To the extent the aforementioned embodiments collect, store or employ personal information provided by individuals, it should be understood that such information shall be used in accordance with all applicable laws concerning protection of personal information. Additionally, the collection, storage and use of such information may be subject to consent of the individual to such activity, for example, through well known “opt-in” or “opt-out” processes as may be appropriate for the situation and type of information. Storage and use of personal information may be in an appropriately secure manner reflective of the type of information, for example, through various encryption and anonymization techniques for particularly sensitive information.
No element, act, or instruction used in the present application should be construed as critical or essential to the embodiments unless explicitly described as such. Also, as used herein, the article “a” is intended to include one or more items. Further, the phrase “based on” is intended to mean “based, at least in part, on” unless explicitly stated otherwise.
Zhu, Lin, Shah, Tirth Nikhil Mona
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
7676794, | Mar 09 2006 | International Business Machines Corporation | Testing scenarios that sequentially execute a plurality of application program interfaces |
8201191, | Jun 30 2004 | Time Warner Cable Enterprises LLC | Apparatus and methods for implementation of network software interfaces |
20160171589, | |||
20160247238, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Jun 24 2016 | SHAH, TIRTH NIKHIL MONA | Verizon Patent and Licensing Inc | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 039019 | /0333 | |
Jun 27 2016 | Verizon Patent and Licensing Inc. | (assignment on the face of the patent) | / | |||
Jun 27 2016 | ZHU, LIN | Verizon Patent and Licensing Inc | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 039019 | /0333 |
Date | Maintenance Fee Events |
Mar 01 2023 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Date | Maintenance Schedule |
Sep 17 2022 | 4 years fee payment window open |
Mar 17 2023 | 6 months grace period start (w surcharge) |
Sep 17 2023 | patent expiry (for year 4) |
Sep 17 2025 | 2 years to revive unintentionally abandoned end. (for year 4) |
Sep 17 2026 | 8 years fee payment window open |
Mar 17 2027 | 6 months grace period start (w surcharge) |
Sep 17 2027 | patent expiry (for year 8) |
Sep 17 2029 | 2 years to revive unintentionally abandoned end. (for year 8) |
Sep 17 2030 | 12 years fee payment window open |
Mar 17 2031 | 6 months grace period start (w surcharge) |
Sep 17 2031 | patent expiry (for year 12) |
Sep 17 2033 | 2 years to revive unintentionally abandoned end. (for year 12) |