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

How can you specify what api version to use. I'm getting different results from when I just do a postman call against the rest api. #603

Closed
duncanmapes opened this issue Jul 18, 2024 · 2 comments

Comments

@duncanmapes
Copy link

  1. Please check our current Issues to see if someone already reported this https://github.com/Microsoft/vsts-node-api/issues
  2. Take a look at our Instructions for logging issues https://github.com/Microsoft/vsts-node-api/blob/master/CONTRIBUTING.md#instructions-for-logging-issues

Environment

Node version:
Npm version:
OS and version:
azure-devops-node-api version:

Issue Description

Expected behaviour

Actual behaviour

Steps to reproduce

Logs

@KonstantinTyukalov
Copy link
Contributor

Hi @duncanmapes, you can use the ?api-version=<version> query param to use specific api version in your direct http calls.
Ref: https://learn.microsoft.com/en-us/rest/api/azure/devops#components-of-a-rest-api-requestresponse-pair

You can't choose what api version to use in this library as all types and methods rely on the specific api version usage.

Please let me know if you any additional questions

@duncanmapes
Copy link
Author

noted, thanks

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

2 participants