-
Notifications
You must be signed in to change notification settings - Fork 0
Regex Search Product names
Daniel Cronqvist edited this page Dec 11, 2020
·
1 revision
Endpoint: https://co2.dcronqvist.se/products/search/name/regex
Example cURL POST:
$ curl -X POST -d '{ "search": "ovve" }' -H "Content-Type: application/json" 127.0.0.1:5000/products/search/name/regex
The following rules are applied to all keys in the payload using the EPF as a sample:
- Keys with arrays of specified types specify which types that are allowed for that specific key.
- Keys with specific values only allow that specific value in the payload.
- Keys that contain objects are recursively checked using rule 1 and 2.
{
"search": ["str"],
}
{
"response": {
"DTEK-D6OVVE-ALKIS": "Alkis D6 Ovve",
"DTEK-DNOLLK-OVVE": "DNollK Ovve"
},
"status": "200 OK",
"status_code": 200
}
- Create Product
- Search Product by ID
- Search Product by Tags
- Get all tags used on Products
- Get all Product ID's
- Regex Search Product ID's
- Regex Search Product names