Closed toph-allen closed 3 years ago
I agree it would be nice to have a "true' Tableau request here. However, this curl command is autogenerated from the OpenAPI spec, and from what I can see, we couldn't modify it without making a drastic departure from standard OpenAPI behavior. Perhaps this is best handled with documentation?
Hmm, we should probably document it. I don't think it's that much of a big deal. What this is really about is the payload, right? The package handles routing requests to /evaluate
to /script
, but the data payload is handled the same in either case. Might be worth putting into an appendix or note in the docs at some point.
Yes, it's really about ensuring the payload is formatted correctly, with the curl
command does :grin: I'll add a line to the documentation
I'm running the
stringutils
example, and I see this CURL command under "Try it out":Notice that the URL's path component is
/lowercase
, but the JSON blob also contains the redundant"script": "lowercase"
. This doesn't match calls we'd expect from Tableau, which would, unless I'm having a brain fart, be more like:Probably best to go one way or the other? Or am I overthinking this?