Replies: 2 comments 1 reply
-
At around noon today (PST) you should be able find these newly published articles documenting the Search 2.0 API. With this API, you can use the SDK or Web API. You will find that we also have C# sample code here: The C# Web API sample is probably not so useful to you since you can use the SDK ServiceClient with the pac modelbuilder build command and get some level of code generation. These APIs use a lot of JSON strings. The samples for either SDK or Web API include helper classes to serialize/deserialize the objects that you then pass as strings to the API. Please let me know what you think of the documentation and whether this helps you use your ServiceClient references. |
Beta Was this translation helpful? Give feedback.
-
I'll let @MattB-msft speak to whether this should be fully baked into ServiceClient without any code gen. Because these APIs have so many string properties that expect JSON data, they are hard to use without helper classes. It took some time to work these out in the samples we have provided. Sounds like you had to figure that out yourself too. My wish is that Dataverse would enable a capability to define supporting classes for any custom api request parameters or response properties, then the code gen would provide everything you need. |
Beta Was this translation helpful? Give feedback.
-
Maybe there's a way to do this already that I missed, but I'd like to be able to use my existing ServiceClient references in my custom code to also access Dataverse Search instead of having to mix and match ServiceClient and Dataverse Search API calls using direct HTTP/WebAPI calls. I can add some helper methods in my plumbing to assist with Dataverse Search, but then I still have to have multiple authentication approaches which I prefer to avoid.
Beta Was this translation helpful? Give feedback.
All reactions