Get Branching Model in bitbucket server via REST - rest

Someone knows how I can GET the PROJECT's branching model via REST API. Not the repository. I can not find how to do it anywhere.
In bitbucket server I find it via web at https://mybitbucket.com/plugins/servlet/branchmodel/projects/{project-key}

I found it:
Is not in the actual version of REST API Documentation
(https://docs.atlassian.com/bitbucket-server/rest/5.14.0/bitbucket-rest.html)
Then, you can do GET request to:
https://mybitbucket.com/rest/branch-utils/1.0/projects/{project-key}/branchmodel/configuration

Related

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

Getting profile information from tfs REST API showing Page not found

Am sure this might have been asked before.I have searched like anything not getting any information thats why i thought of posting here. any help is appreciated
https://app.vssps.visualstudio.com/_apis/profile/profiles/me?api-version=1.0
this REST API always giving Page not found tfs2015 server using.
The REST API you mentioned is for VSTS :
https://app.vssps.visualstudio.com/_apis/profile/profiles/me?api-version=1.0
For on-premise TFS (TFS 2015 in your case), you can use below REST API to get the profile information (connect to TFS first):
http://server:8080/tfs/_api/_common/GetUserProfile?__v=5

Artifactory Pro Rest API to fetch Used By artifact information

I am looking into getting the "reverse dependencies" of an artifact from the Rest API of Artifactory. The information is already present in the "Builds" section of the artifact. I dug a bit deeper and the call to the UI API is exactly what I would be looking for ([root]/artifactory/ui/artifactbuilds?...), but this is not an official endpoint.
How would I get the "raw" information from the "official" Rest API ?
Thank you
You can use the following AQL query for getting all the builds an artifact is part of:
builds.find({"module.artifact.name":{"$eq":"my-artifact.jar"}})
To run the query use the AQL search REST API method

Nexus - List Artifacts from repository

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!

Bitbucket private server REST API

I can't find any documentation regarding bitbucket API when hosted on private server.
Official one: https://confluence.atlassian.com/bitbucket/use-the-bitbucket-cloud-rest-apis-222724129.html
We have hosted bitbucket server and simply changing the host doesn't work, it looks like the whole API is different.
simply changing the host doesn't work, it looks like the whole API is different.
I have no idea why that would be, but it seems that you're right. There are different API docs for Bitbucket Cloud (which you have found) and for Bitbucket Server.
These APIs are certainly different:
Bitbucket Cloud has a number of changesets endpoints, e.g.
GET https://api.bitbucket.org/1.0/repositories/{accountname}/{repo_slug}/
changesets?limit=integer?start=node
Bitbucket Server has no changesets endpoints at all, though it does have some changes endpoints