Response model definition ignored when importing Swagger 2.0 document

Not applicable

In our Swagger 2.0 document our response model is documented in the response definition like this:

"responses": {
    "200": {
        "description": "OK",
        "schema": {
            "$ref": "#/definitions/MyResponseModel"
        }
    }

[...]

"definitions": {
    "MyResponseModel": {
        "description": "Some model description here.",
        "type": "object",
        "properties": {
            "firstProperty": {
                "format": "date-time",
                "description": "Some property description here.",
                "type": "string"
            },

Is this supported by SmartDocs? If so, any thoughts on why this could be ignored during import?

Thanks!

6 2 667
2 REPLIES 2

@jonas.butt, Welcome to Apigee Community 🙂

As far as I know, SmartDocs currently doesn't display static response. Response can be seen once API call is made using "Send This Request" button.

Yes, I agree it's a great feature to have & show sample response in SmartDocs. We will let out team know about this.

1335-screen-shot-2015-10-15-at-100127-am.png

Not applicable

Upvoting this feature request 🙂