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

Using the console directly with raml-console-loader #278

Closed
wants to merge 139 commits into from
Closed

Using the console directly with raml-console-loader #278

wants to merge 139 commits into from

Conversation

nwolff
Copy link

@nwolff nwolff commented May 22, 2016

I dowloaded https://github.com/mulesoft/api-console/releases/tag/3.0.0 and tried to display the console for a given raml (instead of going thru the raml-initializer which is used in the packaged dist/index.html).

The readme says to use the raml-console directive specifying the 'src' attribute. Doing that yields a page with a Resource div that is empty.

By perusing the source I found the raml-console-loader directive, and when using that with the 'src' attribute the ui displayed correctly.

Pavel Strashkin and others added 30 commits May 2, 2016 15:37
This includes:
- Query parameters
- Headers
- Uri parameters
- Move popover styles to class
- Changed popover properties style
- Fixed a bug where the incorrect type properties were shown on popover
@lsc1234582
Copy link

Can you share more details? I tried to use and failed miserably.

@nwolff
Copy link
Author

nwolff commented May 29, 2016

Hi @lsc1234582 , here is the index.html file I use to display the console for my api.ralm file:

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>API Console</title>
    <link href="styles/api-console-light-theme.css" rel="stylesheet" class="theme">
</head>
<body ng-app="ramlConsoleApp" ng-cloak class="raml-console-body">
    <raml-console-loader src="api.raml"></raml-console-loader>
    <script src="scripts/api-console-vendor.js"></script>
    <script src="scripts/api-console.js"></script>
    <script>
        $.noConflict();
    </script>
</body>
</html>

HTH

@juancoen
Copy link
Contributor

juancoen commented Jun 8, 2016

Can you reopen this PR against master? Thanks!

@juancoen juancoen closed this Jun 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants