-
Notifications
You must be signed in to change notification settings - Fork 0
Regex Search Product ID's
Daniel Cronqvist edited this page Dec 11, 2020
·
2 revisions
Endpoint: https://co2.dcronqvist.se/products/search/id/regex
Example cURL POST:
$ curl -X POST -d '{ "search": "accumu" }' -H "Content-Type: application/json" 127.0.0.1:5000/products/search/id/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": [
"accumulator",
"accumulator-big",
...
],
"status_code": 200,
"status": "200 OK"
}
- 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