Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何将自定义json转换为swagger 2.0 json_Swagger_Swagger 2.0 - Fatal编程技术网

如何将自定义json转换为swagger 2.0 json

如何将自定义json转换为swagger 2.0 json,swagger,swagger-2.0,Swagger,Swagger 2.0,我不熟悉招摇过市的文档。我们有一个为RESTfulWeb服务开发的现有项目正在进行中。不同的基于资源的URL以application/json格式使用和生成。我们的一个资源url的输入和输出json格式如下所示: 请求: 答复: 如何将上述请求和响应json格式转换为swagger 2.0 json格式 谢谢 尝试使用。 此工具支持在流行格式之间转换API描述。 Supported formats: * swagger_1 * swagger_2 * api_blue

我不熟悉招摇过市的文档。我们有一个为RESTfulWeb服务开发的现有项目正在进行中。不同的基于资源的URL以application/json格式使用和生成。我们的一个资源url的输入和输出json格式如下所示:

请求: 答复: 如何将上述请求和响应json格式转换为swagger 2.0 json格式

谢谢

尝试使用。
此工具支持在流行格式之间转换API描述。

  Supported formats:
    * swagger_1
    * swagger_2
    * api_blueprint
    * io_docs
    * google
    * raml
    * wadl

我已经安装了api规范转换器。我正在尝试调用api规范转换器http://:/sxapi/rest/sxapirestservice/sxapiicbinlocationmnt--from=api_blueprint--to=swagger_2 swagger.json。但它给出了方法不支持的错误。我们只支持POST请求。如何使用api spec converter进行转换?它不会根据用户的请求将JSON转换为Swagger。
{
  "response": {
    "cErrorMessage": "",
    "crossReferenceProduct": "2-001",
    "crossReferenceType": "",
    "tOutbinlocation": {
      "t-outbinlocation": []
    },
    "tOutfieldvalue": {
      "t-outfieldvalue": []
    }
  }
}
  Supported formats:
    * swagger_1
    * swagger_2
    * api_blueprint
    * io_docs
    * google
    * raml
    * wadl