appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Feature]: Add an option to copy CURL of a failed run from the debugger

Open abeatbeyondlab opened this issue 1 year ago • 8 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Summary

if I setup an api endpoint sometimes I have to re-export and test it inside a terminal with curl.

Why should this be worked on?

it is really helpful a button to export the text of the api call setup in appsmith

abeatbeyondlab avatar Mar 24 '24 14:03 abeatbeyondlab

@abeatbeyondlab endpoints in Appsmith cannot be accessed from outside the platform except via our new workflows feature where you can easily get the URL #3378

Nikhil-Nandagopal avatar Mar 25 '24 06:03 Nikhil-Nandagopal

@Nikhil-Nandagopal

I am talking about another topic.

I am only saying the export curl featuire that you find for example in api docs

I am talking about an export button that shows the curl equivalent about the parameters configured with appsmith

in docs you usually see like that image

but it can be much more simple as only a button that exports to clipboard the curl quivalent of what I configured on appsmith image

abeatbeyondlab avatar Mar 29 '24 12:03 abeatbeyondlab

I reopened here https://github.com/appsmithorg/appsmith/issues/32256

abeatbeyondlab avatar Mar 29 '24 12:03 abeatbeyondlab

@abeatbeyondlab please explain why you need that feature? I'm going to close the other one as well to avoid duplication. I'll be happy to reopen this once I fully understand the need here

Nikhil-Nandagopal avatar Mar 30 '24 05:03 Nikhil-Nandagopal

as i already wrote above. the need is an export curl command function

now is already implemented the curl import. if we have the "curl import" I dont understand why we dont have the "curl export"

abeatbeyondlab avatar Apr 03 '24 13:04 abeatbeyondlab

@abeatbeyondlab because the purpose of CURL import is to bring in external APIs into Appsmith but there is no need to export an API inside Appsmith to the outside world because Appsmith APIs are configured with bindings that read values from widgets. So they cannot be triggered from outside. Hope this diagram helps. If you want to trigger a workflow from a 3rd party system, I suggest using our workflows feature Screenshot 2024-04-03 at 8 39 36 PM

Nikhil-Nandagopal avatar Apr 03 '24 15:04 Nikhil-Nandagopal

@Nikhil-Nandagopal I think export curl will be helpful in troubleshooting. Ex : I have a developer who makes apis specifically for Appsmith, now if there's some error and API is not working as expected, he would ask for the curl of it, which then helps developer in testing things out.

sachans avatar Apr 25 '24 10:04 sachans

@sachans so what you are actually asking for is a CURL of a run that specifically failed in order to debug. Is that correct?

Nikhil-Nandagopal avatar Apr 29 '24 08:04 Nikhil-Nandagopal

the main goal should be to have a "curl export" button that it allows you to paste on a terminal and then debug better what is configured on appsmith reading from terminal the result of the curl export string.

abeatbeyondlab avatar May 06 '24 10:05 abeatbeyondlab

Yeah makes sense

Nikhil-Nandagopal avatar May 06 '24 11:05 Nikhil-Nandagopal

news on that?

abeatbeyondlab avatar May 20 '24 14:05 abeatbeyondlab

@abeatbeyondlab sorry this hasn't made it to our roadmap yet. We'll let you know once we prioritise it.

Nikhil-Nandagopal avatar May 21 '24 06:05 Nikhil-Nandagopal