From 153e9bd8f9e7b626e1551bd8cae5f36f756aa93e Mon Sep 17 00:00:00 2001 From: Tykayn Date: Thu, 18 Sep 2025 22:30:25 +0200 Subject: [PATCH] up extractor env getting --- doc/SEARCH_ENDPOINT.md | 4 +- doc/{ANTI_SPAM_MEASURES.md => anti_spam.md} | 0 doc/{TEST_PLAN.md => api_load_test.md} | 0 ...PI_QUERY_PARAMS.md => api_query_params.md} | 0 doc/database_schema.svg | 3 + doc/{DEMO_ENDPOINT.md => demo_endpoint.md} | 0 extractors/osm_cal.py | 11 +- oedb/resources/stats.py | 7 ++ oedb/utils/db.py | 7 ++ test_env_file_check.py | 117 ++++++++++++++++++ test_stats_endpoint.py | 51 ++++++++ 11 files changed, 196 insertions(+), 4 deletions(-) rename doc/{ANTI_SPAM_MEASURES.md => anti_spam.md} (100%) rename doc/{TEST_PLAN.md => api_load_test.md} (100%) rename doc/{API_QUERY_PARAMS.md => api_query_params.md} (100%) rename doc/{DEMO_ENDPOINT.md => demo_endpoint.md} (100%) create mode 100755 test_env_file_check.py create mode 100755 test_stats_endpoint.py diff --git a/doc/SEARCH_ENDPOINT.md b/doc/SEARCH_ENDPOINT.md index d6e4a76..ca8aaf0 100644 --- a/doc/SEARCH_ENDPOINT.md +++ b/doc/SEARCH_ENDPOINT.md @@ -39,7 +39,7 @@ Example request body: The search endpoint supports all the same query parameters as the `/event` endpoint. These parameters can be used to further refine your search beyond the geometric constraints. -For detailed information about the available query parameters, see the [API Query Parameters Documentation](API_QUERY_PARAMS.md). +For detailed information about the available query parameters, see the [API Query Parameters Documentation](api_query_params.md). ### Additional Parameters @@ -174,7 +174,7 @@ The OpenEventDatabase API implements caching and rate limiting to improve perfor - POST requests to `/event/search` are limited to 20 requests per minute per IP address. - If you exceed this limit, you will receive a `429 Too Many Requests` response with a `Retry-After` header indicating when you can try again. -For more information about the anti-spam and caching measures implemented in the API, see the [Anti-Spam and Caching Measures Documentation](ANTI_SPAM_MEASURES.md). +For more information about the anti-spam and caching measures implemented in the API, see the [Anti-Spam and Caching Measures Documentation](anti_spam.md). ## Error Handling diff --git a/doc/ANTI_SPAM_MEASURES.md b/doc/anti_spam.md similarity index 100% rename from doc/ANTI_SPAM_MEASURES.md rename to doc/anti_spam.md diff --git a/doc/TEST_PLAN.md b/doc/api_load_test.md similarity index 100% rename from doc/TEST_PLAN.md rename to doc/api_load_test.md diff --git a/doc/API_QUERY_PARAMS.md b/doc/api_query_params.md similarity index 100% rename from doc/API_QUERY_PARAMS.md rename to doc/api_query_params.md diff --git a/doc/database_schema.svg b/doc/database_schema.svg index 1466a59..e8aa5b0 100644 --- a/doc/database_schema.svg +++ b/doc/database_schema.svg @@ -1,6 +1,9 @@