I have a Workshop module + Ontologies, but at the same time I have a legacy system that I need to integrate with one of my Ontologies for reporting purposes.
Is it possible to have a Function that works as a REST API Endpoint, where my legacy system can do a GET, and fetech data from the object?
Thanks!
You should be able to do this using the OSDK:
Look at the documentation here: https://www.palantir.com/docs/foundry/ontology-sdk/overview, specifically on the developer console, which will allow you to publish external facing things that use the Palantir API. From what I understand your use case should fit in there!
I believe you’d have to publish a Function to a developer console app, but the path to executing that wouldn’t look like a traditional REST API shape (ex: DELETE /user/1), it’s more like POST v2/ontologies/ontology-\[uuid\]/queries/deleteUser/execute, which isn’t the best look if it’s customer-developer facing. @nhutfilz Is this an accurate assumption of what’s available, or is there a way to publish routes that are a little more semantically attractive? Thanks!
Yes, using Developer Console work just fine, but you are right regarding it’s not being a tradicional REST API - the return types are wrapped in a parser that makes impossible to return a plain and simpler JSON string if you are using nested keys
But for now it should be enough
Thank you all for the inputs