D365 BC API v2.0 Open API spec - openapi

I am looking for the open api spec for the business central api v2.0. I can only find the v1.0 version here
created an nswag client from the v1.0 spec, but it is missing v2.0 definitions.

Related

What is the GitHub API resource type of non-classic Projects?

How can we access data about non-classic GitHub Projects?
The official documentation defines API resource type Project for this purpose but with this only classic Project board data can be accessed.
The new projects v2 is not in the REST api, only in GraphQL.
Check the calls in the GitHub docs here: https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/using-the-api-to-manage-projects

Any Rest API to check for list of requested extension in Azure DevOps?

Is there a list of extension request available as a Rest API? There is a Rest API for installed extensions https://learn.microsoft.com/en-us/rest/api/azure/devops/extensionmanagement/installed-extensions?view=azure-devops-rest-6.0 . Was wondering if there is a similar one for requested extensions?

How to identify the latest stable REST API version of Azure DevOps Services?

In my project, there is a requirement to create Azure artifacts feed automatically.
For this I used REST API mentioned in this doc: https://learn.microsoft.com/en-us/rest/api/azure/devops/artifacts/feed%20%20management/create%20feed?view=azure-devops-rest-5.0
and used python to create feed.
POST https://feeds.dev.azure.com/{organization}/_apis/packaging/feeds?api-version=5.0-preview.1
It worked fine.
Later I saw that a new version of API was available.
It is not easy to change the code every time there is a new API version.
So the question is how to identify/use the latest stable working version of API always?
Sorry, there wasn't a hint if there is a new Rest API version released. But just like Matt commented, the old version will not stop working in general. It's quite stable.
Azure DevOps and Team Foundation Server REST APIs are versioned to ensure applications and services continue to work as APIs evolve.
Major API version releases align with Team Foundation Server RTM releases. For example, the 3.0 API set was introduced with Team Foundation Server 2017.
You'll find a quick mapping of REST API versions and their corresponding TFS releases here. All API versions will work on the server version mentioned as well as later versions.
Unlike Azure DevOps Server/TFS, if you are working on Azure DevOps Service, you do not have to pay too much attention which version you are using. It's supported on 1.0~6.0.
Hope it is clearly.

Microsoft TFS Rest API for repository list does not return ssh URLs

TFS server version: 2017
Compatible API version <= 3.0
The Rest API endpoint to fetch the information for tfs-git repositories is mentioned here:
[https://learn.microsoft.com/en-us/rest/api/azure/devops/git/repositories/list?view=azure-devops-rest-4.1]
This returns the HTTP clone links for the repositories but not the ssh URL. Also, the documentation does not mention any API option to get the same.
Is there for API not including the ssh URLs?
Again, this isn't visual studio but TFS server.
Are sure this is the case, as if I call.
https://dev.azure.com/PeterLai0838/_apis/git/repositories?api-version=5.1
i get
"remoteUrl":"https://PeterLai0838#dev.azure.com/PeterLai0838/roboops/_git/roboops",
"sshUrl":"git#ssh.dev.azure.com:v3/PeterLai0838/roboops/roboops",
"webUrl":"https://dev.azure.com/PeterLai0838/roboops/_git/roboops"}]
Ah wait, i notice your using the 4.1 api, maybe use the 5.1?
sshURL is supported in TFS 2018 and later. You may submit a feature request at website below:
https://developercommunity.visualstudio.com/content/idea/post.html?space=22

from which version graphql api is supported in github

I am trying to access graphql API in my local github version enterprise 2.7, but its giving error 404 page not found.
Here is url of graphql
https://10.13.28.120/api/v4
So just want to check from which version graphql is supported in github?
From this release note (June 2017), GraphQL API is available from Github enterprise 2.10.0. It isn't available on Github Enterprise 2.7 (and won't likely be implemented as the same release note announce v2.7 deprecation in August 2017)
From Github Enterprise 2.10 documentation, it can be accessed from this endpoint :
http(s)://[hostname]/api/graphql