appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
33.95k stars 3.66k forks source link

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

Open abeatbeyondlab opened 6 months ago

abeatbeyondlab commented 6 months ago

Is there an existing issue for this?

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

Nikhil-Nandagopal commented 6 months ago

@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

abeatbeyondlab commented 6 months ago

@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 commented 6 months ago

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

Nikhil-Nandagopal commented 6 months ago

@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

abeatbeyondlab commented 6 months ago

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"

Nikhil-Nandagopal commented 6 months ago

@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

sachans commented 5 months ago

@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.

Nikhil-Nandagopal commented 5 months ago

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

abeatbeyondlab commented 4 months ago

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.

Nikhil-Nandagopal commented 4 months ago

Yeah makes sense

abeatbeyondlab commented 4 months ago

news on that?

Nikhil-Nandagopal commented 4 months ago

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