I spend a lot of time testing and debugging APIs, and so do my AI agents. Lately I notice that my agents lose time and tokens on it. They look for the right port, guess at endpoints, fight with a terminal, and try to get the database back into a known state. Every run starts with the same detective work. So for this series of posts I picked one scenario and I’m sticking with it: the API-testing loop . The goal is to adapt Aspire so that I (and my agents) can debug and test easily and efficiently. The third step of my API-testing loop: tests leave data behind. A clean, repeatable run means flushing Redis and recreating the catalog database. By hand, that is a Redis CLI command and a database drop-and-seed, in the right order. For me that's annoying. For an agent, it's one more thing to figure out on every run. Note: this post is part of a series about the demos from my session “Bending Aspire to your will” . In aspire-shop , state lives in two places: the PostgreSQL cat...
I spend a lot of time testing and debugging APIs, and so do my AI agents. Lately I notice that my agents lose time and tokens on it. They look for the right port, guess at endpoints, fight with a terminal, and try to get the database back into a known state. Every run starts with the same detective work. So for this series of posts I picked one scenario and I’m sticking with it: the API-testing loop . The goal is to adapt Aspire so that I (and my agents) can debug and test easily and efficiently. Part 1 gave me an export button for the OpenAPI spec. Now the next step in the loop: firing a test call at an endpoint. To check one endpoint I open a REST client, look up the port and type the URL. Again. My agents do the same, only they pay for it in tokens. Note: this post is part of a series about the demos from my session “Bending Aspire to your will” . The test call I want to make is simple: retrieve the products of the catalog service for a given brand. The endpoint is /api/v1/...