Git Product home page Git Product logo

Comments (5)

andrewbredow avatar andrewbredow commented on August 23, 2024

Just comment out the element on index.html, and point this element to your RAML:

<raml-console with-root-documentation src="http://api.yourdomain.org/apidocs/main.raml"></raml-console>

That approach has worked great for me on my public documentation.

from api-console.

gtrevg avatar gtrevg commented on August 23, 2024

Hi Andrew,

I was actually looking for a more dynamic version as I would like this page to be able to consume different RAML files. The console page itself is dynamic as one can fill in the form with any URL they want and the console will generate the entire API docs (and it can also dynamically take in pure RAML).

screen shot 2014-03-11 at 12 51 56 pm

My end goal is to be able to separate the RAML files from the rendering of the documentation. For example:

That way, I don't have to make any changes to the API Console server, but I am able to dynamically generate API docs for any RAML file I want to pass in. I think it's just a matter of taking in a GET argument and hooking it into the "Load From URL" form.

Thanks

from api-console.

andrewbredow avatar andrewbredow commented on August 23, 2024

Oh, I see. Yes, you want to use the raml query string parameter, then. For example:

http://my.docserver.example.com/console?raml=http://github.com/some/raml/file_v1.raml

from api-console.

comptly avatar comptly commented on August 23, 2024

@andrewbredow thanks for the comment, I was about to respond with the same thing! This should do exactly what you are looking for, @gtrevg

from api-console.

gtrevg avatar gtrevg commented on August 23, 2024

Worked like a charm. Thanks!

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.