英文:
ACQ Json to Java models conversion
问题
我想将已存在的请求/响应模型转换为完整字段,以确保在测试和创建场景以获取证书时不会丢失任何数据。
我根据文档示例创建了每个服务的每个请求/响应的模型,现在尝试获取证书时发现,从Json转换为Java类的模型可能会根据测试场景缺少重要数据。有没有一个链接,我可以找到完整的模型,以任何形式反向转换为Java,而不是去文档中探索每个请求的模型树选项,找出我缺少的字段并将其添加到我的Java类中。
英文:
I want to convert an already existing Request / Response models with full fiels just to make sure not to be missing any Data when I'm testing and making Scenarios to get Certificate.
I'm creating models of each Request / Response of each service based on the examples of the documentation , now trying to get certification I found out that the models that I converted from Json to Java classes can be missing Important data based on Test Scenario , is there a link where I can find a full completed models with any form that I can reverse to Java instead of going to documentation and exploring the model Tree option of each Request to find out what fields that I'm missing and adding it to my Java classes.
答案1
得分: 1
通过导入Swagger API规范文件(可以从文档中下载)到https://editor.swagger.io/(此网站不是唯一的工具),可以生成一个包含每个API所需模型的客户端/服务器反向项目。
英文:
By importing a swagger api spec file (can be downloaded from the documentation) in https://editor.swagger.io/(this website is not the only tool) a client/server reversed project can be generated which contains all the models needed for each api
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。


评论