search

Home  >  Q&A  >  body text

php - How should swagger return json comments?

Directly edit the swagger document in json mode. How to write the comment that returns json?

我想大声告诉你我想大声告诉你2705 days ago1191

reply all(2)I'll reply

  • 女神的闺蜜爱上我

    女神的闺蜜爱上我2017-07-01 09:13:52

    Solve it yourself:

    "definitions": {
            "ownerNumer": {
                "type": "object",
                "properties": {
                    "status": {
                        "type": "integer",
                        "format": "int64",
                        "description": "状态:0正常1异常"
                    },
                    "number": {
                        "type": "integer",
                        "format": "int64",
                        "description": "用户数量"
                    }
                }
            }
        },

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-07-01 09:13:52

    Recommend you a website https://app.stoplight.io/ You can edit the swagger file directly on this website

    reply
    0
  • Cancelreply