- Set up FastAPI app with Pydantic validation for magnet URIs and IMDb IDs - Configure CORSMiddleware to allow cross-origin browser extension requests - Include curl request specification and UV project configuration
7 lines
203 B
Plaintext
7 lines
203 B
Plaintext
curl -X POST http://localhost:8000/download \
|
|
-H "Content-Type: application/json" \
|
|
-d '{
|
|
"magnet": "magnet:?xt=urn:btih:1234567890abcdef1234567890abcdef12345678",
|
|
"imdbid": "tt1234567"
|
|
}'
|