Github - how to download all repository information in the json format? - api

I want to explore all repository information from Github and build a database.
I have read the Github api docs, and found that the name of a specific repo or a specific query must be given when carrying out search operations.
Without a specific query, the search cannot be processed.
So is it possible to download all repo information in the json format via the API without specifying what exact repos to be searched?

No, for a large-scale query on all GitHub (public) repositories, you would need to use GitHub BigQuery instead.
With that service, you can run a query on all GitHub repo.

Related

How to know if repository's Security policy and Security advisories are Enabled/Disabled with Github API?

I'm trying to get the two following values for a Github repository using the Github API but I've been unsuccessful so far:
Is there a way to get these two information from the API provided by Github, at least for public repos?
Thanks.

How can I get a list of pull requests for all repos through the GitHub API?

I want to obtain the list of pull requests for all repos of a specific reviewer or author through the GitHub API.
I've followed the instructions at http://developer.github.com/v3/pulls/ but when I query /repos/:owner/:repo/pulls, I've to specify the particular repository but I want to list all the repositories.
Does anyone know how to get a complete list of pull requests for all repos of a specific reviewer through the API.

Set permissions for different namespaces in Azure DevOps using Rest API

How can I use RestAPI to set permissions for Build definitions, Release definitions, git repo and team securities? When I was using TFS, I was able to do this using Tfsssecurity.exe tool.
Edited.
For example, I am trying to modify the project permissions of Contributors group. like Allow Contributors to rename team project etc.
enter image description here
Are you looking for the Security API page?
You probably need to manage group membership using Graph API.
The Get started page lists the libraries you can use and how to authenticate.
There isn’t the REST API to change permission of release definition and git repo. Other contributors submit a user voice that you can vote Set version control permissions by REST API
For details,please refer to these links:
VSTS REST API to change security permissions on Release definition or Release definition environment
Use VSTS Rest API to set git repo permissions
Hope this helps.

Groovy rest api for Dropbox without third party plugins/libraries

I am trying to create a groovy script that will, based on some conditions, delete a dropbox folder full of artifacts.
I have been struggling to understand/figure out how to use Groovy restful API's without installing a bunch of Grails libraries or plugins, or the Dropbox API library from github.
Is it possible to use this dropbox URL: https://api.dropboxapi.com/1/fileops/delete_folder
without downloading extra libraries?
I'm having a lot of trouble finding information on the subject without the use of additional software.
Thanks !
Yes, you can easily create your own dropbox client from scratch but it is easier to check hints for JAVA developers and github repo with dropbox-sdk-core, which is already implementing dropbox API.
Remember to check out examples on github.

How to create a WebHook with WCF to GitHub Enterprise?

I wanna create a WebHook to integrate with a server GitHub Enterprise. I want to use WCF to create this service, but I don't found a tutorial or step by step. This is my first work with WebHooks, and I did not found the model of the structure of the service to integrate with GitHub.
Anybody have a solution, example or the way to developer this? What methods, parameters and names I need use? The documentation of GitHub is not clear to me.
Thanks.
The methodology to create webhooks in the UI on earlier versions of GitHub Enterprise is very similar to GitHub.com and is now identical on GitHub Enterprise 11.10.340 and later.
Using the UI is a case of browsing to the repository in question, select the "Settings" icon on the right, select "Service Hooks" and configure the appropriate hook. (The wording has changed slightly in GitHub Enterprise 11.10.340 to match what you see on GitHub.com).
If there isn't already a predefined service, a standard "WebHook URLs" hook should do the trick. This will POST the push payload to the URL you enter here.
You can also create the webhook using the API. If you're not running GitHub Enterprise 11.10.340 or later, you can refer to our archived documentation at https://developer.github.com/enterprise/11.10.320/, specifically https://developer.github.com/enterprise/11.10.320/v3/repos/hooks/ for how to use the API to create a webhook. If you're running GitHub Enterprise 11.10.340 or later the documentation at https://developer.github.com/webhooks/ applies to these versions of GitHub Enterprise.
You'd then need to ensure the recipient of this POST knows how to process the payload and act upon it.
A good service to use to check the payload from any webhook is http://requestb.in/.