{"openapi":"3.1.0","info":{"title":"ToteatLogin API","description":"Main authentication service compatible with legacy Datastore","version":"2.0.0"},"paths":{"/auth/login":{"get":{"tags":["Authentication"],"summary":"Login","description":"Placeholder for login endpoint.","operationId":"login_auth_login_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/logout":{"get":{"tags":["Authentication"],"summary":"Logout","description":"Placeholder for logout endpoint.","operationId":"logout_auth_logout_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/login/loginapple":{"post":{"tags":["Global Login"],"summary":"Apple Redirect Handler","description":"Handle Apple login redirects.\n\nArgs:\n    request: FastAPI request object\n\nReturns:\n    Redirect response to appropriate domain","operationId":"apple_redirect_handler_login_loginapple_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/login/loginglobal":{"get":{"tags":["Global Login"],"summary":"Global Redirect Handler","description":"Handle global login redirects.\n\nFuture replacement for https://www.toteat.com/shared/loginret.html\nWill redirect directly to domain based on state without going through www\n\nArgs:\n    request: FastAPI request object\n\nReturns:\n    Redirect response to appropriate domain","operationId":"global_redirect_handler_login_loginglobal_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["Global Login"],"summary":"Global Redirect Handler","description":"Handle global login redirects.\n\nFuture replacement for https://www.toteat.com/shared/loginret.html\nWill redirect directly to domain based on state without going through www\n\nArgs:\n    request: FastAPI request object\n\nReturns:\n    Redirect response to appropriate domain","operationId":"global_redirect_handler_login_loginglobal_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/login/test":{"get":{"tags":["Global Login"],"summary":"Test Service","description":"Test endpoint to verify login service is working.\n\nReturns:\n    JSON response with status message","operationId":"test_service_login_test_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/login/launch_popup":{"get":{"tags":["Global Login"],"summary":"Launch Popup Handler","description":"HTML launcher to bypass Apple's 403 due to strict Referer/Origin checks.\nThis route must be served from a registered Apple domain (e.g., app.toteat.com).\n\nQuery Parameters:\n    auth: Full Apple Sign-In URL (must begin with https://appleid.apple.com/)\n\nReturns:\n    HTML page that performs window.location.href to the Apple auth URL.","operationId":"launch_popup_handler_login_launch_popup_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/testing/test-models":{"get":{"summary":"Test Models","description":"Test endpoint to verify models work.","operationId":"test_models_testing_test_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/testing/testing_users":{"get":{"summary":"Testing Users","description":"Performs a complex multi-step read operation to test sync vs async performance.","operationId":"testing_users_testing_testing_users_get","parameters":[{"name":"async_mode","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Async Mode"}},{"name":"use_asyncio","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Use Asyncio"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/testing/users_by_email/{email}":{"get":{"summary":"Users By Email","description":"Get user by email address (read-only).","operationId":"users_by_email_testing_users_by_email__email__get","parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"string","title":"Email"}},{"name":"async_mode","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Async Mode"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/testing/test_logs":{"get":{"summary":"Test Logs","description":"Test endpoint that generates logs of all levels for testing.","operationId":"test_logs_testing_test_logs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Health Check","description":"Basic health check endpoint.","operationId":"health_check__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}