Git Product home page Git Product logo

Comments (3)

DavidBiesack avatar DavidBiesack commented on August 23, 2024 1

I read more about proxies at API Console|Configuring.The doc was a bit cryptic:

A proxy for Try It can be provided after loading the console
JavaScript. For example:

RAML.Settings.proxy = 'http://www.someproxy.com/somepath/' Given the
above, trying a GET to http://www.someapi.com/resource would get

http://www.someproxy.com/somepath/http://www.someapi.com/resource

I eventually found where this was set, in dist/index.html, near the bottom.
Since I don't have a proxy, I just updated this to

 RAML.Settings.proxy = '';

and now my API Console can call my REST service.

The documentation should be updated, and I suggest also updating the default distribution to not set a proxy, so that API Console works for initial development of an API on the same host, or that it detects errors due to an incorrectly configured proxy (i.e. if RAML.Settings.proxy is still set to '/proxy/' )

from api-console.

DavidBiesack avatar DavidBiesack commented on August 23, 2024

Any updates on this? See my comment on the above forum thread. I get 404 even when I'm running the API and API Console on the same server. Currently, this is a major blocker

from api-console.

pabru avatar pabru commented on August 23, 2024

I had this problem in the Mulesoft API Manager service mocking feature as well recently. Turning mocking on and off solved my problem and it works fine now (but the endpoint has been changed).

from api-console.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.