Customizable result sets for application program interfaces
First Claim
Patent Images
1. A non-transitory computer-readable medium embodying a program executable in a first computing device, wherein when executed, the program causes the first computing device to at least:
- obtain a request from a second computing device;
in response to the request, obtain a result set definition from a data store, the result set definition defining a first schema for a custom result set to be returned in response to the request;
determine, from at least one application program interface, a plurality of application program interface calls required to obtain data reflected in the first schema for the custom result set defined by the result set definition, the plurality of application program interface calls facilitating access to data in an electronic catalog by returning on execution corresponding ones of a plurality of response sets, the plurality of response sets having at least one corresponding predefined second schema distinct from the first schema;
execute the plurality of application program interface calls to generate the plurality of response sets;
perform a transformation on the plurality of response sets based at least in part on the first schema defined by the result set definition and the request to generate the custom result set, the custom result set comprising data based at least in part on the plurality of response sets and conforming to the first schema;
communicate the custom result set to the second computing device;
wherein individual ones of the plurality of application program interface calls are associated with at least one other application program interface call of the plurality of application program interface calls in a parent-child relationship model; and
wherein the plurality of application program interface calls is determined based at least in part on the result set definition and the parent-child relationship model.
1 Assignment
0 Petitions
Accused Products
Abstract
Disclosed are various embodiments for custom result set definitions. A result set definition is obtained responsive to a request from a client. A result customization application generates and executes application program interface calls to generate response data having a fixed schema. The result customization application performs transformations on the response data to generate a result set conforming to the result set definition.
38 Citations
21 Claims
-
1. A non-transitory computer-readable medium embodying a program executable in a first computing device, wherein when executed, the program causes the first computing device to at least:
-
obtain a request from a second computing device; in response to the request, obtain a result set definition from a data store, the result set definition defining a first schema for a custom result set to be returned in response to the request; determine, from at least one application program interface, a plurality of application program interface calls required to obtain data reflected in the first schema for the custom result set defined by the result set definition, the plurality of application program interface calls facilitating access to data in an electronic catalog by returning on execution corresponding ones of a plurality of response sets, the plurality of response sets having at least one corresponding predefined second schema distinct from the first schema; execute the plurality of application program interface calls to generate the plurality of response sets; perform a transformation on the plurality of response sets based at least in part on the first schema defined by the result set definition and the request to generate the custom result set, the custom result set comprising data based at least in part on the plurality of response sets and conforming to the first schema; communicate the custom result set to the second computing device; wherein individual ones of the plurality of application program interface calls are associated with at least one other application program interface call of the plurality of application program interface calls in a parent-child relationship model; and wherein the plurality of application program interface calls is determined based at least in part on the result set definition and the parent-child relationship model. - View Dependent Claims (2, 3)
-
-
4. A system comprising:
-
a data store storing at least computer-executable instructions; and at least one computing device comprising at least one processor and memory and in communication with the data store, the computer-executable instructions, when executed by the at least one processor, causing the at least one computing device to at least; determine, from at least one application program interface, a plurality of application program interface calls required to obtain data reflected in a first schema for a custom result set indicated in a result set definition; execute the plurality of application program interface calls to generate a plurality of response data sets, individual ones of the plurality of response data sets corresponding to a respective application program interface call of the plurality of application program interface calls and having a respective fixed second schema distinct from the first schema; and perform a transformation on the plurality of response data sets based at least in part on the first schema indicated in the result set definition to generate the custom result set, the custom result set comprising data based at least in part on the plurality of response data sets and conforming to the first schema. - View Dependent Claims (5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
-
-
16. A method comprising:
-
obtaining, in a first computing device, from a second computing device, a request associated with a result set definition indicating a first schema for a custom result set; determining, in the first computing device, from at least one application program interface, a plurality of application program interface calls required to obtain data reflected in the first schema indicated in the result set definition and a relationship model associated with the plurality of application program interface calls; executing, in the first computing device, individual ones of the plurality of application program interface calls to generate a plurality of response sets, individual ones of the plurality of response sets corresponding to the individual ones of the plurality of application program interface calls, individual ones of the plurality of response sets conforming to a respective fixed second schema distinct from the first schema; transforming, in the first computing device, the plurality of response sets to generate the custom result set, the custom result set comprising data based at least in part on the plurality of response sets and conforming to the first schema indicated in the result set definition; and communicating, by the first computing device, the custom result set to the second computing device; wherein the plurality of application program interface calls facilitate access to data by returning on execution a corresponding response set of the plurality of response sets. - View Dependent Claims (17, 18, 19, 20, 21)
-
Specification