You would like to fetch some orders from an API. The API does not allow any filtering. Create a small filter function/application that will filter the input based on some parameters.
- Solve the task using PHP
- Deliver the solution as a github/bitbucket repository link
method | resource | parameters | description |
---|---|---|---|
GET | hoej.dk/tests/api/orders |
none | Returns a list of all orders |
Your solution should be able to filter the input from the API and;
- Return all orders that have a specific product (e.g. "Logitech mouse")
- Return all orders that have products that are made of a specific material (e.g. "Plastic")
- Return all orders that have products without parts