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
Related
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.
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
Is there something similar to https://docs.sonarqube.org/display/PLUG/GitHub+Plugin but for Bitbucket cloud?
I would like to run it from Jenkins with gradle.
Looking at the Other Plugins section of the documentation, looks like there is a plugin for this: https://github.com/mibexsoftware/sonar-bitbucket-plugin
However, this plugin relies on a deprecated feature of SonarQube (the "preview/issues" mode) - which will be removed in future versions.
Note that SonarSource is currently working on a built-in support of Bitbucket Cloud (pull request analysis included) for its cloud service called SonarCloud. This built-in support should be available by the end of Q2 2018.
Is there any way to list artifact in Nexus v3.0, other that using rest API?
As the rest API for this version have not been implemented yet.
At this time, the REST API has been released as beta. You can get more information and give us feedback by going to this link: http://blog.sonatype.com/nexus-repository-new-beta-rest-api-for-content
It should address this use case, as well!
GitHub released this nice feature to create PR templates[1]. Me and my team wanted to leverage that. However,I couldn't get it to work in enterprise git.
Is the new feature not available in GitHub Enterprise yet?
[1]https://github.com/blog/2111-issue-and-pull-request-templates
The pull request template feature is not available in GitHub Enterprise as of March 12, 2016. The latest releases of GitHub Enterprise are 2.5.1, 2.4.5, 2.3.9, 2.2.15, and 2.1.20. Features introduced at GitHub.com may make their way into GitHub Enterprise, but it is not guaranteed. For instance, Jupiter notebook support was added to GitHub.com on May 7, 2015, but has not yet made its way into GitHub Enterprise.
GitHub Enterprise release notes can be found here