Validate api_post_donation requests
This commit is contained in:
parent
010d59caac
commit
9390a79cca
1 changed files with 5 additions and 14 deletions
|
|
@ -77,20 +77,11 @@ async def api_create_donation():
|
||||||
|
|
||||||
|
|
||||||
@twitchalerts_ext.route("/api/v1/postdonation", methods=["POST"])
|
@twitchalerts_ext.route("/api/v1/postdonation", methods=["POST"])
|
||||||
# @api_validate_post_request(
|
@api_validate_post_request(
|
||||||
# schema={
|
schema={
|
||||||
# "id": {"type": "string", "required": True},
|
"id": {"type": "string", "required": True},
|
||||||
# "description": {"type": "string", "allow_unknown": True},
|
}
|
||||||
# "onchainaddress": {"type": "string", "allow_unknown": True},
|
)
|
||||||
# "payment_request": {"type": "string", "allow_unknown": True},
|
|
||||||
# "payment_hash": {"type": "string", "allow_unknown": True},
|
|
||||||
# "time": {"type": "integer", "allow_unknown": True},
|
|
||||||
# "amount": {"type": "integer", "allow_unknown": True},
|
|
||||||
# "paid": {"type": "boolean", "allow_unknown": True},
|
|
||||||
# "timestamp": {"type": "integer", "allow_unknown": True},
|
|
||||||
# "completelink": {"type": "string", "allow_unknown": True},
|
|
||||||
# }
|
|
||||||
# )
|
|
||||||
async def api_post_donation():
|
async def api_post_donation():
|
||||||
"""Posts a paid donation to Stremalabs/StreamElements.
|
"""Posts a paid donation to Stremalabs/StreamElements.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue