Feature breakdown
Now that we understand that there are both business problems as well as data problems, we need to start to identify the features that we need. Once we get to this level of detail, it should be easier to come up with specific prompts.
A way to do this feature breakdown is as follows – for example, for products:
- Read all products.
- Read products given a filter: Usually, you won’t want to read all products but maybe all products of a certain category, or maybe even limit it to a specific value such as 10 products or 20 products.
- Search for products: You should support the user looking for specific products, usually via a category, name, or perhaps part of a certain campaign.
- Retrieve detailed information on a specific product.
I’m sure there are more features for products, but now you have an idea of what granular detail you should have before you continue building the API.