apidash icon indicating copy to clipboard operation
apidash copied to clipboard

Feature request: Support environment variables

Open vidya-hub opened this issue 1 year ago • 7 comments

Environment Variables Support (Under Development) #25

  1. Introducing the Environment tab for seamlessly incorporating environment variables in API requests within ApiDash.
  2. Users gain the ability to effortlessly manage multiple environments, with the freedom to create, edit, and delete variables within each environment.
  3. Select and utilize specific environments, tapping into their associated variables, when sending API requests from the requests page.

vidya-hub avatar Jan 20 '24 12:01 vidya-hub

Hi @vidya-hub Is the PR ready for review?

ashitaprasad avatar Feb 11 '24 11:02 ashitaprasad

Hi @ashitaprasad

No, Actually I am working on it, And few issues need to fix.

Once it's done I'll update you.

Thank you.

vidya-hub avatar Feb 11 '24 12:02 vidya-hub

Sure @vidya-hub. Can you kindly provide a checklist like the one mentioned below so that we can identify the tasks that have been completed and identify the remaining issues.

  • [x] Task 1 - A new tab to manage ....
  • [x] Task 2 - Persistence of env vars ..
  • [ ] Task 3 - Allow users to ....
  • [ ] Issue 1 - Issue with ....

Thanks!

ashitaprasad avatar Feb 11 '24 12:02 ashitaprasad

Hi @ashitaprasad

here is the checklist,

  • [x] A new tab to manage environments and environment variables,
  • [x] Persist the state of different environments,
  • [x] Allow Users to change the environments in API Request Pane,
  • [x] Allow users to select the environment variables as auto suggestion feature from the active environment in different API parameters fields,
  • [x] Reflect the selected environment variables with there actual environment values while sending the request with code gen support,
  • [ ] Persist the entire environments data in Local DB.

The last 3 key features that i am working on, Once it is finished i will update you.

Thank you!

vidya-hub avatar Feb 12 '24 06:02 vidya-hub

Thanks for the checklist @vidya-hub 👍

ashitaprasad avatar Feb 12 '24 18:02 ashitaprasad

Hi @ashitaprasad,

I've added the basic implementation,

  • [x] A new tab to manage environments and environment variables,
  • [x] Persist the state of different environments,
  • [x] Allow Users to change the environments in API Request Pane,
  • [x] Allow users to select the environment variables as an auto-suggestion feature from the active environment in the URL field (will give support for other request fields as well in the future )
  • [x] Reflect the selected environment variables with their actual environment values while sending the request

Screenshot 2024-02-16 215907 Screenshot 2024-02-16 215844 Screenshot 2024-02-16 215757 Screenshot 2024-02-16 215737 Screenshot 2024-02-16 215516

This is not a complete approach but it is a core-level working approach, Can you please review the code and the functionality with UI, Please provide the feedback, So that I can finish the other modules that are pending on the checklist.

Thank you.

vidya-hub avatar Feb 16 '24 16:02 vidya-hub

Thank @vidya-hub I will review the PR.

ashitaprasad avatar Feb 16 '24 17:02 ashitaprasad

@ashitaprasad Hello, so what is state of this PR? I see it is here for a long time without any changes..

mjablecnik avatar Jun 08 '24 21:06 mjablecnik

New version is in progress at #412

ashitaprasad avatar Jun 23 '24 07:06 ashitaprasad