[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-docs] branch master updated: Donau: GET /charities
From: |
gnunet |
Subject: |
[taler-docs] branch master updated: Donau: GET /charities |
Date: |
Mon, 09 Oct 2023 15:45:43 +0200 |
This is an automated email from the git hooks/post-receive script.
pius-loosli pushed a commit to branch master
in repository docs.
The following commit(s) were added to refs/heads/master by this push:
new cb97ba3c Donau: GET /charities
cb97ba3c is described below
commit cb97ba3cb85753e9e8e399c58a87626a9a362166
Author: Pius Loosli <loosp2@bfh.ch>
AuthorDate: Mon Oct 9 15:43:57 2023 +0200
Donau: GET /charities
---
core/api-donau.rst | 41 ++++++-----------------------------------
1 file changed, 6 insertions(+), 35 deletions(-)
diff --git a/core/api-donau.rst b/core/api-donau.rst
index d974f2c2..b8f33a0e 100644
--- a/core/api-donau.rst
+++ b/core/api-donau.rst
@@ -426,48 +426,22 @@ Charity administration and status information
receipts_to_date: int;
}
-.. http:GET:: /charities/{id}
-
- return a charity
-
.. _donau_charity_get:
-.. http:get:: /charitys/$CHARITY_ID
+.. http:get:: /charities/$CHARITY_ID
Request information about a charity.
**Request:**
- :query timeout_ms=MILLISECONDS: *Optional.* If specified, the donau will
- wait up to MILLISECONDS for incoming funds
- before returning a 404 if the charity does
- not yet exist.
-
**Response:**
:http:statuscode:`200 OK`:
- The donau responds with a `CharitySummary` object; the charity was known
to the donau.
+ The donau responds with a `Charity` object
+ :http:statuscode:`400 Bad request`:
+ The charity id is malformed.
:http:statuscode:`404 Not found`:
- The charity key does not belong to a charity known to the donau.
-
- **Details:**
-
- .. ts:def:: CharitySummary
-
- interface CharitySummary {
- // Balance left in the charity.
- balance: Amount;
-
- // If set, age restriction is required to be set for each coin to this
- // value during the withdrawal from this reserve. The client then MUST
- // use a denomination with support for age restriction enabled for the
- // withdrawal.
- // The value represents a valid age group from the list of permissible
- // age groups as defined by the donau's output to /keys.
- maximum_age_group?: number;
- }
-
-
+ The charity id does not belong to a charity known to the donau.
.. http:POST:: /charities
@@ -497,14 +471,12 @@ Charity administration and status information
id: int;
}
-.. http:post:: /charitys/$CHARITY_ID/history
+.. http:get:: /charities/$CHARITY_ID/history
Request information about the history of a charity.
**Request:**
- The request body must be a `CharityHistoryRequest` object.
-
**Response:**
:http:statuscode:`200 OK`:
@@ -599,7 +571,6 @@ Charity administration and status information
}
-
.. http:PATCH:: /charities/{id}
Modify a charity
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-docs] branch master updated: Donau: GET /charities,
gnunet <=