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
Closed as not planned
@mbos2

Description

@mbos2

🔖 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?

Metadata

Metadata

Assignees

Labels

product / functionsFixes and upgrades for the Appwrite Functions.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0