-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow partial customerdb.read based on last_changed date
- Loading branch information
1 parent
657510d
commit 0f8505c
Showing
7 changed files
with
94 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,9 @@ A valid JSON-RPC request is sent via HTTP with the HTTP header `Content-Type: ap | |
``` | ||
|
||
# Methods | ||
## `customers.read` - get all customers from server | ||
## `customers.read` - get customers from server | ||
### Parameters | ||
- `diff_since` (optional) - only return records changed since this date | ||
- `username` - username for authentication | ||
- `password` - password for authentication | ||
- `playstore_token` (optional) - Google Play Store token for server-side subscription payment check (not of interest for self-hosted servers) | ||
|
@@ -31,6 +32,7 @@ A valid JSON-RPC request is sent via HTTP with the HTTP header `Content-Type: ap | |
"id": 1, | ||
"method": "customerdb.read", | ||
"params": { | ||
"diff_since": "2022-11-01 20:48:00", | ||
"username": "[email protected]", | ||
"password": "12345678" | ||
} | ||
|
@@ -75,7 +77,7 @@ A valid JSON-RPC request is sent via HTTP with the HTTP header `Content-Type: ap | |
} | ||
``` | ||
|
||
## `customers.put` - upload/update all customers to server | ||
## `customers.put` - update/create customers on server | ||
### Parameters | ||
- `username` - username for authentication | ||
- `password` - password for authentication | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Agent-Server Communication Method | ||
Architecture Decision Record | ||
Lang: en | ||
Encoding: utf-8 | ||
Date: 2022-11-01 | ||
Author: Georg Sieber | ||
|
||
## Decision | ||
All timestamps are stored in UTC time in the database on the server. | ||
|
||
## Status | ||
Accepted | ||
|
||
## Context | ||
Since the Customer Database app targets users all around the world, timestamps must be in UTC time to avoid time zone conflicts. | ||
|
||
## Consequences | ||
All communication over the API must also use UTC timestamps. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.