Skip to content
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

Webhook support - create AtomicData by calling a webhook #976

Open
joepio opened this issue Oct 1, 2024 · 0 comments
Open

Webhook support - create AtomicData by calling a webhook #976

joepio opened this issue Oct 1, 2024 · 0 comments

Comments

@joepio
Copy link
Member

joepio commented Oct 1, 2024

Create instances of resources in one specific scope (parent) without needing an Agent / Commits / Token or whatsoever. Just send a POST request with a JSON body to that webhook and you're done!

When is this useful

  • Linking to other services / integrating with other tools (through hubs like IFTTT). For example: create a person every time a form has been submitted on airtable.

How to build this: ClassExtender plugin

  • We create a new WebHook class + ClassExtender (plugin)
  • They have a certain target where they write the information
  • They have a POST handler that parses the incoming JSON and creates a new resource in the hierarchy, at the target location.
  • The rights of the Agent who created the WebHook are checked when creating a new resource through that webhook.

Not to be confused with

The other direction in which webhooks can work: as notifications when something in AtomicServer changes #77. This is also very valuable, but for a different usecase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant