Automatically generating rest clients from rest resources
First Claim
1. A computer program product for interacting with a Representational State Transfer (REST) resource comprising a non-transitory machine readable media:
- having embodied therewith a set of programmatic instructions executable by at least one computing device, wherein said set of programmatic instructions are configured to dynamically generate a graphical REST client given a REST resource, wherein said REST client comprises an output section configured to graphically present results from a REST service with which the REST client interacts, said output section including an extension point that is able to be associated with a defined type of data and a handler for that type of data, said handler determining a manner in which the results are to be displayed, wherein an HTML portion of the REST client defines graphical elements for accepting user input, which is able to be submitted to a REST service associated with the REST client, and wherein scripting language source code defines code for presenting output resulting from the REST service.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention discloses a method and system for creating REST clients using existing REST export information. The invention can provide a wizard able to dynamically generate REST client code. The REST client code can include source code, such as HTML and JAVA SCRIPT starting points that can be further configured by the REST client code recipient. In one embodiment, the automatically created REST client can be a GUI client able to be rendered within a browser. The REST client can include one or more sections, each associated with a particular REST resource. Each resource specific section can include fields for specifying values of each resource parameter. Suitable GUI controls can be associated with each of the fields such as using a checkbox for a Boolean field and a drop down list for an enumerated field.
25 Citations
19 Claims
-
1. A computer program product for interacting with a Representational State Transfer (REST) resource comprising a non-transitory machine readable media:
- having embodied therewith a set of programmatic instructions executable by at least one computing device, wherein said set of programmatic instructions are configured to dynamically generate a graphical REST client given a REST resource, wherein said REST client comprises an output section configured to graphically present results from a REST service with which the REST client interacts, said output section including an extension point that is able to be associated with a defined type of data and a handler for that type of data, said handler determining a manner in which the results are to be displayed, wherein an HTML portion of the REST client defines graphical elements for accepting user input, which is able to be submitted to a REST service associated with the REST client, and wherein scripting language source code defines code for presenting output resulting from the REST service.
- View Dependent Claims (2, 3, 4, 5, 6)
-
7. A method for generating software that interacts with a Representational State Transfer (REST) based resource comprising:
-
a REST resource that exposes functionality of a Web service; receiving a request for an interface to remotely interact with the REST resource; responsive to the received request, detecting at least one input parameter for the REST resource; dynamically building source code for a user interface for remotely interacting with the REST resource, said source code defining at least one input element and comprises an interface submission control, wherein a selection of the interface submission control causes user provided values entered into the input element to be submitted to the REST resource; and conveying the built source code to a remotely located computing device from which the request originated, wherein the built source code is for a REST client, wherein said REST client comprises an output section configured to graphically present results from a REST service with which the REST client interacts, said output section including an extension point that is able to be associated with a defined type of data and a handler for that type of data, said handler determining a manner in which the results are to be displayed, wherein an HTML portion of the REST client defines graphical elements for accepting user input, which is able to be submitted to a REST service associated with the REST client, and wherein scripting language source code defines, code for presenting output resulting from the REST service. - View Dependent Claims (8, 9, 10, 11, 12, 13, 14, 15, 16)
-
-
17. A method of obtaining a dynamically generated Representational State Transfer (REST) client comprising:
-
submitting a Hypertext Transfer Protocol (HTTP) request to a server, a said submitted request specifying a Web service exposed through a REST resource, wherein said server is configured to dynamically generate a REST client for interacting with the Web service upon receiving the request; and responsive to the submitted request, receiving source code for the REST client from the server, wherein said REST client comprises an output section configured to graphically present results from a REST service with which the REST client interacts, said output section including an extension point that is able to be associated with a defined type of data and a handler for that type of data, said handler determining a manner in which the results are to be displayed, wherein an HTML portion of the REST client defines graphical elements for accepting user input, which is able to be submitted to a REST service associated with the REST client, and wherein scripting language source code defines code for presenting output resulting from the REST service. - View Dependent Claims (18)
-
-
19. A system for interacting with a Representational State Transfer (REST) resource comprising:
-
a bus; a memory connected to the bus, wherein the memory contains a set of instructions; and a processor connected to the bus, wherein the processor is operable to execute the instructions to dynamically generate a graphical REST client given a REST resource, wherein said REST client comprises an output section configured to graphically present results from a REST service with which the REST client interacts, said output section including an extension point that is able to be associated with a defined type of data and a handler for that type of data, said handler determining a manner in which the results are to be displayed, wherein an HTML portion of the REST client defines graphical elements for accepting user input, which is able to be submitted to a REST service associated with the REST client, and wherein scripting language source code defines code for presenting output resulting from the REST service.
-
Specification