Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically converts PSCustomObject and Hashtable to JSON string when passed as Body to Invoke-TfsRestApi #213

Open
igoravl opened this issue May 6, 2024 · 0 comments
Assignees
Milestone

Comments

@igoravl
Copy link
Owner

igoravl commented May 6, 2024

Enhance the Invoke-TfsRestApi cmdlet by automatically converting PSCustomObject and Hashtable objects to a JSON string when passed as the body of the request, aligning its behavior with that of the Invoke-RestMethod.

Currently, when using Invoke-TfsRestApi to make calls to the Azure DevOps API, the automatic conversion of PSCustomObject and Hashtable objects to JSON format before being sent as the request body is not implemented. The caller is required to make a call to ConvertTo-Json (or equivalent) prior to calling Invoke-TfsRestApi.

Ensuring that Invoke-TfsRestApi behaves similarly to Invoke-RestMethod in this aspect is essential for consistency and user experience. Users expect seamless handling of data objects, and this proposed feature aims to meet those expectations.

@igoravl igoravl added this to the Futures milestone May 6, 2024
@igoravl igoravl self-assigned this May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant