{"openapi":"3.0.0","info":{"title":"admin_diageopersonalisationstudio API Discovery","version":"discovery-2026-02-12","description":"Auto-discovered API endpoints for Diageo Personalisation Studio Admin (admin.diageopersonalisationstudio.com). Three-tier architecture: Umbraco/.NET CMS backend, PHP Lumen middleware, React frontend. The Umbraco backend exposes API endpoints under /api/*, the PHP middleware provides image processing and label generation endpoints, and a serverless Lambda function provides screenshot/image transformation capabilities."},"servers":[{"url":"https://admin.diageopersonalisationstudio.com","description":"Production - Umbraco CMS Backend"},{"url":"https://www.diageopersonalisationstudio.com","description":"Production - PHP Lumen Middleware / Frontend"}],"paths":{"/api/brandambassador/getpreferences/{brandambassadorguid}":{"get":{"summary":"Get brand ambassador preferences","description":"Retrieves preferences for a specific brand ambassador by their GUID","operationId":"getBrandAmbassadorPreferences","tags":["Umbraco - Brand Ambassador"],"parameters":[{"name":"brandambassadorguid","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Brand ambassador GUID identifier"}],"responses":{"200":{"description":"Brand ambassador preferences"},"404":{"description":"No data found"},"500":{"description":"Internal server error"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/BrandAmbassadorController.cs","x-auth":"None (Umbraco session)"}},"/api/brandambassador/getprinter/{memberGuid}":{"get":{"summary":"Get printer preferences for a brand ambassador","description":"Retrieves printer preferences for a specific member by GUID","operationId":"getPrinterPreferences","tags":["Umbraco - Brand Ambassador"],"parameters":[{"name":"memberGuid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Printer preferences"},"500":{"description":"Internal server error"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/BrandAmbassadorController.cs","x-auth":"None (Umbraco session)"}},"/api/brandambassador/savepreferences":{"post":{"summary":"Save brand ambassador preferences","description":"Updates basic preferences for a brand ambassador. Protected by anti-forgery token.","operationId":"saveBrandAmbassadorPreferences","tags":["Umbraco - Brand Ambassador"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"BrandAmbassadorPreferencesModel"}}}},"responses":{"200":{"description":"Preferences saved successfully"},"500":{"description":"Internal server error"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/BrandAmbassadorController.cs","x-auth":"AntiForgeryToken"}},"/api/brandambassador/saveprinter":{"post":{"summary":"Save printer preferences","description":"Updates printer preferences for a brand ambassador. Protected by anti-forgery token.","operationId":"savePrinterPreferences","tags":["Umbraco - Brand Ambassador"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"BrandAmbassadorPrinterPreferencesModel"}}}},"responses":{"200":{"description":"Printer preferences saved"},"500":{"description":"Internal server error"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/BrandAmbassadorController.cs","x-auth":"AntiForgeryToken"}},"/api/label":{"post":{"summary":"Add a new label","description":"Called by the front end app to create a new label. Saves label data and uploads image to S3.","operationId":"addLabel","tags":["Umbraco - Label"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"image":{"type":"string","description":"Image URL or base64"},"locationID":{"type":"integer"},"brandID":{"type":"integer"},"bottleSKU":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"agent":{"type":"string"},"labelType":{"type":"string"}}}}}},"responses":{"200":{"description":"Label created successfully"},"500":{"description":"Error occurred or parameters incorrect"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/LabelApiController.cs","x-auth":"None"}},"/api/label/getqr":{"post":{"summary":"Generate QR code","description":"Generates a QR code for the given URL and uploads to S3","operationId":"getQrCode","tags":["Umbraco - Label"],"security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"required":["url"]}}}},"responses":{"200":{"description":"QR code URL","content":{"application/json":{"schema":{"type":"object","properties":{"qrUrl":{"type":"string"}}}}}}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/LabelApiController.cs","x-auth":"x-api-key header"}},"/api/label/register":{"post":{"summary":"Save label and register brand ambassador","description":"Saves a label, registers the brand ambassador, sends confirmation email, and submits data to Mulesoft CRM","operationId":"saveAndRegisterLabel","tags":["Umbraco - Label"],"security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"image":{"type":"string"},"locationID":{"type":"integer"},"brandID":{"type":"integer"},"bottleSKU":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"dob":{"type":"string"},"email":{"type":"string","format":"email"},"country":{"type":"string"},"locale":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":"string"},"city":{"type":"string"},"province":{"type":"string"},"zip":{"type":"string"}}},"labeltype":{"type":"string"},"agent":{"type":"string"}}}}}},"responses":{"200":{"description":"Order summary with label details"},"500":{"description":"Error occurred"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/LabelApiController.cs","x-auth":"x-api-key header"}},"/api/label/cleanupservice":{"get":{"summary":"Cleanup expired labels","description":"Runs the label cleanup service to remove expired labels and their S3 objects","operationId":"cleanUpService","tags":["Umbraco - Label"],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Cleanup result"},"500":{"description":"Error during cleanup"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/LabelApiController.cs","x-auth":"x-api-key header (Umbraco.ApiKey.Cleanup)"}},"/api/label/cleanupservicefromarchive":{"get":{"summary":"Cleanup all labels from archive","description":"Removes all archived labels and their S3 objects","operationId":"cleanUpServiceFromArchive","tags":["Umbraco - Label"],"responses":{"200":{"description":"Cleanup result"},"500":{"description":"Error during cleanup"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/LabelApiController.cs","x-auth":"None"}},"/api/label/cleanupservicetopsfromarchive/{amount}":{"get":{"summary":"Cleanup top N labels from archive","description":"Removes a specified number of archived labels","operationId":"cleanUpServiceTopsFromArchive","tags":["Umbraco - Label"],"parameters":[{"name":"amount","in":"path","required":true,"schema":{"type":"integer","default":10}}],"responses":{"200":{"description":"Cleanup result"},"500":{"description":"Error during cleanup"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/LabelApiController.cs","x-auth":"None"}},"/api/label/getlabelsforlocation/{brandId}/{locationId}/{printStatus}/{pageNumber}/{pageSize}":{"get":{"summary":"Get labels for a location","description":"Retrieves paginated labels for a specific brand and location with print status filter","operationId":"getLabelsForLocation","tags":["Umbraco - Label"],"parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"locationId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"printStatus","in":"path","required":true,"schema":{"type":"boolean"}},{"name":"pageNumber","in":"path","required":true,"schema":{"type":"integer"}},{"name":"pageSize","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Paginated label results"},"500":{"description":"Could not get label list"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/LabelApiController.cs","x-auth":"Umbraco session (member login)"}},"/api/label/getlabelsforlocation/{brandId}/{locationId}/{printStatus}/{rejectedStatus}/{searchTerm}/{pageNumber}/{pageSize}":{"get":{"summary":"Get labels for location with search","description":"Retrieves paginated labels filtered by print status, rejected status, and search term","operationId":"getLabelsForLocationWithSearch","tags":["Umbraco - Label"],"parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"locationId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"printStatus","in":"path","required":true,"schema":{"type":"boolean"}},{"name":"rejectedStatus","in":"path","required":true,"schema":{"type":"boolean"}},{"name":"searchTerm","in":"path","required":true,"schema":{"type":"string"}},{"name":"pageNumber","in":"path","required":true,"schema":{"type":"integer"}},{"name":"pageSize","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Paginated label results with search"},"500":{"description":"Could not get label list"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/LabelApiController.cs","x-auth":"Umbraco session (member login)"}},"/api/label/getlabelsforlocation/{brandId}/{locationId}/{printStatus}/{rejectedStatus}/{pageNumber}/{pageSize}":{"get":{"summary":"Get labels for location with rejected filter","description":"Retrieves paginated labels filtered by both print and rejected status","operationId":"getLabelsForLocationWithRejected","tags":["Umbraco - Label"],"parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"locationId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"printStatus","in":"path","required":true,"schema":{"type":"boolean"}},{"name":"rejectedStatus","in":"path","required":true,"schema":{"type":"boolean"}},{"name":"pageNumber","in":"path","required":true,"schema":{"type":"integer"}},{"name":"pageSize","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Paginated label results"},"500":{"description":"Could not get label list"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/LabelApiController.cs","x-auth":"Umbraco session (member login)"}},"/api/label/rejected/{brandId}/{locationId}/{pageNumber}/{pageSize}":{"get":{"summary":"Get rejected labels","description":"Retrieves paginated rejected labels for a specific brand and location","operationId":"getRejectedLabels","tags":["Umbraco - Label"],"parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"locationId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"pageNumber","in":"path","required":true,"schema":{"type":"integer"}},{"name":"pageSize","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Paginated rejected label results"},"500":{"description":"Could not get label list"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/LabelApiController.cs","x-auth":"Umbraco session"}},"/api/label/printed/{brandId}/{locationId}/{pageNumber}/{pageSize}":{"get":{"summary":"Get printed labels","description":"Retrieves paginated printed labels for a specific brand and location","operationId":"getPrintedLabels","tags":["Umbraco - Label"],"parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"locationId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"pageNumber","in":"path","required":true,"schema":{"type":"integer"}},{"name":"pageSize","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Paginated printed label results"},"500":{"description":"Could not get label list"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/LabelApiController.cs","x-auth":"Umbraco session"}},"/api/label/search/{brandId}/{locationId}/{status}/{search}/{pageNumber}/{pageSize}":{"get":{"summary":"Search labels with search term","description":"Search for labels at a location by status and search string","operationId":"searchLabelsWithTerm","tags":["Umbraco - Label"],"parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"locationId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"status","in":"path","required":true,"schema":{"type":"integer"}},{"name":"search","in":"path","required":true,"schema":{"type":"string"}},{"name":"pageNumber","in":"path","required":true,"schema":{"type":"integer"}},{"name":"pageSize","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Paginated search results"},"500":{"description":"Could not get label list"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/LabelApiController.cs","x-auth":"Umbraco session"}},"/api/label/search/{brandId}/{locationId}/{status}/{pageNumber}/{pageSize}":{"get":{"summary":"Search labels by status","description":"Search for labels at a location by status (without search term)","operationId":"searchLabelsByStatus","tags":["Umbraco - Label"],"parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"locationId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"status","in":"path","required":true,"schema":{"type":"integer"}},{"name":"pageNumber","in":"path","required":true,"schema":{"type":"integer"}},{"name":"pageSize","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Paginated search results"},"500":{"description":"Could not get label list"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/LabelApiController.cs","x-auth":"Umbraco session"}},"/api/label/stats/{brandId}/{locationId}":{"get":{"summary":"Get label statistics","description":"Retrieves label statistics for a specific brand and location","operationId":"getLabelStats","tags":["Umbraco - Label"],"parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"locationId","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Label statistics"},"500":{"description":"Could not get label list"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/LabelApiController.cs","x-auth":"Umbraco session"}},"/api/label/extendedstats/{brandId}/{locationId}/{startDate}/{endDate}":{"get":{"summary":"Get extended label statistics","description":"Retrieves extended label statistics for a specific brand, location, and date range","operationId":"getExtendedLabelStats","tags":["Umbraco - Label"],"parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"locationId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"startDate","in":"path","required":true,"schema":{"type":"string"}},{"name":"endDate","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Extended label statistics"},"500":{"description":"Error fetching statistics"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/LabelApiController.cs","x-auth":"Umbraco session"}},"/api/label/getbrandsforba/{brandAmbassadorId}":{"get":{"summary":"Get brands for brand ambassador","description":"Returns the brands associated with a specific brand ambassador ID","operationId":"getBrandsForBrandAmbassador","tags":["Umbraco - Label"],"parameters":[{"name":"brandAmbassadorId","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"List of brands"},"500":{"description":"Error"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/LabelApiController.cs","x-auth":"Umbraco session"}},"/api/label/getlocationsforba/{brandAmbassadorId}":{"get":{"summary":"Get locations for brand ambassador","description":"Returns the locations associated with a specific brand ambassador ID","operationId":"getLocationsForBrandAmbassador","tags":["Umbraco - Label"],"parameters":[{"name":"brandAmbassadorId","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"List of locations"},"500":{"description":"Error"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/LabelApiController.cs","x-auth":"Umbraco session"}},"/api/label/batchrejections":{"get":{"summary":"Batch process label rejections","description":"Runs batch rejection processing for labels that violate business rules","operationId":"batchRejections","tags":["Umbraco - Label"],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Batch rejection result"},"500":{"description":"Error during batch processing"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/LabelApiController.cs","x-auth":"x-api-key header (Umbraco.ApiKey.Cleanup)"}},"/api/account/SendForgetPassWordEmail":{"post":{"summary":"Send forgot password email","description":"Sends a password reset email to the specified email address","operationId":"sendForgetPasswordEmail","tags":["Umbraco - Account"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"}},"required":["email"]}}}},"responses":{"200":{"description":"Email sent or error response with message"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/AccountController.cs","x-auth":"None"}},"/api/account/resetpassword":{"post":{"summary":"Reset password","description":"Resets a user's password using the reset token","operationId":"resetPassword","tags":["Umbraco - Account"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":"string"},"passwordCopy":{"type":"string"},"code":{"type":"string"},"email":{"type":"string"}}}}}},"responses":{"200":{"description":"Password reset result"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/AccountController.cs","x-auth":"None"}},"/api/email/PwdExpireEmailSend":{"get":{"summary":"Send password expiry reminder emails","description":"Triggers sending password expiration reminder emails to CMS users and brand ambassadors (14-day and 30-day warnings)","operationId":"pwdExpireEmailSend","tags":["Umbraco - Email"],"responses":{"200":{"description":"Emails sent (void return)"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/EmailApiController.cs","x-auth":"Umbraco session"}},"/api/bottles/{brandId}/{locationId}":{"get":{"summary":"Get bottles for brand and location","description":"Returns available bottle products for a specific brand and location","operationId":"getBottlesForBrandAndLocation","tags":["Umbraco - Bottles"],"parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"locationId","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"List of bottles"},"500":{"description":"Error occurred"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/BottlesApiController.cs","x-auth":"None"}},"/api/bottles/{locale}/{brandId}/{locationId}":{"get":{"summary":"Get localized bottles for brand and location","description":"Returns locale-specific bottle products for a specific brand and location","operationId":"getBottlesForBrandAndLocationWithLocale","tags":["Umbraco - Bottles"],"security":[{"apiKey":[]}],"parameters":[{"name":"locale","in":"path","required":true,"schema":{"type":"string"},"description":"e.g. en, en-us, fr-ca"},{"name":"brandId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"locationId","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"List of localized bottles"},"500":{"description":"Error occurred"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/BottlesApiController.cs","x-auth":"x-api-key header"}},"/api/country/{brandId}":{"get":{"summary":"Get countries for brand","description":"Returns list of countries available for a specific brand ID","operationId":"getCountriesForBrand","tags":["Umbraco - Country"],"security":[{"apiKey":[]}],"parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"List of countries","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"countryId":{"type":"integer"},"countryName":{"type":"string"},"countryCode":{"type":"string"}}}}}}}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/CountryApiController.cs","x-auth":"x-api-key header"}},"/api/location/{brandId}":{"get":{"summary":"Get locations for brand","description":"Returns all locations (stores) for a specific brand ID","operationId":"getLocationsForBrand","tags":["Umbraco - Location"],"parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"List of locations","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"locationId":{"type":"integer"},"locationName":{"type":"string"},"countryCode":{"type":"string"},"countryId":{"type":"integer"}}}}}}}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/LocationApiController.cs","x-auth":"None"}},"/api/location/{brandId}/country/{countryId}":{"get":{"summary":"Get locations for brand and country","description":"Returns locations for a specific brand filtered by country","operationId":"getLocationsForBrandAndCountry","tags":["Umbraco - Location"],"security":[{"apiKey":[]}],"parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"countryId","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"List of locations filtered by country"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/LocationApiController.cs","x-auth":"x-api-key header"}},"/api/location/{brandId}/{brandAmbassadorId}":{"get":{"summary":"Get locations for brand and ambassador","description":"Returns locations assigned to a specific brand ambassador","operationId":"getLocationsForBrandAndBrandAmbassador","tags":["Umbraco - Location"],"parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"brandAmbassadorId","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"List of locations for the brand ambassador"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/LocationApiController.cs","x-auth":"None"}},"/api/user/PwdExpireEmailSend":{"get":{"summary":"User controller test endpoint","description":"Test/placeholder endpoint in user controller (no-op)","operationId":"userPwdExpireTest","tags":["Umbraco - User"],"responses":{"200":{"description":"No content (void)"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/UserController.cs","x-auth":"Umbraco session"}},"/umbraco/backoffice/api/AdminUser/RemoveMfaDevice":{"delete":{"summary":"Remove MFA device for admin user","description":"Removes MFA device configuration for a backoffice user by ID. Requires Umbraco backoffice authentication.","operationId":"adminRemoveMfaDevice","tags":["Umbraco - Admin User (Backoffice)"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Returns true if successful"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/umbraco/AdminUserController.cs","x-auth":"Umbraco backoffice auth (UmbracoAuthorizedApiController)"}},"/umbraco/backoffice/api/AdminUser/GetUserDetails":{"get":{"summary":"Get admin user details","description":"Returns user name for a given user ID. Requires Umbraco backoffice authentication.","operationId":"adminGetUserDetails","tags":["Umbraco - Admin User (Backoffice)"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"User name string"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/umbraco/AdminUserController.cs","x-auth":"Umbraco backoffice auth"}},"/umbraco/backoffice/api/Ambassador/GetBrandAmbassador":{"get":{"summary":"Get brand ambassador details","description":"Returns brand ambassador details by GUID. Requires Umbraco backoffice authentication.","operationId":"getBrandAmbassadorById","tags":["Umbraco - Ambassador (Backoffice)"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Brand ambassador details"},"404":{"description":"Not found"},"500":{"description":"Error"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/umbraco/AmbassadorController.cs","x-auth":"Umbraco backoffice auth"}},"/umbraco/backoffice/api/Ambassador/ChangePassword":{"post":{"summary":"Change brand ambassador password","description":"Changes password for a brand ambassador. Requires Umbraco backoffice authentication.","operationId":"changeAmbassadorPassword","tags":["Umbraco - Ambassador (Backoffice)"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"memberGuid":{"type":"string","format":"uuid"},"newPassword":{"type":"string"}}}}}},"responses":{"200":{"description":"Password changed"},"500":{"description":"Error occurred"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/umbraco/AmbassadorController.cs","x-auth":"Umbraco backoffice auth"}},"/umbraco/backoffice/api/Ambassador/RemoveMfaDevice":{"get":{"summary":"Remove MFA device for brand ambassador","description":"Removes MFA device for a brand ambassador member. Requires Umbraco backoffice authentication.","operationId":"removeAmbassadorMfaDevice","tags":["Umbraco - Ambassador (Backoffice)"],"parameters":[{"name":"memberGuid","in":"query","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"MFA device removed"},"500":{"description":"Error occurred"}},"x-source-file":"backend/Umbraco.Foundation.Labels/Controllers/api/umbraco/AmbassadorController.cs","x-auth":"Umbraco backoffice auth"}},"/umbraco/backoffice/api/TwoFactorAuth/TwoFactorEnabled":{"get":{"summary":"Check if 2FA is enabled","description":"Returns list of two-factor authentication methods enabled for the current user","operationId":"twoFactorEnabled","tags":["Umbraco - 2FA (Backoffice)"],"responses":{"200":{"description":"List of TwoFactorAuthInfo"}},"x-source-file":"backend/Umbraco.Feature.BackOffice2FA.Authentication/Controllers/TwoFactorAuthController.cs","x-auth":"Umbraco backoffice session"}},"/umbraco/backoffice/api/TwoFactorAuth/GetExpiryModel":{"get":{"summary":"Get password expiry model","description":"Returns password expiry details for the current user from cookie","operationId":"getExpiryModel","tags":["Umbraco - 2FA (Backoffice)"],"responses":{"200":{"description":"PasswordExpiryModel with days before expiry"}},"x-source-file":"backend/Umbraco.Feature.BackOffice2FA.Authentication/Controllers/TwoFactorAuthController.cs","x-auth":"Umbraco backoffice session + umb_id cookie"}},"/umbraco/backoffice/api/TwoFactorAuth/GetReasonForFailure":{"get":{"summary":"Get reason for 2FA login failure","description":"Determines whether login failure was due to invalid code or expired password","operationId":"getReasonForFailure","tags":["Umbraco - 2FA (Backoffice)"],"parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Invalid code"},"403":{"description":"Password has expired"},"500":{"description":"Internal failure"}},"x-source-file":"backend/Umbraco.Feature.BackOffice2FA.Authentication/Controllers/TwoFactorAuthController.cs","x-auth":"Umbraco backoffice session + umb_id cookie"}},"/umbraco/backoffice/api/TwoFactorAuth/GoogleAuthenticatorSetupCodeFrontEnd":{"get":{"summary":"Get Google Authenticator setup code (frontend)","description":"Returns the QR code/setup info for Google Authenticator registration from the user cookie","operationId":"googleAuthSetupCodeFrontEnd","tags":["Umbraco - 2FA (Backoffice)"],"responses":{"200":{"description":"TwoFactorAuthInfo with setup code"}},"x-source-file":"backend/Umbraco.Feature.BackOffice2FA.Authentication/Controllers/TwoFactorAuthController.cs","x-auth":"umb_id cookie"}},"/umbraco/backoffice/api/TwoFactorAuth/GoogleAuthenticatorSetupCode":{"get":{"summary":"Get Google Authenticator setup code","description":"Returns the QR code/setup info for Google Authenticator for the currently authenticated user","operationId":"googleAuthSetupCode","tags":["Umbraco - 2FA (Backoffice)"],"responses":{"200":{"description":"TwoFactorAuthInfo with setup code"}},"x-source-file":"backend/Umbraco.Feature.BackOffice2FA.Authentication/Controllers/TwoFactorAuthController.cs","x-auth":"Umbraco backoffice session"}},"/umbraco/backoffice/api/TwoFactorAuth/ValidateAndSaveGoogleAuth":{"post":{"summary":"Validate and save Google Authenticator","description":"Validates a Google Authenticator code and saves it as enabled for the current backoffice user","operationId":"validateAndSaveGoogleAuth","tags":["Umbraco - 2FA (Backoffice)"],"parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Boolean indicating success"}},"x-source-file":"backend/Umbraco.Feature.BackOffice2FA.Authentication/Controllers/TwoFactorAuthController.cs","x-auth":"Umbraco backoffice session"}},"/umbraco/backoffice/api/TwoFactorAuth/ValidateAndSaveGoogleAuthFrontEnd":{"post":{"summary":"Validate and save Google Authenticator (frontend)","description":"Validates a Google Authenticator code and saves it for the user identified by umb_id cookie","operationId":"validateAndSaveGoogleAuthFrontEnd","tags":["Umbraco - 2FA (Backoffice)"],"parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Boolean indicating success"}},"x-source-file":"backend/Umbraco.Feature.BackOffice2FA.Authentication/Controllers/TwoFactorAuthController.cs","x-auth":"umb_id cookie"}},"/umbraco/backoffice/api/TwoFactorAuth/Disable":{"post":{"summary":"Disable 2FA","description":"Disables two-factor authentication for the current admin user. Only available to Administrators group.","operationId":"disable2FA","tags":["Umbraco - 2FA (Backoffice)"],"responses":{"200":{"description":"Boolean indicating success"}},"x-source-file":"backend/Umbraco.Feature.BackOffice2FA.Authentication/Controllers/TwoFactorAuthController.cs","x-auth":"Umbraco backoffice session (Administrators only)"}},"/upload/{orientation}":{"post":{"summary":"Upload and process image","description":"Uploads an image, removes EXIF data, rotates based on orientation, compresses to 1MB max, and stores in AWS S3. Returns CDN URL.","operationId":"uploadImage","tags":["PHP - Image Processing"],"parameters":[{"name":"orientation","in":"path","required":true,"schema":{"type":"integer"},"description":"EXIF orientation value (-1 for no rotation, 3=180deg, 6=270deg, 8=90deg)"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"image":{"type":"string","format":"binary"}},"required":["image"]}}}},"responses":{"200":{"description":"Upload result","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["ok","error"]},"url":{"type":"string","description":"CDN URL of uploaded image"},"message":{"type":"string","description":"Error message if status is error"}}}}}}},"x-source-file":"php/backend/routes/web.php","x-auth":"None"}},"/filters":{"post":{"summary":"Apply image filter preparation","description":"Uploads a base64 image to S3 for subsequent filter application via Lambda","operationId":"prepareFilter","tags":["PHP - Image Processing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"src":{"type":"string","description":"Base64 encoded image data"}},"required":["src"]}}}},"responses":{"200":{"description":"S3 key for the uploaded image","content":{"application/json":{"schema":{"type":"object","properties":{"s3key":{"type":"string"}}}}}}},"x-source-file":"php/backend/routes/web.php","x-auth":"None"}},"/generate":{"post":{"summary":"Generate final label","description":"Generates the final label image, uploads to S3, saves label record to MySQL database with custom parameters","operationId":"generateLabel","tags":["PHP - Label Generation"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"src":{"type":"string","description":"Base64 encoded label image"},"labelId":{"type":"string","format":"uuid"},"productId":{"type":"string"},"method":{"type":"string"},"token":{"type":"string"},"sessionId":{"type":"string"},"brandId":{"type":"string"},"custom":{"type":"object","additionalProperties":{"type":"string"},"description":"Custom key-value pairs"}},"required":["src","labelId","productId"]}}}},"responses":{"200":{"description":"Generated label response","content":{"application/json":{"schema":{"type":"object","properties":{"complete":{"type":"boolean"},"labelUrl":{"type":"string","format":"uri"},"labelId":{"type":"string"},"productId":{"type":"string"}}}}}}},"x-source-file":"php/backend/routes/web.php","x-auth":"None"}},"/register":{"post":{"summary":"Register brand ambassador via PHP middleware","description":"Registers a brand ambassador, forwards to Umbraco CMS API for label creation and registration","operationId":"phpRegister","tags":["PHP - Registration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"image":{"type":"string"},"location":{"type":"integer"},"productId":{"type":"string"},"brandId":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"dob":{"type":"string"},"email":{"type":"string","format":"email"},"country":{"type":"string"},"phone":{"type":"string"},"address1":{"type":"string"},"address2":{"type":"string"},"city":{"type":"string"},"province":{"type":"string"},"zip":{"type":"string"},"locale":{"type":"string"},"labelType":{"type":"string"}}}}}},"responses":{"200":{"description":"Registration result from CMS"}},"x-source-file":"php/backend/routes/web.php","x-auth":"X-API-KEY header"}},"/generateqr":{"post":{"summary":"Generate QR code via PHP middleware","description":"Generates a QR code for a given URL by proxying to the Umbraco CMS API","operationId":"phpGenerateQr","tags":["PHP - Label Generation"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"required":["url"]}}}},"responses":{"200":{"description":"QR code result"}},"x-source-file":"php/backend/routes/web.php","x-auth":"X-API-KEY header"}},"/location/{brandId}":{"get":{"summary":"Get locations via PHP middleware","description":"Proxies to Umbraco CMS API to retrieve locations for a brand","operationId":"phpGetLocations","tags":["PHP - Location"],"parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of locations from CMS"}},"x-source-file":"php/backend/routes/web.php","x-auth":"None"}},"/country/{brandId}":{"get":{"summary":"Get countries via PHP middleware","description":"Proxies to Umbraco CMS API to retrieve countries for a brand","operationId":"phpGetCountries","tags":["PHP - Location"],"parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of countries from CMS"}},"x-source-file":"php/backend/routes/web.php","x-auth":"X-API-KEY header"}},"/location/{brandId}/{countryId}":{"get":{"summary":"Get locations by country via PHP middleware","description":"Proxies to Umbraco CMS API to retrieve locations for a brand filtered by country","operationId":"phpGetCountryLocations","tags":["PHP - Location"],"parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"string"}},{"name":"countryId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of locations filtered by country"}},"x-source-file":"php/backend/routes/web.php","x-auth":"X-API-KEY header"}},"/bottles/{locale}/{brandId}/{locationId}":{"get":{"summary":"Get localized bottles via PHP middleware","description":"Proxies to Umbraco CMS API to retrieve locale-specific bottles","operationId":"phpGetBottlesWithLocale","tags":["PHP - Bottles"],"parameters":[{"name":"locale","in":"path","required":true,"schema":{"type":"string"}},{"name":"brandId","in":"path","required":true,"schema":{"type":"string"}},{"name":"locationId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of bottles with locale info"}},"x-source-file":"php/backend/routes/web.php","x-auth":"X-API-KEY header"}},"/bottles/{brandId}/{locationId}":{"get":{"summary":"Get bottles via PHP middleware","description":"Proxies to Umbraco CMS API to retrieve bottles for a brand and location","operationId":"phpGetBottles","tags":["PHP - Bottles"],"parameters":[{"name":"brandId","in":"path","required":true,"schema":{"type":"string"}},{"name":"locationId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of bottles"}},"x-source-file":"php/backend/routes/web.php","x-auth":"None"}},"/lambda/{s3key}/{filter}":{"get":{"summary":"Apply image filter via Lambda","description":"Renders an HTML view that triggers headless Chrome to apply an image filter on an S3-stored image","operationId":"phpApplyLambdaFilter","tags":["PHP - Image Processing"],"parameters":[{"name":"s3key","in":"path","required":true,"schema":{"type":"string"}},{"name":"filter","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"HTML view for Lambda processing"}},"x-source-file":"php/backend/routes/web.php","x-auth":"None"}},"/legal/{locale}/{area}":{"get":{"summary":"Get legal documents","description":"Returns localized legal content (terms, privacy policy, etc.) as HTML","operationId":"phpGetLegalContent","tags":["PHP - Legal"],"parameters":[{"name":"locale","in":"path","required":true,"schema":{"type":"string"},"description":"e.g. en, en-us, fr-ca"},{"name":"area","in":"path","required":true,"schema":{"type":"string"},"description":"e.g. terms, instore-terms, privacy"}],"responses":{"200":{"description":"Legal HTML content","content":{"text/html":{}}}},"x-source-file":"php/backend/routes/web.php","x-auth":"None"}},"/callback":{"get":{"summary":"Callback handler","description":"Handles callbacks after label creation, rendering data in a callback view","operationId":"phpCallback","tags":["PHP - Callback"],"parameters":[{"name":"labelId","in":"query","schema":{"type":"string"}},{"name":"sessionId","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Callback view with label data"}},"x-source-file":"php/backend/routes/web.php","x-auth":"None"}},"/awstemp":{"get":{"summary":"DEBUG - Expose AWS credentials (SECURITY ISSUE)","description":"WARNING: Debug endpoint that exposes AWS credentials. Should be removed in production.","operationId":"phpAwsTemp","tags":["PHP - Debug"],"responses":{"200":{"description":"AWS credentials (SECURITY RISK)","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"aws":{"type":"string"},"awssec":{"type":"string"}}}}}}},"x-source-file":"php/backend/routes/web.php","x-auth":"None","x-security-issue":"Exposes AWS credentials - should be removed"}},"/redirect":{"get":{"summary":"Label studio redirect entry point","description":"Main entry point for the label personalisation experience. Redirects to the React frontend with brand/product configuration.","operationId":"redirectEntryPoint","tags":["Frontend - Entry Points"],"parameters":[{"name":"brandId","in":"query","required":true,"schema":{"type":"string"},"description":"e.g. jw"},{"name":"productId","in":"query","required":true,"schema":{"type":"string"},"description":"e.g. jw_red, jw_black, jw_gold"},{"name":"token","in":"query","required":true,"schema":{"type":"string"},"description":"Unique customer token"},{"name":"callbackUrl","in":"query","required":true,"schema":{"type":"string","format":"uri"}},{"name":"sessionId","in":"query","required":true,"schema":{"type":"string"}},{"name":"price","in":"query","schema":{"type":"string"}},{"name":"currencyId","in":"query","schema":{"type":"string","enum":["GBP","AUD","EUR","JPY","SEK","USD","SGD","HKD","KES"]}},{"name":"locale","in":"query","schema":{"type":"string"}},{"name":"journey","in":"query","schema":{"type":"string","enum":["instore","instoreba","retailer"]}}],"responses":{"200":{"description":"React application HTML"}},"x-source-file":"README.md (documented entry point)","x-auth":"Token parameter for session tracking"}}},"x-external-apis":[{"name":"Mulesoft CRM API","description":"Diageo's Mulesoft integration for consumer data platform. Used for registering brand ambassador/consumer data to Salesforce Marketing Cloud.","baseUrl":"https://dev.api.diageo.com","endpoints":[{"method":"POST","path":"/diageo/common/oauth2/provider/token","description":"OAuth2 token endpoint for Mulesoft authentication. Uses client_id and client_secret headers.","x-source-file":"backend/Umbraco.Foundation.Labels/Services/MulesoftService.cs"},{"method":"POST","path":"/global/tdcdp/common/eapi/api/inbound/sfmc","description":"Submit consumer registration data to Salesforce Marketing Cloud via Mulesoft. Sends user profile (name, email, DOB, country, preferences) for CRM processing.","x-source-file":"backend/Umbraco.Foundation.Labels/Services/MulesoftService.cs"}],"authentication":"OAuth2 Bearer token (client_credentials grant)","x-config-keys":["Mulesoft.BaseUrl","Mulesoft.AuthApiUrl","Mulesoft.SubmitUserApiUrl","Mulesoft.ClientId","Mulesoft.ClientSecret"]},{"name":"AWS S3","description":"Amazon S3 storage for label images and media. Used by both PHP middleware and Umbraco backend.","baseUrl":"https://horizonlives3.s3.eu-west-1.amazonaws.com","endpoints":[{"method":"PUT","path":"/{bucket}/{key}","description":"Upload objects (label images, processed photos, QR codes) to S3 bucket"},{"method":"DELETE","path":"/{bucket}/{key}","description":"Delete objects during label cleanup service"}],"authentication":"AWS Access Key / Secret Key","x-source-files":["php/backend/routes/misc.php","backend/Umbraco.Feature.Aws.S3/","backend/Umbraco.Storage.S3.Media/"],"x-config":{"bucket":"horizonlives3","prefix":"PR1391/media","region":"eu-west-1"}},{"name":"AWS CloudFront CDN","description":"CloudFront CDN distribution for serving S3-stored label images","baseUrl":"https://horizonlives3.diageohorizon.com","endpoints":[{"method":"GET","path":"/PR1391/{key}","description":"Serve media and label images via CDN"}],"x-source-file":"php/backend/routes/misc.php"},{"name":"AWS Lambda - Screenshot/Image Transformation","description":"Serverless Lambda function for headless Chrome-based screenshot capture and image filter application","baseUrl":"https://n6gy9m2zte.execute-api.eu-west-1.amazonaws.com","endpoints":[{"method":"GET","path":"/dev/screenshot","description":"Capture screenshot of a URL using headless Chrome. Used for applying image filters to label images.","parameters":{"url":"URL of the page to screenshot (includes the filter application page)"}}],"authentication":"None (API Gateway)","x-source-files":["serverless-chrome/serverless.yml","serverless-chrome/src/handler.js","frontend/.env.example.production"]},{"name":"SMTP Email Server","description":"Internal Diageo SMTP relay for sending transactional emails (password expiry reminders, label confirmations)","baseUrl":"smtp://HZNMGMTSMTP04.neo-diageo.com:25","endpoints":[{"method":"SMTP","path":"HZNMGMTSMTP04.neo-diageo.com:25","description":"Send email via SMTP. From: noreply@diageo.com. Used for password expiry reminders and label-related emails."}],"authentication":"Network credentials (optional)","x-source-files":["backend/Umbraco.Foundation.Labels/Controllers/api/Helper/EmailHelper.cs","backend/Umbraco.Foundation.Labels/Services/EmailService.cs"]},{"name":"Print Service (Legacy/Staging)","description":"Legacy print service for sending labels to in-store printers. Referenced in PrintAdaptor but may be deprecated.","baseUrl":"https://staging.jwlabelstudio.com","endpoints":[{"method":"POST","path":"/launch_sendlabeltostore.php","description":"Send label to a store's print queue","parameters":{"instorecode":"Image URL or code","locationbase":"Store location identifier"}}],"authentication":"None","x-source-file":"php/backend/app/Services/PrintAdaptor.php","x-status":"Potentially deprecated - only referenced in staging configuration"},{"name":"Umbraco CMS API (Internal)","description":"The PHP Lumen middleware proxies requests to the Umbraco CMS backend API. In production this is admin.diageopersonalisationstudio.com/api.","baseUrl":"https://admin.diageopersonalisationstudio.com/api","endpoints":[{"method":"GET","path":"/location/{brandId}","description":"Get locations from CMS"},{"method":"GET","path":"/country/{brandId}","description":"Get countries from CMS"},{"method":"GET","path":"/location/{brandId}/country/{countryId}/","description":"Get locations by country from CMS"},{"method":"POST","path":"/label","description":"Save label to CMS"},{"method":"POST","path":"/label/register","description":"Register brand ambassador and save label in CMS"},{"method":"POST","path":"/label/getqr","description":"Generate QR code via CMS"},{"method":"GET","path":"/bottles/{brandId}/{locationId}","description":"Get bottles from CMS"},{"method":"GET","path":"/bottles/{locale}/{brandId}/{locationId}","description":"Get localized bottles from CMS"}],"authentication":"x-api-key header","x-source-file":"php/backend/app/Services/BrandAmbassadorCMS.php","x-config-key":"UMBRACO_ENDPOINT"}],"components":{"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key for authenticating requests to the Umbraco and PHP APIs"},"umbracoSession":{"type":"apiKey","in":"cookie","name":"ba_token","description":"Brand ambassador session cookie set after login"},"umbracoBackoffice":{"type":"apiKey","in":"cookie","name":"umb_id","description":"Umbraco backoffice user ID cookie"}}},"x-architecture":{"description":"Three-tier architecture: React Frontend -> PHP Lumen Middleware -> Umbraco CMS (.NET) Backend","tiers":[{"name":"React Frontend","technology":"React 16.6 + Redux + Axios","path":"/frontend","description":"Label customization UI. Communicates with PHP middleware via Axios HTTP client.","apiCalls":["POST /upload/{orientation} - Image upload","POST /filters - Filter preparation","GET /lambda/{s3key}/{filter} - Filter application (via Lambda screenshot)","POST /generate - Final label generation","GET /location/{brandId} - Get locations","GET /bottles/{brandId}/{locationId} - Get bottles","GET /legal/{locale}/{area} - Legal content","POST /print - Send to printer (in-store journey)"]},{"name":"PHP Lumen Middleware","technology":"Laravel Lumen 5.4, PHP 7.1+, Guzzle 6.3","path":"/php/backend","description":"Image processing, S3 uploads, label generation, Umbraco API bridge","database":"MySQL (labels, params, tempS3s tables)"},{"name":"Umbraco CMS Backend","technology":".NET Framework 4.7.2, Umbraco 8.18, ASP.NET Web API","path":"/backend","description":"Content management, brand ambassador management, label business logic, MFA","database":"SQL Server"},{"name":"AWS Lambda (Serverless Chrome)","technology":"Node.js 6.10, headless Chrome","path":"/serverless-chrome","description":"Screenshot service for image filter application"}]},"x-security-issues":[{"severity":"CRITICAL","description":"GET /awstemp endpoint exposes AWS Access Key ID and Secret Access Key in JSON response","location":"php/backend/routes/web.php line 148-154"},{"severity":"HIGH","description":"AWS credentials hardcoded in appSettings.live.config","location":"backend/JWLS.WebSite/config/appSettings.live.config"},{"severity":"HIGH","description":"Database credentials in .env.example.production","location":"php/backend/.env.example.production"},{"severity":"MEDIUM","description":"Simple header-based API key authentication (no OAuth/JWT)","location":"Multiple controllers and php/backend/routes/web.php"},{"severity":"MEDIUM","description":"CORS allows all origins (Access-Control-Allow-Origin: *)","location":"php/backend/app/Http/Middleware/CorsMiddleware.php"}]}