OData / ODataConnectedService

A Visual Studio extension for generating client code for OData Services
Other
79 stars 41 forks source link

PowerShell Support #403

Open CraigChamberlain opened 1 month ago

CraigChamberlain commented 1 month ago

Is your feature request related to a problem? Please describe.

Not with this product but with Microsoft.PowerShell.ODataUtils. It is not updated for v4.

Describe the solution you'd like

It would be great to have a PowerShell Tool without the need for dotnet sdk. I was looking at this and the ODataConnectedService to see if there was anything that could be reused in say a dotnet standard class library powershell module.

Describe alternatives you've considered

I'm going to have a hack around in PowerShell scripts to produce something way more basic. This is quite a big project to understand and replicate. Also going to look at the "https://github.com/simple-odata-client/Simple.OData.Client" to see if that is easier to piggy back off.

CraigChamberlain commented 1 month ago

I did find this, requires node which is a shame but this could be the way to go. https://devblogs.microsoft.com/powershell/cmdlets-via-autorest/

CraigChamberlain commented 1 month ago

This just produces a sln that needs building with .NET anyway. Imperfect tools for converting Odata -> Opendata. This might still be worth doing in .net for Odata but most likely only if few odata endpoints do not also publish Opendata swagger configuration in addition to Odata metadata. Looks like it's still going to require a build.

gathogojr commented 1 month ago

Thank you @CraigChamberlain for reporting this issue. Can you clarify what you're looking for? Is it a PowerShell module that supports interacting with an OData service?

CraigChamberlain commented 1 month ago

Hi

Yes ideally some kind of code generator that depends on powershell only.

PowerBI data connector has a great self descovry system for example.

I've been doing quite a lot of exploration around whats available for powershell c# and f# and it seems like the tools and packages haven't been getting any updates apart from the c# ones. I know this isn't the ideal forum for discussing it so thanks for taking an interest.

Im going to have a shot at making a command that can read odata meta and make various get- commands for each of the endpoints.

Updates, puts etc. are a low priority for me at least.

Thanks

Craig

On Tue, 16 Jul 2024, 17:51 John Gathogo, @.***> wrote:

Thank you @CraigChamberlain https://github.com/CraigChamberlain for reporting this issue. Can you clarify what you're looking for? Is it a PowerShell module that supports interacting with an OData service?

— Reply to this email directly, view it on GitHub https://github.com/OData/ODataConnectedService/issues/403#issuecomment-2231389775, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALRDEQ3BG6I3PSRPXM5BVN3ZMVFPXAVCNFSM6AAAAABK3LMSYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRGM4DSNZXGU . You are receiving this because you were mentioned.Message ID: @.***>