mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
undo incorrect purchase api documentation changes
This commit is contained in:
+1
-22
@@ -23,8 +23,7 @@ On a invalid request body: HTTP status code 400 Bad request
|
|||||||
|
|
||||||
On a invalid auth token: HTTP status code 401 Unauthorized
|
On a invalid auth token: HTTP status code 401 Unauthorized
|
||||||
|
|
||||||
On success: a JSON object with the property ``canDoPurchase`` (string), ``googlePlayPublicKey`` (string, base64)
|
On success: a JSON object with the property ``canDoPurchase`` (string) and ``googlePlayPublicKey`` (string, base64)
|
||||||
and ``permitDebts`` (boolean, optional, default false).
|
|
||||||
|
|
||||||
possible values of ``canDoPurchase``:
|
possible values of ``canDoPurchase``:
|
||||||
|
|
||||||
@@ -34,26 +33,6 @@ possible values of ``canDoPurchase``:
|
|||||||
|
|
||||||
The ``googlePlayPublicKey`` is the key by which purchases using google play should be signed.
|
The ``googlePlayPublicKey`` is the key by which purchases using google play should be signed.
|
||||||
|
|
||||||
## POST /purchase/finish-purchase-by-debts
|
|
||||||
|
|
||||||
Use this to unlock without payment. Limitations apply.
|
|
||||||
|
|
||||||
### request
|
|
||||||
|
|
||||||
see [this JSON schema](../schema/candopurchaserequest.md)
|
|
||||||
|
|
||||||
Note that ``type`` is not used at all.
|
|
||||||
|
|
||||||
### response
|
|
||||||
|
|
||||||
On a invalid request body: HTTP status code 400 Bad request
|
|
||||||
|
|
||||||
On a invalid auth token: HTTP status code 401 Unauthorized
|
|
||||||
|
|
||||||
If not granted: HTTP status code 409 Conflict
|
|
||||||
|
|
||||||
On success: HTTP status code 200
|
|
||||||
|
|
||||||
## POST /purchase/finish-purchase-by-google-play
|
## POST /purchase/finish-purchase-by-google-play
|
||||||
|
|
||||||
Use this to report a purchase to the server/ unlock all features after a purchase
|
Use this to report a purchase to the server/ unlock all features after a purchase
|
||||||
|
|||||||
Reference in New Issue
Block a user