tbdex icon indicating copy to clipboard operation
tbdex copied to clipboard

[http-api] Consider collapsing message submission API endpoints

Open mistermoe opened this issue 1 year ago • 1 comments

Currently, there are 3 endpoints to add a message to an exchange:

All of these endpoints expect a tbdex message as the request body. the tbdex message itself contains the message kind. Given this, I think we can probably collapse all of these into a single endpoint: POST /exchanges/:id/message.

Curious to hear what people think

mistermoe avatar Jan 13 '24 00:01 mistermoe

In light of us changing the request structure of Submit RFQ aka Create Exchange, I think it's easier to keep these endpoints separate.

diehuxx avatar Jan 17 '24 01:01 diehuxx