发明名称 METHOD OF DEFINING JAVASCRIPT OBJECTS
摘要 Some embodiments of the invention provide a novel server for processing application programming interface (API) requests. In some embodiments, the API server is written in JavaScript. For example, in some embodiments, the API-accessible objects of this server are each defined in terms of a JavaScript file and a JSON (JavaScript Object Notation) file. At runtime, a runtime processor instantiates each JavaScript object from its associated JavaScript and JSON files. Once instantiated, the JavaScript object can be used to process API requests that refer to the JavaScript object. Some embodiments use novel JSON file structures that allow these embodiments to define rich JavaScript models.
申请公布号 US2016077853(A1) 申请公布日期 2016.03.17
申请号 US201414490640 申请日期 2014.09.18
申请人 StrongLoop, Inc 发明人 Feng Zhaohui;Martori Ritchie Tyler;Bajtos Miroslav
分类号 G06F9/455;G06F21/62;H04L29/08 主分类号 G06F9/455
代理机构 代理人
主权项 1. A method of defining an object to process application programming interface (API) requests, the method comprising: defining a JavaScript (JS) file to define a set of behavioral descriptions of the object; defining a JS object notation (JSON) file to define a set of property descriptions of the object; creating an association between the JS and JSON files; and storing the JS and JSON file on a machine readable medium, wherein the association allows an object instantiator to instantiate the object from the behavioral description in the JS file and the property description in the JSON file.
地址 San Mateo CA US