发明名称 Providing a client interface for a server-based web application programming interface
摘要 Disclosed methods, systems, and articles of manufacture, including processor-readable mediums, relate to providing a client interface for a server-based web application programming interface (API). In a disclosed method, a client device receives a first discovery document that is represented in a first machine-readable language and that includes information describing a plurality of resources of a first API of a server device. Based at least in part on the first discovery document, the client device executes a first set of instructions represented in a second machine-readable language that is different from the first machine-readable language, to generate a first library that includes instructions represented in the second machine-readable language and that enables the client device to interface with at least one of the plurality of resources of the first API.
申请公布号 US8972489(B2) 申请公布日期 2015.03.03
申请号 US201113297088 申请日期 2011.11.15
申请人 Google Inc. 发明人 Gregorio Joseph Charles;Hossain Monsur
分类号 G06F15/16;G06F9/44;G06F9/54 主分类号 G06F15/16
代理机构 Birch, Stewart, Kolasch & Birch, LLP 代理人 Birch, Stewart, Kolasch & Birch, LLP
主权项 1. A method comprising: receiving, by a client device application, a first discovery document that is represented in a first machine-readable language and that includes: information describing a plurality of resources of an application programming interface (API) of a server device; anddetails regarding how to access the plurality of resources of the API via representational state transfer (RESTful) hypertext transfer protocol (HTTP) calls; and generating, at runtime of the application, a library containing objects and methods, the library is built by: recursively descending over the received machine-readable discovery document to identify at least one resource in the plurality of resource of the API;composing at least one request to obtain the at least one resource of the plurality of resources of the API via a RESTful HTTP call; anddeserializing a response from the at least one request into a second machine-readable programming language.
地址 Mountain View CA US