Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to generate spec for new apigee edge beta version?

I tried to generate spec file from specgen. While uploading that generated file, I got errors in apigee edge. give me suggestion as soon as possible

Solved Solved
0 7 350
1 ACCEPTED SOLUTION

Thanks for the details. It would have been better if you copy-pasted your Swagger.

You need to add a schema to your body parameter,

Sample schema,

 "parameters": [
          {
            "in": "query",
            "name": "query",
            "type":"string",
            "description": "some-descc",
            "required": true
          },
          {
            "name": "body",
            "in":"body",
            "description": "some-desc",
            "required": true,
            "schema": {
              "type": "object",
              "properties": {
                "param1": {
                  "type": "string"
                },
                "param2": {
                  "type": "string"
                }
              }
            }
          }
        ]

View solution in original post

7 REPLIES 7