8000 🚀 Feature: Function custom execution url (REST API way) · Issue #5831 · appwrite/appwrite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

🚀 Feature: Function custom execution url (REST API way) #5831

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
mbos2 opened this issue Jul 17, 2023 · 4 comments
Closed
2 tasks done

🚀 Feature: Function custom execution url (REST API way) #5831

mbos2 opened this issue Jul 17, 2023 · 4 comments
Assignees
Labels
product / functions Fixes and upgrades for the Appwrite Functions.

Comments

@mbos2
Copy link
Contributor
mbos2 commented Jul 17, 2023

🔖 Feature description

Custom URL option for appwrite cloud functions so they can be consumed by REST API as well, than only by Create Execution API.

🎤 Pitch

As AWS Lambda can be called in a RESTful way in a combination with AWS Gateway services, could the same be done for Appwrite functions?

Let's say we make a appwrite function named get_collections. We by default get its ID which we can use to make an execition via Create Execution API.

But what if we want to expand how we use this cloud functions?
We can have function url like https://DOMAIN/PROJECT_ID/OUR-CUSTOM-PATH. OUR-CUSTOM-PATH is what's important here, and we could set something like get-collections, so the full path would be https://DOMAIN/PROJECT_ID/get-collections.

Here's some documentation on AWS gateway, there's probably a lot more in their docs.

https://docs.aws.amazon.com/lambda/latest/dg/services-apigateway.html
https://docs.aws.amazon.com/lambda/latest/dg/services-apigateway-tutorial.html

Of course there's also permissions issue and domain whitelisting for such functions.

Domain whitelist - either set domains that can use this function or allow any domain with a * character. (This can be a separate feature as well, as an improvement to cloud functions)

Permissions: (This could also be a separate feature)

  • We could set only specific users/teams to be able to use the function inside appwrite console
  • We could set anyone could use the function if they're logged in
  • Potentionally, we could also set that anyone can use the function even without being logged in. Which means appwrite doesn't even have to be installed in a project that consumes it.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@mbos2
Copy link
Contributor Author
mbos2 commented Jul 17, 2023

REST API way can be a setting to enable or disable.
If enabled, URL can be set. If disabled, if there's URL in there already, either keep it or clear it, doesn't matter.

Permissions and domain whitelisting can also go in settings

@mbos2
Copy link
Contributor Author
mbos2 commented Jul 17, 2023

Possibly related to this
#3069

Missed it

@stnguyen90
Copy link
Contributor

Can this be closed since it's a duplicate of #3069?

Also, this is planned for the next version of Appwrite. See FYI, this is planned for the next version of Appwrite. See #5016.

@stnguyen90 stnguyen90 added the product / functions Fixes and upgrades for the Appwrite Functions. label Jul 17, 2023
@stnguyen90 stnguyen90 self-assigned this Jul 17, 2023
@mbos2
Copy link
Contributor Author
mbos2 commented Jul 17, 2023

Can this be closed since it's a duplicate of #3069?

Also, this is planned for the next version of Appwrite. See FYI, this is planned for the next version of Appwrite. See #5016.

Sure, but this could be mentioned (linked) in a comment inside #3069. Which already is, all good.

@stnguyen90 stnguyen90 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product / functions Fixes and upgrades for the Appwrite Functions.
Projects
None yet
Development

No branches or pull requests

2 participants
0