gnunet-handbook

The GNUnet Handbook
Log | Files | Refs

commit 65481c379b33bbc7f660fa84ba59a323aab24f53
parent 5f853d253daa5bc700b549fd40e4086aee1058b8
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date:   Sun, 23 Oct 2022 22:04:09 +0900

update API to reflect recent changes

Diffstat:
Mdevelopers/rest/namestore.rst | 22++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)

diff --git a/developers/rest/namestore.rst b/developers/rest/namestore.rst @@ -36,31 +36,37 @@ Responses are provided in the JSON format accordingly. // The string representation of the record type, e.g. "A" for an IPv4 address record_type: string; - // The expiration time, e.g. "1 day" - expiration_time: string; + // The relative expiration time, in microseconds. Set if is_relative_expiration: true + relative_expiration: string; + + // The absolute expiration time, in microseconds. Not set if is_relative_expiration: true + absolute_expiration: string; // Whether or not this is a private record - private: boolean; + is_private: boolean; // Whether or not the expiration time is relative (else absolute) - relative_expiration: boolean; + is_relative_expiration: boolean; // Whether or not this is a supplemental record - supplemental: boolean; + is_supplemental: boolean; // Whether or not this is a shadow record - shadow: boolean + is_shadow: boolean } .. _NamestoreError: -.. ts:def:: NamestoreError +.. ts:def:: GnunetError - interface NamestoreError { + interface GnunetError { // The error description error: string; + // The error code + error_code: integer + }