Skip to content
Snippets Groups Projects
Commit 807eed34 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

A proposed interface

parent ede17a6e
No related branches found
No related tags found
1 merge request!59Unblinded token web interface
......@@ -48,3 +48,20 @@ The response is **OK** with ``application/json`` content-type response body like
{"vouchers": [<voucher status object>, ...]}
The elements of the list are objects like the one returned by issuing a **GET** to a child of this collection resource.
``GET /storage-plugins/privatestorageio/zkapauthz-v1/zkap``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This endpoint allows an external agent to retrieve unused ZKAPs present in the node's ZKAP database.
ZKAPs are returned in ascending text sorted order.
This endpoint accepts several query arguments:
* limit: An integer limiting the number of ZKAPs to retrieve.
* position: A string which can be compared against ZKAP values.
Only ZKAPs which sort as great than this value are returned.
This endpoint accepts no request body.
The response is **OK** with ``application/json`` content-type response body like::
{"total": <integer>, "zkaps": [<zkap string>, ...]}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment