Giter Site home page Giter Site logo

Comments (7)

GeorgDangl avatar GeorgDangl commented on August 27, 2024

We should also consider if there's a way to automatically sync the swagger.yaml file from this repository to Swagger Hub whenever it is changed. The other way, from Swagger Hub to GitHub, seems to be working out of the box.

from documents-api.

GeorgDangl avatar GeorgDangl commented on August 27, 2024

We could use this endpoint on Swagger Hub to automate it via GitHub Actions:
https://app.swaggerhub.com/apis-docs/swagger-hub/registry-api/1.0.63#/APIs/saveDefinition

from documents-api.

ykulbak avatar ykulbak commented on August 27, 2024

@GeorgDangl @pasi-paasiala I've added an integration in swaggerhub which syncs the spec from swaggerhub to github. The sync is pushing to a branch called swaggerhub, please check it out.

Sync from github to swaggerhub is only available with the Enterprise plan for swaggerhub.

from documents-api.

GeorgDangl avatar GeorgDangl commented on August 27, 2024

See also #6 as an alternative.

I'm fine with either approach, let's discuss it together๐Ÿ˜€

from documents-api.

GeorgDangl avatar GeorgDangl commented on August 27, 2024

Btw, the sync from Swagger Hub into the branch swaggerhub seems to overwrite the README at the moment. There's probably a checkmark somewhere, or we need to move the swagger.yaml to a sub folder.

from documents-api.

ykulbak avatar ykulbak commented on August 27, 2024

@GeorgDangl I've edited the integration - the README is no longer overwritten, see the swaggerhub-inbound branch. I could also remove the hidden .swagger-codegen-ignore file and the .swagger-codegen directory; What do you think?

from documents-api.

GeorgDangl avatar GeorgDangl commented on August 27, 2024

Yeah, I think we can remove the codegen directories as well - we haven't talked about it, but I don't see us creating and maintaining generated clients.

from documents-api.

Related Issues (9)

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.