Files
semapform_api/test_api.py
WorldTeacher 811313d1ef
All checks were successful
PR tests / build-and-smoke (pull_request) Successful in 1m43s
fix: add uvicorn dependency
feat: add test_api file
2025-11-25 09:59:24 +01:00

9 lines
245 B
Python

# test api endpoint with a signature, print the response
import urllib.request
response = urllib.request.urlopen(
"http://localhost:8001/api/validate-signature?signature=ST%20250%20U42%20%2815%29",
)
print(response.read().decode("utf-8"))