diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-01-19 14:38:57 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-01-19 14:38:57 +0100 |
commit | 21e28d6d049a948fe71817da7cb3e3b0f1639eb6 (patch) | |
tree | 40dc5e591676cf64d67d4986ab580402d5db498b /doc/sphinx/rest.rst | |
parent | 18c53ce9ac45efbf6bcb53995eb5d10a357c5846 (diff) | |
download | anastasis-21e28d6d049a948fe71817da7cb3e3b0f1639eb6.tar.gz anastasis-21e28d6d049a948fe71817da7cb3e3b0f1639eb6.tar.bz2 anastasis-21e28d6d049a948fe71817da7cb3e3b0f1639eb6.zip |
implement routine to download meta data and decrypt to libanastasis; improve API to include timestamp
Diffstat (limited to 'doc/sphinx/rest.rst')
-rw-r--r-- | doc/sphinx/rest.rst | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/doc/sphinx/rest.rst b/doc/sphinx/rest.rst index 7341992..b5ab50d 100644 --- a/doc/sphinx/rest.rst +++ b/doc/sphinx/rest.rst @@ -167,11 +167,18 @@ In the following, UUID is always defined and used according to `RFC 4122`_. .. ts:def:: RecoveryMetaSummary interface RecoveryMetaSummary { - // Version numbers as a string (!) are used as keys, - // the value being the base32-encoded encrypted meta data - // for that version. A value can be NULL if the document + // Version numbers as a string (!) are used as keys. + "$VERSION": MetaData; + } + + interface MetaData { + // The meta value can be NULL if the document // exists but no meta data was provided. - "$VERSION": EncryptedMetaData; + meta?: String; + + // Server-time indicative of when the recovery + // document was uploaded. + upload_time: Timestamp; } .. http:get:: /policy/$ACCOUNT_PUB[?version=$NUMBER] |