AI Services Market › Use cases › Software & DevOps
Software & DevOpsDone with Cursor Mar 15, 2025
Generate API test files from endpoint descriptions
A poster described their endpoints to Cursor's agent, which generated .http files with tests and assertions, then ran them through an extension. · Mar 15, 2025
- What They Did
- In the Reddit comment, the builder says they made a Cursor extension so API testing stayed inside the editor. Their workflow was: describe endpoints to Cursor’s agent or point it at docs, let the agent generate a set of .http files with tests and assertions, then run those files through the extension, which uses their open-source t-req engine to make the requests scriptable rather than static.
- How It Went
- The stated result was an in-editor loop where the agent could scaffold runnable API tests and the user could iterate without switching tools or copying tokens around. The post gives no performance numbers or concrete limits beyond saying everything runs locally and needs no account.
- Worth Knowing
- The main catch mentioned is that this depends on the author’s extension plus the t-req engine; they say it runs locally and requires no account.
Try it yourself with Cursor
I have an API with these endpoints: [list each endpoint with method, path, and what it does]. In my repo, create .http files in a [tests/api] folder with a request for each endpoint, covering a success case and at least one error case, and add assertions for status code and key response fields. Use [base URL] as a variable, then run the files through my REST client extension and show me which assertions pass or fail. You're done when every endpoint has tests and you've reported the results.