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
34.35k stars 3.72k forks source link

[Feature]-[110]:Rest API / CURL support Custom Methods #11235

Open jacebenson opened 2 years ago

jacebenson commented 2 years ago

Is there an existing issue for this?

Summary

I was looking at this tool and wanted to read my caldav stuff. I tried both CURL import and REST API imports to get this to work.

I am able to locally pull my calendar propdata with this call;

curl --request PROPFIND \
  --url https://caldav.fastmail.com/dav/calendars/user/jace@example.com \
  --header 'Authorization: Basic nevergunnagiveitaway=' \
  --header 'Content-Type: application/xml'

OR

curl -X PROPFIND \
  --url https://caldav.fastmail.com/dav/calendars/user/jace@example.com \
  --header 'Authorization: Basic nevergunnagiveitaway=' \
  --header 'Content-Type: application/xml'

However, when I try that in appsmith I get an error of Invalid method in cURL command: PROPFIND.

More Links:

Why should this be worked on?

This would allow folks to integrate with caldav, carddav, and webdav servers. I'm sure there's other odd custom methods outside of these but allowing custom methods could really open this up to allow a lot of other integrations.

rohan-arthur commented 2 years ago

Scope/User Flow As an app developer, when I go to the API page, I should be able to:

  1. see the list of supported methods, and select one of these
  2. if the method that I want to select is not listed, I should be able to enter it

Out of scope

  1. Flow for persisting the custom method across actions: I should merely be able to add a custom method in one action, and that method should be available within that action only.

cc @parth-appsmith

parth-appsmith commented 2 years ago

This will be taken care of by the new designs for #11374

rohan-arthur commented 2 years ago

REST 6m usage: 4400 assume 5% requirement: 220

Stats

Stat Values
Reach      220
Effort (months)  <>
ayushpahwa commented 2 years ago

REST 6m usage: 4400 assume 5% requirement: 220

Stats

Stat Values
Reach      220
Effort (months)  1