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

Best way to sync projects? #62

Open
Muttok opened this issue May 5, 2022 · 1 comment
Open

Best way to sync projects? #62

Muttok opened this issue May 5, 2022 · 1 comment

Comments

@Muttok
Copy link

Muttok commented May 5, 2022

Is there any good practice to sync tripletex projects to on-prem database?
We have a customer that needs a local db with tripletex projects and we want to keep the sync job to minimum data transfer.
The customer service has a "changedSince" property that works perfect. Is there anything similar to projects?

@VebjornRiiser
Copy link

Very late, but you could use the "If-None-Match" Header.
On the first call to projects you put something that will not match. ex: "If-None-Match: 1"
Then you will get versionDigest as part of the response. Then you could check a while later and then you will get a 304 not modified if the projects has not changed.

Another option is to use webhooks.
You can subscribe to project.create, project.update and project.delete

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

2 participants