Has anyone built true discovery in a REST tap? The...
# plugins-general
r
Has anyone built true discovery in a REST tap? The issue I’m having: • Want to do a probe API request to derive the schema from the probe’s response (first page, say) • Want to do this inside
@property def schema(self)
self.schema
is called inside the constructor, but it needs the constructor to have finished before it can do an API request Ideally I could define
schema
after the constructor is done so it can make full use of authenticator, header building, etc
v
yeah there's a number of them, because you say probe I think you mean there's not a defined schema. https://github.com/Widen/tap-rest-api-msdk does that, https://github.com/ets/tap-spreadsheets-anywhere does it. There's more too but I think this may lead you to the right place
r
@visch that’s exactly it! tap-rest-api-msdk is doing that first exploring API call – I’ll dig in to see how without initialising a full Stream (which you can’t without a schema)