Hi Ron, I am attaching one sample for your reference.
Regards, Dimpy On Thursday, May 18, 2017 at 9:40:59 PM UTC+5:30, Ron wrote: > > Can you share the spec you’re trying to load? > > > > > > > > *From: *<[email protected] <javascript:>> on behalf of Dimpy > Adhikary <[email protected] <javascript:>> > *Reply-To: *"[email protected] <javascript:>" < > [email protected] <javascript:>> > *Date: *Thursday, 18 May 2017 at 4:31 > *To: *Swagger <[email protected] <javascript:>> > *Subject: *Getting TypeError: Failed to fetch error in Swagger UI > > > > Hi All, > > > > I need help to resolve this swagger UI issue. I am hosting swagger UI > locally. I have the swagger specification json pointing to my server. > > > > When I try to send any request from Swagger UI, I am getting TypeError: > Failed to fetch error all the time. But the request is actually successful > and I could see the response in the browser console. I am able to run the > curl command generated from the command prompt as well. I have downloaded > swagger UI and using *http-server --cors* I am starting the server. I am > opening the swagger UI using this Url > *http://127.0.0.1:8080/swagger-ui/swagger-ui/dist/ > <http://127.0.0.1:8080/swagger-ui/swagger-ui/dist/>*. Note: the default > http://petstore.swagger.io/v2/swagger.json is working fine. But if I > browse my swagger spec file from the swagger UI and execute any request I > am getting the above error all the time. My swagger specification file is > present in the same /dist folder. Looking forward to get help from experts > in this group. > > > > Regards, > > Dimpy > > -- > You received this message because you are subscribed to the Google Groups > "Swagger" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > For more options, visit https://groups.google.com/d/optout. > > -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
magento.json
Description: application/json
