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

Simpler create endpoint #269

Open
joepio opened this issue Jan 3, 2022 · 0 comments
Open

Simpler create endpoint #269

joepio opened this issue Jan 3, 2022 · 0 comments

Comments

@joepio
Copy link
Member

joepio commented Jan 3, 2022

The /commit endpoint requires signing things. That is pretty hard to do without the @tomic/lib or atomic-lib libraries.

I'd like developers to be able to use a simpler endpoint. I think a /set endpoint could work. You can post JSON-AD resources there, and it will store the resources.

We have two approaches for storing:

  • Commit based. The server converts the posted resource into a commit, by comparing to an existing resource, if it exists. The server signs the commit using the default_agent. Should it always delete unspecified properties?
  • Overwrite based. Simply overwrite any existing resource with the new one. Simpler to implement, but no version data is stored, which makes the endpoint destructive.

Authentication

We need some form of authentication for this, at least if we allow it on publicly accessible servers.

Probably OIDC / OAuth Tokens #277

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