Contributions
How do i define a nested class json body in a swagger file version 3.0.1
Sample of a response body Response body { "admn_user_id": 55, "admindetails": { "userdetail_id": 02, "firstname": "example1", "lastname": "example2", "contact_phone": "7777788888", "admn_partner_id": 12, "updated_on": "2020-01-20T10:54:51Z", "email_id": "abc@foo.com", "admn_user": 55, "region": 2, "region_name": "At02" }, "user_type": 2, "username": "sou1", "user_status": 3, "role_id": 2, "role_name": "ABC", "user_status_name": "Active" }, How do I design a swagger components/schema for the above response body for a post method. Give me any link to understand the problem. Can I pass a schema model inside another using $ref?Solved4.7KViews0likes2CommentsCORS policy and Handelling errors
How should I define CORS headers and all kinds of error handlings in response part for a API integration in AWS API Gateway? I also can't understand where should I put a http integration url for AWS api gateway. The aws api gateway provides another url which will redirect the client request to my web server.728Views0likes1Comment