Giter Site home page Giter Site logo

Comments (21)

sichvoge avatar sichvoge commented on August 26, 2024 2

@harry-wood I changed it to bug and we will try to fix it within our next iteration for the current version od the console (3.x.x).

from api-console.

AmShaegar13 avatar AmShaegar13 commented on August 26, 2024 1

This is an essential feature. I am wondering why this is not included.

from api-console.

ravikiranj avatar ravikiranj commented on August 26, 2024 1

I'm not sure if this is pull request worthy but I'm pasting the patch here in case anyone else is looking to add permalinks with existing UI.

Patch: https://gist.github.com/ravikiranj/d525fc7a07f1339147ed
Demo URL: http://rkjanardhana.com/api-console-dist/#gists

from api-console.

harry-wood avatar harry-wood commented on August 26, 2024 1

Aha thanks. v4.0.0 looking pretty nice!

In relation to this issue, I notice on this v4.0.0 live demo site, that resource permalinks are working: http://mulesoft.github.io/api-console/#/docs/resources-2-resources-0

from api-console.

prepor avatar prepor commented on August 26, 2024

+1

from api-console.

ravikiranj avatar ravikiranj commented on August 26, 2024

Is there an event that gets published when RAML file is successfully parsed and UI load is complete. If yes, can someone point me to it. On this event callback, we can issue clicks to open a specific endpoint that lets us link endpoints using /doc#myendpoint

from api-console.

jcenturion avatar jcenturion commented on August 26, 2024

Hi guys, this feature is in the backlog. We are figuring out how to create a non intrusive router for this issue since there are other projects using API console embedded.

Sorry for not answering before.

from api-console.

AmShaegar13 avatar AmShaegar13 commented on August 26, 2024

Good to hear, thanks!

from api-console.

ravikiranj avatar ravikiranj commented on August 26, 2024

@jcenturion as a temporarily fix, if I were to link users using `/doc#endpoint``, is there any event I can subcribe to that indicates RAML UI loaded event ?

from api-console.

ravikiranj avatar ravikiranj commented on August 26, 2024

Something like would totally work for now to be honest. I only need to figure out what event to subscribe to.

$('raml_load_complete').success(function() {
    var endpoint = window.location.hash.substr(1)
    , dom = document.querySelector( "#" + endpoint + " .raml-console-tab-list .raml-console-tab")
    ;
    if (dom) {
        dom.click();
    }
});

from api-console.

jcenturion avatar jcenturion commented on August 26, 2024

@ravikiranj: You should do that once the parser finishes at ramlParserWrapper.onParseSuccess.

from api-console.

harry-wood avatar harry-wood commented on August 26, 2024

I'm confused @jcenturion . Do you mean the anchor linking feature was removed while you're "figuring out how to create a non intrusive router" ?

We forked from this repo at a point in time when anchor linking was still working. After some extensive experimentation looking through the git history, it looks like it was working up until this commit: 902406b "Improve resource autofocus" Jul 2015

from api-console.

ryansanford avatar ryansanford commented on August 26, 2024

We ran into this limitation today. Is there any ETA on when this will be addressed?

from api-console.

jcenturion avatar jcenturion commented on August 26, 2024

@sichvoge Could you please take this question?

Note: I'm not part of this team anymore. If you have any questions about this project please contact @sichvoge. Thanks.

from api-console.

harry-wood avatar harry-wood commented on August 26, 2024

Unless I'm misunderstanding, the label on this should change. Despite the initial description, this is not an enhancement idea. It's a thing which used to work, and was broken.

When it was broken this somehow passed unnoticed for quite a while. I don't really understand how. Are we (TransportAPI) the only ones deploying api-console to our website, and using it for documentation? ...which we need to be able to link to! I mean anchor links to specific resources, is a basic feature of any API documentation site, used for example, when we're answering support queries about how to use our API.

Our documentation site is working fine with this at the moment. Example permalink URL: https://developer.transportapi.com/docs?raml=https://transportapi.com/v3/raml/transportapi.raml##uk_tube_stations_near_json But that's only because we're running old api-console code from early 2015. We'd like to bring it up to date, but... this basic feature seems to have been accidentally removed.

Maybe it would be better if I create this as a new issue (?)

from api-console.

jarrodek avatar jarrodek commented on August 26, 2024

This feature is working on dev version of the API console.

from api-console.

harry-wood avatar harry-wood commented on August 26, 2024

@jarrodek When you say 'dev version', what do you mean exactly? I was just trying out 'develop' branch, which doesn't seem to have permalinking working. I also looked at 'release/4.0.0' branch, but this seems quite different. Is there lots of work happening on v4.0.0? where do I found out about that?

from api-console.

jarrodek avatar jarrodek commented on August 26, 2024

@harry-wood It is release/4.0.0. Now the new console is a HTML element that you can use in an application that supports routing. It is now being documented but you can check https://www.npmjs.com/package/api-console-builder node module. If you won't set mainFile or embedded option it will generate a console as a standalone application that support routing. Otherwise you can use the console in any application and control the view with path property.

from api-console.

sichvoge avatar sichvoge commented on August 26, 2024

@harry-wood also see #328

from api-console.

sichvoge avatar sichvoge commented on August 26, 2024

Perfect! Thanks for confirming that it fixes this issue. We are currently preparing the release which is planned for Monday atm.

from api-console.

jarrodek avatar jarrodek commented on August 26, 2024

PROUDLY: Fixed with c74eacd

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.