giga_tcg/requests.md
2025-02-10 19:53:47 -05:00

20 lines
658 B
Markdown

curl -J http://192.168.1.41:8000/api/tcgplayer/inventory/update --remote-name
curl -J -X POST \ -H "Content-Type: application/json" \
-d '{"open_box_ids": ["e20cc342-23cb-4593-89cb-56a0cb3ed3f3"]}' \
http://192.168.1.41:8000/api/tcgplayer/inventory/add --remote-name
curl -X POST http://192.168.1.41:8000/api/boxes \
-F "type=draft" \
-F "set_code=WOE" \
-F "sku=195166231631" \
-F "num_cards_expected=540"
curl -X POST http://192.168.1.41:8000/api/boxes/box123/open \
-H "Content-Type: application/json" \
-d '{
"product_id": "box123",
"file_ids": ["file1", "file2"],
"num_cards_actual": 15,
"date_opened": "2025-02-07T12:00:00Z"
}'