tdex-network / tdex-sdk

🛠 JavaScript SDK for building applications on top of TDEX
https://tdex.network
MIT License
5 stars 12 forks source link

Support new BOTD#2 protocol to recognise supported content type #138

Closed tiero closed 2 years ago

tiero commented 2 years ago

Ref: https://dev.tdex.network/docs/specs/transport-protocol

ideally clients should call the Transport service and use the one more suited for the environment. The ENUM number states the priority

ie.

if in browser use first (if available)

if in node environment

tiero commented 2 years ago

Testnet daemons supports JSON content type 🎉

curl --location --request POST 'https://provider.tdex.network:19945/v1/markets' \
--header 'Content-Type: application/json' \
--data-raw '{}'
tiero commented 2 years ago

Ping @Janaka-Steph

Having Swagger definitions we can use it to auto-generate HTTP JSON clients https://github.com/tdex-network/tdex-daemon/tree/master/api-spec/openapi/swagger/tdex/v1