winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
4.97k stars 196 forks source link

Preserve the API state after restarting the simulator #6315

Closed polamoros closed 4 months ago

polamoros commented 5 months ago

Use Case

When interacting with an API through the Console, I need to fill in some request details such as the body, headers, and variables.

In some scenarios, such as when restarting the simulator, the API’s state is reset, and I need to re-enter all the values.

Proposed Solution

No response

Implementation Notes

No response

Component

Wing Console

Community Notes

ekeren commented 5 months ago

In some scenarios, such as when restarting the simulator, the API’s state is reset, and I need to re-enter all the values.

💯 This happens a lot

polamoros commented 4 months ago

I think this was already fixed here: https://github.com/winglang/wing/pull/6527 https://github.com/winglang/wing/pull/6288

I'm able to fill in some data in the API interaction view, remove the resource, continue using the console, and then recreate the API. The data is still there.

https://github.com/winglang/wing/assets/5547636/b9558a0e-2594-4c39-b630-0a211956e372