Kong / insomnia

The open-source, cross-platform API client for GraphQL, REST, WebSockets, SSE and gRPC. With Cloud, Local and Git storage.
https://insomnia.rest
Apache License 2.0
34.37k stars 1.94k forks source link

Git Sync does not behave well in a monorepo #4789

Open JameelKhan9 opened 2 years ago

JameelKhan9 commented 2 years ago

Expected Behavior

After completing Git Sync could create collaborate on multiple API documents in the same repository across multiple product folders.

Actual Behavior

After completing Git Sync only one ".insomnia" folder is created at the root folder level.

Reproduction Steps

  1. Configure Git Sync
  2. Commit an API Document
  3. Check branch of repo for a single ".insomnia" root folder

Is there an existing issue for this?

Additional Information

Along with the configuration of a git repository to sync to, a config should be provided for the user to provide a relative file path to the .insomnia folder they want to have synced.

Insomnia Version

2022.3.0

What operating system are you using?

macOS

Operating System Version

macOS Monterey 12.3.1

Installation method

download dmg

Last Known Working Insomnia version

No response

filfreire commented 2 years ago

Hi @JameelKhan9, thank you for reporting this!

We don't officially support keeping track of more than one Design Document project in a single repository in the fashion you mentioned, e.g. defining more than one insomnia spec project (and possibly a custom path) in a single repository.

This is however a possibly valid feature request/improvement linked with some others we've been discussing internally, like allowing folks to split an OpenAPI spec file.

We'll update you here if there's any changes or fixes in the meantime.

sourceful-wing commented 9 months ago

Postman has shipped this in September 2023, any plans for Insomnia to match?

sanderkooger commented 1 month ago

@sourceful-karlson why the thumbs down? This would be a really cool feature. a mono repo could host multiple API's with their distinct config and settings.