API Context
The Tenant Web Services API allows an external system to retrieve the theme settings including image locations.
URL
Using the leapcities.com SSL certificate
https://{your_company_name}.leapcities.com/api/v1/tenant
Using your own SSL certificate
https://api.{your_domain}.com/api/v1/tenant
API
Retrieve theme details
This enables an external system to retrieve the theme settings for the website.
When you have multiple communities in your instance
URL:
theme/communityKey
Where communityKey is the key for the community.
For a single community
URL:
theme/
Method: GET
Response Codes:
- 200 Successful
Example Request/Response:
<theme xmlns="http://schema.majitek.com/leap-ws-v1.0"> <header-background colour="#000"/> <header-foreground colour="#f0f0f0"/> <body-background colour="#7ea4b4"/> <content-background colour="#fff"/> <content-foreground colour="#333"/> <heading colour="#000"/> <primary-action colour="#0c5f98"/> <link colour="#0c5f98"/> <theme-type>LIGHT</theme-type> <head-snippet><![CDATA[ <!-- custom head content --> ]]></head-snippet> <logo-image url="http://localhost:8083/image/logo.image"/> <hero-image url="http://localhost:8083/image/large/69.image"/> <support-image url="http://localhost:8083/style/images/productSupport.jpg"/> <order-image url="http://localhost:8083/style/images/productTracking.jpg"/> <billing-image url="http://localhost:8083/style/images/productBilling.jpg"/> <store-image url="http://localhost:8083/style/images/storePreview.png"/> <brand-image url="http://localhost:8083/style/images/majitek.png"/> </theme>