A modern product manager builds only what is needed and, for the rest… integrates with ready-made. To take advantage of the 1000s API around us, a PM should understand the basics of API structure: endpoint, input, and output.
# Input Parameters:
- Coffee type: "Latte", "Black", "Cappuccino"
- Milk choice: "None", "Regular", "Coconut", "Oat"
- Money: credit card or cash
# Output Parameters:
- Coffee cup
- Exchange: if applicable
# Potential errors
- Milk choice is not available (e.g. oat milk is out)
- We lost your order (e.g. paper with your name slipped to the floor)
- Coffee is too cold (e.g. barista forgot to heat up the milk)
- No change available (e.g. no way to buy 3.75$ coffee using 100$ banknote)
# Input Parameters:
- Coffee type: "Latte", "Black", "Cappuccino"
- Milk choice: "None", "Regular", "Coconut", "Oat"
- Extras: "Syrop", "Creme", "Icecream"
- Money: credit card or cash
# Input Parameters:
- Coffee type: "Latte", "Black", "Cappuccino"
- Milk choice: "None", "Regular", "Coconut", "Oat"
- Extras: "Syrop", "Creme", "Icecream"
- In-my-cup: yes/no (reduces price by 40 cents)
- Money: credit card or cash
# Input Parameters:
- City name: e.g. "New York City"
- Date/Time: e.g. "2024-02-08 15:00:00"
# Output Parameters:
- Temperature: e.g. 25°C
- Weather Condition: (e.g., sunny, rainy, cloudy)
- Precipitation: "20% chance of rain"
# Potential errors
- Location is unknown
- Date/time in the past
# Input Parameters:
- Distance: how many kilometers a user wants to run today
- Time: the same but expressed in minutes
- Preference: parks, fields, urban, riverside, etc. - smth helping
algorithm to find the best match
- Circular or not: should a user come back to the starting point or not
# Output Parameters:
- Array of coordinates (lat, long): which can be plotted on the map
- Descriptions: ("turn left to John I street") for key segments
- Total distance: of the resulting route
# Potential errors
- Failed to build a route
- Input distance is too short/long
- Unknown preference passed