feat(bazaar): add GET /intent/:id and GET /intent/:id/quotes routes - #40
feat(bazaar): add GET /intent/:id and GET /intent/:id/quotes routes#40Jaamaldeen wants to merge 1 commit into
Conversation
Adds two new read-only routes to the Bazaar API for agents to view their own negotiation data: - GET /api/v1/bazaar/intent/:id - Fetch an intent by ID regardless of status * Returns 'negotiating' status intents (which the feed cannot serve) * Uses intentRowToObject() to match the feed shape exactly * Returns 404 for unknown IDs - GET /api/v1/bazaar/intent/:id/quotes - Fetch all quotes for an intent * Each quote includes is_valid flag (true if valid_until is in the future) * Only returns quotes belonging to the specified intent * Returns 404 if the intent doesn't exist Decisions: - These routes are FREE (no payment required) because the agent already paid to publish - Using nested RESTful approach: /intent/:id/quotes Tests: All 13 acceptance criteria tests passing offline
|
Thanks for the work here, @Jaamaldeen — but I can't take this one, and I want to be specific about why so it's useful to you. The title says "add two read-only routes", but the diff rewrites
That also reverts four fixes already merged on On the test side, Two process notes for next time, both easy wins: branch off a feature branch rather than your fork's BRIDGE-13 has been implemented in #35, which adds the same two endpoints on top of the current routes file. Closing this one. |
Adds two new read-only routes to the Bazaar API for agents to view their own negotiation data:
GET /api/v1/bazaar/intent/:id - Fetch an intent by ID regardless of status
GET /api/v1/bazaar/intent/:id/quotes - Fetch all quotes for an intent
Decisions:
Tests: All 13 acceptance criteria tests passing offline
closes #30