Last active
May 8, 2024 14:22
-
-
Save andfinally/acd8646151c0108f92979c985c20a0d8 to your computer and use it in GitHub Desktop.
API test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"date_from_gmt": "2024-02-14 00:00", | |
"date_to_gmt": "2024-05-13 22:59", | |
"format": "notice", | |
"style": "info", | |
"pages": [ | |
{ "page": "wc-admin", "path": "/extensions", "tab": "" }, | |
{ "page": "wc-admin", "path": "/extensions", "tab": "extensions" }, | |
{ "page": "wc-admin", "path": "/extensions", "tab": "themes" } | |
], | |
"content": { | |
"en_US": "<b>Limited time sale</b> up to 40% off. Sale ends March 29 at 2pm UTC." | |
}, | |
"icon": "percent", | |
"is_dismissible": true | |
}, | |
{ | |
"date_from_gmt": "2024-02-14 00:00", | |
"date_to_gmt": "2024-05-13 22:59", | |
"format": "notice", | |
"style": "success", | |
"pages": [{ "page": "wc-admin", "path": "/extensions", "tab": "extensions" }], | |
"content": { | |
"en_US": "<b>Limited time sale</b> up to 40% off. Sale ends March 29 at 2pm UTC.", | |
"fr_FR": "<b>Vente \u00e0 dur\u00e9e limit\u00e9e</b> jusqu'\u00e0 40 % de r\u00e9duction. La vente se termine le 29 mars \u00e0 14h UTC." | |
} | |
}, | |
{ | |
"date_from_gmt": "2024-02-14 00:00", | |
"date_to_gmt": "2024-02-20 22:59", | |
"format": "notice", | |
"style": "success", | |
"pages": [{ "page": "wc-admin", "path": "/extensions", "tab": "extensions" }], | |
"content": { | |
"en_US": "Test item, should be filtered out" | |
} | |
}, | |
{ | |
"date_from_gmt": "2024-02-13 00:00", | |
"date_to_gmt": "2024-05-13 22:59", | |
"format": "menu_bubble", | |
"content": { "en_US": "Sale" }, | |
"menu_item_id": "woocommerce-marketplace" | |
}, | |
{ | |
"date_from_gmt": "2024-02-01 00:00", | |
"date_to_gmt": "2024-02-01 22:59", | |
"format": "menu_bubble", | |
"content": { "en_US": "Test item, should be filtered out" }, | |
"menu_item_id": "woocommerce-marketplace" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment