This page, and the links from it, explore using OData from Tcl.
"OData is a standardized protocol for creating and consuming data APIs. OData builds on core protocols like HTTP and commonly accepted methodologies like REST. The result is a uniform way to expose full-featured data APIs." See the Open Data Protocol Home Page for more information.
There is a TclOO class that implements basic OData V4.0 (read only at this time) here .