POST
+ GET
+ /jukebox/api/v1/jukebox
{"X-Api-Key": <invoice_key>}
curl -X GET {{ request.url_root }}/jukebox/api/v1/jukebox/items -H
- "Content-Type: application/json" -H "X-Api-Key: {{
- g.user.wallets[0].inkey }}" -d '{"name": <string>,
- "description": <string>, "image": <data-uri string>,
- "price": <integer>, "unit": <"sat" or "USD">}'
-
- GET
- {"X-Api-Key": <invoice_key>}
{"X-Api-Key": <admin_key>}
{"id": <integer>, "wallet": <string>, "wordlist":
- <string>, "items": [{"id": <integer>, "name":
- <string>, "description": <string>, "image":
- <string>, "enabled": <boolean>, "price": <integer>,
- "unit": <string>, "lnurl": <string>}, ...]}<
+ [<jukebox_object>, ...]
curl -X GET {{ request.url_root }}/jukebox/api/v1/jukebox -H
- "X-Api-Key: {{ g.user.wallets[0].inkey }}"
+ curl -X GET {{ request.url_root }}api/v1/jukebox -H "X-Api-Key: {{
+ g.user.wallets[0].adminkey }}"
PUT
+ GET
+ /jukebox/api/v1/jukebox/<juke_id>
{"X-Api-Key": <invoice_key>}
{"X-Api-Key": <admin_key>}
<jukebox_object>
curl -X GET {{ request.url_root
- }}/jukebox/api/v1/jukebox/items/<item_id> -H "Content-Type:
- application/json" -H "X-Api-Key: {{ g.user.wallets[0].inkey }}" -d
- '{"name": <string>, "description": <string>, "image":
- <data-uri string>, "price": <integer>, "unit": <"sat"
- or "USD">}'
+ curl -X GET {{ request.url_root }}api/v1/jukebox/<juke_id> -H "X-Api-Key: {{
+ g.user.wallets[0].adminkey }}"
DELETE
+ POST/PUT
+ /jukebox/api/v1/jukebox/
{"X-Api-Key": <invoice_key>}
{"X-Api-Key": <admin_key>}
<jukbox_object>
curl -X GET {{ request.url_root
- }}/jukebox/api/v1/jukebox/items/<item_id> -H "X-Api-Key: {{
- g.user.wallets[0].inkey }}"
+ curl -X POST {{ request.url_root }}api/v1/jukebox/ -d
+ '{"user": <string, user_id>,
+ "title": <string>, "wallet":<string>, "sp_user":
+ <string, spotify_user_account>, "sp_secret": <string, spotify_user_secret>, "sp_access_token":
+ <string, not_required>, "sp_refresh_token":
+ <string, not_required>, "sp_device": <string, spotify_user_secret>, "sp_playlists":
+ <string, not_required>, "price":
+ <integer, not_required>}' -H "Content-type:
+ application/json" -H "X-Api-Key: {{g.user.wallets[0].adminkey }}"
DELETE
+ /jukebox/api/v1/jukebox/<juke_id>
+ {"X-Api-Key": <admin_key>}
<jukebox_object>
+ curl -X DELETE {{ request.url_root }}api/v1/jukebox/<juke_id> -H "X-Api-Key: {{
+ g.user.wallets[0].adminkey }}"
+
+