Adapter and method for generating multi-language SDK (Software Development Kit) client by analyzing interface document
The invention discloses an adapter and a method for generating a multi-language SDK (Software Development Kit) client by analyzing an interface document, which can generate an SDK only by the interface document, support multiple development languages and solve the problem of non-uniform interface fo...
Gespeichert in:
Hauptverfasser: | , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses an adapter and a method for generating a multi-language SDK (Software Development Kit) client by analyzing an interface document, which can generate an SDK only by the interface document, support multiple development languages and solve the problem of non-uniform interface formats in enterprises. According to the technical scheme, the adapter comprises a parser and a generator, the parser is configured to parse an interface document into an SDK-DATA data model, and the SDK-DATA data model is a data model abstracted based on an interface HTTP request protocol; and the generator is configured to process the SDK-DATA data model into an SDK source code and an interface DEMO, and automatically upload the SDK source code and the interface DEMO to a Git warehouse.
本发明公开了一种通过解析接口文档生成多语言SDK客户端的适配器和方法,做到仅需接口文档便可生成SDK,且支持多种开发语言,解决企业中接口格式不统一的问题。其技术方案为:适配器包括解析器和生成器,解析器配置为将接口文档解析为SDK-DATA数据模型,其中SDK-DATA数据模型为基于接口HTTP请求协议抽象出的数据模型;生成器配置为将SDK-DATA数据模型处理成SDK源码及接口DEMO,并自动上传Git仓库。 |
---|