Kong / apiembed

Embeddable API code snippets for your website, blog or API documentation
https://apiembed.com
MIT License
410 stars 52 forks source link

Could not load JSON source, please review the documentation and try again #22

Closed NadaBen closed 8 years ago

NadaBen commented 8 years ago

Hello, please i need your help, I'm using <iframe src="//api.apiembed.com/?source=http://localhost/test/demo.json&targets=all" frameborder="0" scrolling="no" width="100%" height="300px" seamless></iframe>

but it gives me this error Could not load JSON source, please review the documentation and try again

my jsonfile is saved locally, I am stilling in localhost, and it's as follows: `{ "method": "POST", "url": "http://localhost/test/web/app_dev.php/v1/photos", "httpVersion": "HTTP/1.1", "queryString": [ { "image": "photos/1.jpg", "value": "photos/1.jpg" } ], "headers": [ { "name": "Accept", "value": "application/json" }, { "name": "Content-Type", "value": "application/json" } ],

"postData": { "mimeType": "application/json", "image": "{\"photos/1.jpg\": \"photos/1.jpg\"}" } } `

ahmadnassri commented 8 years ago

you can't use localhost urls with this online service.