Code Monkey home page Code Monkey logo

Comments (9)

rbren avatar rbren commented on May 10, 2024

Here's the link:
http://apis-guru.github.io/api-models/api/v1/list.json

Ivan, maybe redirect to that page from apis-guru.github.io/api-models?

Bobby Brennan
[email protected]

On Thu, Nov 5, 2015 at 5:21 PM, Roman Hotsiy [email protected]
wrote:

Currently this page http://apis-guru.github.io/api-models/ returns 404
errer. It would be great if it had list of links to all the modles in this
repo


Reply to this email directly or view it on GitHub
#17.

from openapi-directory.

IvanGoncharov avatar IvanGoncharov commented on May 10, 2024

@bobby-brennan I think it rude to show JSON as main page of site.
And I understand use case, Github disable CORS on raw links inside repo.
So if you want to use spec in some online service without proxy you need to make url http://apis-guru.github.io/api-models/ + which is not so obvious and easy.
I think simple html with links to specs and small text section will satisfy all needs.

from openapi-directory.

RomanHotsiy avatar RomanHotsiy commented on May 10, 2024

I'm not sure but I believe that it's not possible to have redirects on Github pages.

from openapi-directory.

brennebeck avatar brennebeck commented on May 10, 2024

I generally agree with this, there should definitely be something on the root page. But @IvanGoncharov - are you thinking this should be human friendly? Seems so by this comment:

I think it rude to show JSON as main page of site.

If so, I think the main gh-page should default to a simple splash screen of all the models and they should link to the swagger,etc. generated docs with an additional link to the actual json.

Thoughts?

from openapi-directory.

IvanGoncharov avatar IvanGoncharov commented on May 10, 2024

they should link to the swagger,etc. generated docs

I think generating docs is out of scope of this project. I don't want to compete with companies which provide API related service, instead I want to supply them with API specs. So https://any-api.com/ is showing generated docs and https://sdks.io/ is generating SDKs. At the same time I want this project to be vendor-independent so I link them only in this section.

Ideally I want to create main page that explain this project(Reveal.js is good candidate). But I don't have time and knowledge at the moment.

@RomanGotsiy pointed to real problem, at the moment it's hard to guess link to particular Swagger spec.
And thinking about KISS solution, very simple HTML with links like that:

<a href="https://apis-guru.github.io/api-models/googleapis.com/drive/v1/swagger.json">
  googleapis.com/drive/v1/swagger.json
</a>

@brennebeck What do you think?

P.S. I'm gladly accept any help and I'm really open to PRs :)
If you have some questions you we can chat on Gitter

from openapi-directory.

brennebeck avatar brennebeck commented on May 10, 2024

I definitely think linking to all the specs is better than 404'ing and is a good placeholder until something matching a proper explanation page, like you describe, is in place.

Do you have any preference for a language or kit to automate the building of this? I have a few extra hours this week and would be glad to give it a go - nobody wants to manually edit that page with every addition, I'm sure ;)

from openapi-directory.

IvanGoncharov avatar IvanGoncharov commented on May 10, 2024

I use collection.js script to do all operations with collection.
After each commit deploy_gh_pages.sh script is executed and it already have commands for generating CSV and REST API.
You can add separate command to generate HTML, to get list of files use getSpecs function.

from openapi-directory.

brennebeck avatar brennebeck commented on May 10, 2024

Thanks! I'll work on putting something together this week 👍

from openapi-directory.

IvanGoncharov avatar IvanGoncharov commented on May 10, 2024

@brennebeck Do you have any progress?
You can make PR with unfinished code and I will help.

from openapi-directory.

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.