User Tools

Site Tools


config:stash

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
config:stash [2025/08/22 13:33] Wulf Rajekconfig:stash [2025/08/30 00:01] (current) – [api] Wulf Rajek
Line 181: Line 181:
       "paths": ["/data/stash-temp"]       "paths": ["/data/stash-temp"]
     }     }
 +  }'
 +
 +curl -X POST http://localhost:9999/graphql \
 +  -H "Content-Type: application/json" \
 +  -d '{
 +    "query": "mutation { scanMetadata(input: { paths: [\"/path/to/your/folder\"] generateCovers: true generatePreviews: true generateSprites: true generatePhashes: true }) }"
   }'   }'
 </code> </code>
 +
  
 <code> <code>
Line 189: Line 196:
   -H "Content-Type: application/json" \   -H "Content-Type: application/json" \
   -d '{"query": "mutation { metadataScan(input: {}) }"}'   -d '{"query": "mutation { metadataScan(input: {}) }"}'
 +
 +curl -X POST http://localhost:9999/graphql \
 +  -H "Content-Type: application/json" \
 +  -d '{"query": "mutation { scanMetadata(input: { generateCovers: true generatePreviews: true generateSprites: true generatePhashes: true }) }"}'
 +
 </code> </code>
  
 +Show status:
 +<code>
 +curl -X POST http://localhost:9999/graphql \
 +  -H "Content-Type: application/json" \
 +  -d '{"query": "{ metadataScanStatus { status progress } }"}'
 +</code>
 +
 +Show status until done:
 +<code>
 +while true; do
 +  curl -s -X POST http://localhost:9999/graphql \
 +    -H "Content-Type: application/json" \
 +    -d '{"query": "{ metadataScanStatus { status progress } }"}' \
 +  | jq '.data.metadataScanStatus';
 +  sleep 5;
 +done
 +</code>
  
  
config/stash.txt · Last modified: by Wulf Rajek