v1
OpenAPI 3.0.42026-07-14475158859.0 KBadd donation + regenerate donations page (Auth policies: ganjoor:donations)
Request body
id - null for POST api -
record date
donation amount (0 for old imported records)
"تومان" is good, Amount Unit, if you send another Unit it would be consumed with EXPENSES of the same Unit, if it send EMPTY it wotld not be consumed!
donor name
null for POST api - date: (donation dates have been collected in different formats, so instead of keeping their dates in a DateTime field I ought to use a string field)
null for POST api -amount string (avoiding to parse different formats of old html text)
null for POST api -remaining (it could be ignored later when our data has been normalized enough and be calculated using related data)
null for POST api -expenditure desc
null for POST api - record is imported from old HTML text of donation page
Response
OK
id - null for POST api -
record date
donation amount (0 for old imported records)
"تومان" is good, Amount Unit, if you send another Unit it would be consumed with EXPENSES of the same Unit, if it send EMPTY it wotld not be consumed!
donor name
null for POST api - date: (donation dates have been collected in different formats, so instead of keeping their dates in a DateTime field I ought to use a string field)
null for POST api -amount string (avoiding to parse different formats of old html text)
null for POST api -remaining (it could be ignored later when our data has been normalized enough and be calculated using related data)
null for POST api -expenditure desc
null for POST api - record is imported from old HTML text of donation page