taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit 1b80fa46a3fd6386a6612739230e96bb83ac4a85
parent 147196e36efa7b1c3af87b71c135586e83cf15b6
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 11 Jun 2024 16:22:38 +0200

document HTTP status code for /terms and /privacy

Diffstat:
Mcore/tos.rst | 23+++++++++++++++++++++++
1 file changed, 23 insertions(+), 0 deletions(-)

diff --git a/core/tos.rst b/core/tos.rst @@ -35,9 +35,32 @@ and the privacy policy of a service. <https://datatracker.ietf.org/doc/draft-nottingham-http-availability-hints/>`_). Clients can use this to generate a language switcher for users that may not have expressed a proper language preference. + **Response:** + + :http:statuscode:`200 OK`: + The body is the terms of service in the requested + encoding and language. + :http:statuscode:`501 Not Implemented`: + The exchange lacks a valid terms of service + configuration. A human-readable error message + is returned. Wallets should not require the + human to accept any terms of service (and do not + need to show this message). .. http:get:: /privacy Get the privacy policy of the service. Behaves the same way as The "/terms" endpoint, except that it returns the privacy policy instead of the terms of service. + + **Response:** + + :http:statuscode:`200 OK`: + The body is the privacy policy in the requested + encoding and language. + :http:statuscode:`501 Not Implemented`: + The exchange lacks a valid terms of service + configuration. A human-readable error message + is returned. Wallets should not require the + human to accept any terms of service (and do not + need to show this message).