Closed tiero closed 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 '{}'
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
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