{"openapi":"3.1.0","info":{"title":"Megaannum CMS Adapter","description":"A Content Management System built with FastAPI","version":"0.1.0"},"paths":{"/api/fx-rates/data":{"get":{"tags":["API"],"summary":"Get Fx Rate Data","operationId":"get_fx_rate_data_api_fx_rates_data_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"trade_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trade Date"}},{"name":"from_currency","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":3,"title":"From Currency"}},{"name":"to_currency","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":3,"title":"To Currency"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FXRateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fx-rates/history":{"get":{"tags":["API"],"summary":"Get Fx Rate History","operationId":"get_fx_rate_history_api_fx_rates_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Date"}},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Date"}},{"name":"from_currency","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":3,"maxLength":3},{"type":"null"}],"title":"From Currency"}},{"name":"to_currency","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":3,"maxLength":3},{"type":"null"}],"title":"To Currency"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FXRateHistoricalItem"},"title":"Response Get Fx Rate History Api Fx Rates History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/protected":{"get":{"tags":["API"],"summary":"Protected Route","description":"Example protected endpoint that requires authentication","operationId":"protected_route_api_protected_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/market-data-api/{path_name}":{"get":{"tags":["API"],"summary":"Call Market Data Api","operationId":"call_market_data_api_api_market_data_api__path_name__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"path_name","in":"path","required":true,"schema":{"type":"string","title":"Path Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["API"],"summary":"Call Market Data Api","operationId":"call_market_data_api_api_market_data_api__path_name__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"path_name","in":"path","required":true,"schema":{"type":"string","title":"Path Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["API"],"summary":"Call Market Data Api","operationId":"call_market_data_api_api_market_data_api__path_name__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"path_name","in":"path","required":true,"schema":{"type":"string","title":"Path Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["API"],"summary":"Call Market Data Api","operationId":"call_market_data_api_api_market_data_api__path_name__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"path_name","in":"path","required":true,"schema":{"type":"string","title":"Path Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["API"],"summary":"Call Market Data Api","operationId":"call_market_data_api_api_market_data_api__path_name__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"path_name","in":"path","required":true,"schema":{"type":"string","title":"Path Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/client-data-api/{path_name}":{"get":{"tags":["API"],"summary":"Call Client Data Api","operationId":"call_client_data_api_api_client_data_api__path_name__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"path_name","in":"path","required":true,"schema":{"type":"string","title":"Path Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["API"],"summary":"Call Client Data Api","operationId":"call_client_data_api_api_client_data_api__path_name__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"path_name","in":"path","required":true,"schema":{"type":"string","title":"Path Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["API"],"summary":"Call Client Data Api","operationId":"call_client_data_api_api_client_data_api__path_name__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"path_name","in":"path","required":true,"schema":{"type":"string","title":"Path Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["API"],"summary":"Call Client Data Api","operationId":"call_client_data_api_api_client_data_api__path_name__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"path_name","in":"path","required":true,"schema":{"type":"string","title":"Path Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["API"],"summary":"Call Client Data Api","operationId":"call_client_data_api_api_client_data_api__path_name__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"path_name","in":"path","required":true,"schema":{"type":"string","title":"Path Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/login":{"post":{"tags":["Authentication"],"summary":"Login With Firebase","description":"Authenticate with Firebase and return a JWT token.\n\nFor new users (signup), you can optionally provide:\n- first_name: User's first name\n- last_name: User's last name  \n- company_role: User's role in the company\n\nIf these fields are not provided during signup, they will be set to empty strings\nand can be updated later through the user profile update endpoint.","operationId":"login_with_firebase_api_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirebaseTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/":{"get":{"tags":["Users"],"summary":"Get User","description":"Get user by Firebase UID. Requires authentication.","operationId":"get_user_api_users__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientSchema"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["Users"],"summary":"Update User Data","description":"Update user data including company information. Requires authentication.","operationId":"update_user_data_api_users__put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateClientRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Update User Data Api Users  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/treasury-menu-settings":{"get":{"tags":["Treasury App Menu Setting"],"summary":"Get My Menu Assignment","operationId":"get_my_menu_assignment_api_treasury_menu_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"summary":"Health Check","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"ClientSchema":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"type":"string","title":"Email"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"company_role":{"type":"string","title":"Company Role"},"tier":{"$ref":"#/components/schemas/ClientTier"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"company_type":{"anyOf":[{"$ref":"#/components/schemas/CompanyType"},{"type":"null"}]},"business_registered_region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Registered Region"},"registered_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registered Address"},"business_registration_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Registration Number"},"place_of_domicile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Place Of Domicile"},"update_time":{"type":"string","format":"date-time","title":"Update Time"},"create_time":{"type":"string","format":"date-time","title":"Create Time"},"firebase_uid":{"type":"string","title":"Firebase Uid"},"client_data_endpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Data Endpoint"}},"type":"object","required":["id","email","first_name","last_name","company_role","tier","update_time","create_time","firebase_uid"],"title":"ClientSchema"},"ClientTier":{"type":"string","enum":["basic","upgrade","premium"],"title":"ClientTier"},"CompanyType":{"type":"string","enum":["limited","partnership","sole_proprietorship","corporation","llc","non_profit","public_limited"],"title":"CompanyType"},"FXRateHistoricalItem":{"properties":{"trade_date":{"type":"string","format":"date","title":"Trade Date"},"mid_close":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mid Close"},"from_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Currency"},"to_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Currency"}},"type":"object","required":["trade_date"],"title":"FXRateHistoricalItem"},"FXRateResponse":{"properties":{"mid_close":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mid Close"}},"type":"object","title":"FXRateResponse"},"FirebaseTokenRequest":{"properties":{"id_token":{"type":"string","title":"Id Token","description":"Firebase ID token"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name","description":"User's first name for signup"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name","description":"User's last name for signup"},"company_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Role","description":"User's company role for signup"}},"type":"object","required":["id_token"],"title":"FirebaseTokenRequest","description":"Request model for Firebase token verification"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Token":{"properties":{"access_token":{"type":"string","title":"Access Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"},"expires_in":{"type":"integer","title":"Expires In"},"user_id":{"type":"string","title":"User Id"},"is_first_login":{"type":"boolean","title":"Is First Login"}},"type":"object","required":["access_token","expires_in","user_id","is_first_login"],"title":"Token","description":"Response model for access token"},"UpdateClientRequest":{"properties":{"client_id":{"type":"integer","title":"Client Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"company_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Role"},"tier":{"anyOf":[{"$ref":"#/components/schemas/ClientTier"},{"type":"null"}]},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"company_type":{"anyOf":[{"$ref":"#/components/schemas/CompanyType"},{"type":"null"}]},"business_registered_region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Registered Region"},"registered_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registered Address"},"client_data_endpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Data Endpoint"},"business_registration_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Registration Number"},"place_of_domicile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Place Of Domicile"},"firebase_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Firebase Uid"}},"type":"object","required":["client_id"],"title":"UpdateClientRequest"},"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"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}