Describe how you would design an API on paper before implementation, including the key request and response flows.
Implement order_api_flows to order API operations before implementation. Each operation has a unique name and a list of operations whose responses it requires. Return a deterministic topological ordering, choosing the alphabetically earliest available operation; return [] if a circular dependency exists.
Input is a list of dictionaries with name and depends_on fields. Output is a list of operation names.
def order_api_flows(operations):