Can anyone tell me how to add json/xml body for POST calls on swagger????
You can reference the schema in the parameters section, then in the definitions section you can specify the JSON object. Example parameter definition:
parameters: - name: requestBody in: body description: 'request body' required: true schema: $ref: '#/definitions/requestBody'
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |