API
Docs and API's for Weasy.io
Brands
Get all the available brands.Accepts GET POST PUT
All requests to the API must be authenticated with an API key on the HTTP Authorization header.
GET
Get all the available brandsRequest example
~ curl -i -X GET \
-H 'X-API-KEY:xsFPVLn7aOllXixPDaGBgCZpyTmyX7G6CniNtKD' \
-H 'Content-Type:application/json' \
https://api.weasy.io/v1/brands
-H 'X-API-KEY:xsFPVLn7aOllXixPDaGBgCZpyTmyX7G6CniNtKD' \
-H 'Content-Type:application/json' \
https://api.weasy.io/v1/brands
Body response example [ HTTP CODE: 200 ]
POST
Add brands for the website.Request example
~ curl -i -X POST \
-H 'X-API-KEY:xsFPVLn7aOllXixPDaGBgCZpyTmyX7G6CniNtKD' \
-H 'Content-Type:application/json' \
-d '[{ "brand": "Microsoft", "logo": "https://cdn.weasy.io/users/nandexteste25sage/catalog/file_17216876993213.jpeg", "url": "", "target": "self", "status": "0" } ] \
https://api.weasy.io/v1/brands
-H 'X-API-KEY:xsFPVLn7aOllXixPDaGBgCZpyTmyX7G6CniNtKD' \
-H 'Content-Type:application/json' \
-d '[{ "brand": "Microsoft", "logo": "https://cdn.weasy.io/users/nandexteste25sage/catalog/file_17216876993213.jpeg", "url": "", "target": "self", "status": "0" } ] \
https://api.weasy.io/v1/brands
Body response example [ HTTP CODE: 200 ]
Body attributes
A json payload containing the following attributes.| NAME | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
| brand | string | required | |
| logo | string | optional | URL. Needs to be sent first using the Filemanager Endpoint |
| url | string | required | brand link url ( internal or external) |
| target | string | optional | options: _blank;self |
| status | integer | optional | 0 for disabled; 1 for enabled |
PUT
Change brands for the website.Request example
~ curl -i -X GET \
-H 'X-API-KEY:xsFPVLn7aOllXixPDaGBgCZpyTmyX7G6CniNtKD' \
-H 'Content-Type:application/json' \
-d '[{ "id":1, "brand": "Microsoft", "logo": "https://cdn.weasy.io/users/nandexteste25sage/catalog/file_17216876993213.jpeg", "url": "", "target": "self", "status": "0" } ] \
https://api.weasy.io/v1/brands
-H 'X-API-KEY:xsFPVLn7aOllXixPDaGBgCZpyTmyX7G6CniNtKD' \
-H 'Content-Type:application/json' \
-d '[{ "id":1, "brand": "Microsoft", "logo": "https://cdn.weasy.io/users/nandexteste25sage/catalog/file_17216876993213.jpeg", "url": "", "target": "self", "status": "0" } ] \
https://api.weasy.io/v1/brands
Body response example [ HTTP CODE: 200 ]
Body attributes
A json payload containing the following attributes.| NAME | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
| id | integer | required | id of the brand to update |
| brand | string | required | |
| logo | string | optional | URL. Needs to be sent first using the Filemanager Endpoint |
| url | string | required | brand link url ( internal or external) |
| target | string | optional | options: _blank;self |
| status | integer | optional | 0 for disabled; 1 for enabled |