Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

baseUri property to replace RAML's base URI #535

Closed
jarrodek opened this issue Oct 20, 2017 · 2 comments
Closed

baseUri property to replace RAML's base URI #535

jarrodek opened this issue Oct 20, 2017 · 2 comments

Comments

@jarrodek
Copy link
Contributor

There's a lot of questions around this and few use cases to support in the console.

Currently setting the baseUri property on the API console affects the URL editor by providing it with additional information how to treat relative URLs in RAML. This should have wider support in the console.

In cases where the console can be used in different environments at the same time (for example changing base domain between staging, development and production) currently you have to build 3 different consoles for 3 APIs with corresponding base URIs. This is unnecessary and the console should be configurable to support this.

This ticket is to change behavior of the baseUri configuration property of the console.

New behavior

When the baseUri changes to any value (it will not check for valid of absolute URIs) the console passes the information to request editor. Request editor computes new URL value for url and url parameters editors. Both editors will accept new value and treat it the information it came from RAML. Any updates to the url in the URL editor or in the URL parameters editor will result with the URL with new base URI.
If previous base URI contained variables the variables won't be applied to the URL (will be ignored).

When the baseUri property is cleared (empty, false, undefined, null) then the URL will be computed as it should be from the RAML definition.

This is scheduled for the beginning of next week. However comments are welcome.

@jarrodek jarrodek self-assigned this Oct 20, 2017
jarrodek added a commit to arc-archive/raml-request-parameters-editor that referenced this issue Oct 25, 2017
jarrodek added a commit to arc-archive/raml-request-url-editor that referenced this issue Oct 25, 2017
jarrodek added a commit to arc-archive/raml-request-panel that referenced this issue Oct 25, 2017
@jarrodek jarrodek mentioned this issue Oct 25, 2017
@upendrathakur
Copy link

@jarrodek Can you please share any sample where I can override RAML baseUri in my mule app?

@jarrodek
Copy link
Contributor Author

Hi,
This is a repository for API Console and you are asking about integration with APIKit (used Anypoint Studio). Unfortunately I know very little about that. Maybe @pangelani can help with that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants