forked from loafle/openapi-generator-original
* Add notes to requests for better readability * Adds extra configs for jetbrains http client for testing * Adding new sample data * Changes * Setting up test infrastructure * Adds body to requests. * Fixing some bugs in map traversal It'd be much better to use a proper library for this though * Adding secret file to gitignore * Adds github spec, for complex example. Add null check to avoid errors in example extraction * Add support for custom variables in request body * Add support for all basic Auth headers * Not sure whaet happened with my api mustache file * Add support for custom headers * Fixes empty lines issue * Adds support for Accept header * Adding many tests, deleting experiment files * Updates generator doc * Completes README file with extra information * Runs generate-samples and export docs * Running sample generation * Adding missing files to samples * Removing forgotten stdout statements * Ignore one test making the docker image generation fail
65 lines
2.0 KiB
HTTP
65 lines
2.0 KiB
HTTP
## InteractionsApi
|
|
|
|
### Get interaction restrictions for your public repositories
|
|
## Get interaction restrictions for your public repositories
|
|
GET https://api.github.com/user/interaction-limits
|
|
Accept: application/json
|
|
|
|
### Get interaction restrictions for an organization
|
|
## Get interaction restrictions for an organization
|
|
GET https://api.github.com/orgs/{{org}}/interaction-limits
|
|
Accept: application/json
|
|
|
|
### Get interaction restrictions for a repository
|
|
## Get interaction restrictions for a repository
|
|
GET https://api.github.com/repos/{{owner}}/{{repo}}/interaction-limits
|
|
Accept: application/json
|
|
|
|
### Remove interaction restrictions from your public repositories
|
|
## Remove interaction restrictions from your public repositories
|
|
DELETE https://api.github.com/user/interaction-limits
|
|
|
|
### Remove interaction restrictions for an organization
|
|
## Remove interaction restrictions for an organization
|
|
DELETE https://api.github.com/orgs/{{org}}/interaction-limits
|
|
|
|
### Remove interaction restrictions for a repository
|
|
## Remove interaction restrictions for a repository
|
|
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/interaction-limits
|
|
|
|
### Set interaction restrictions for your public repositories
|
|
## Set interaction restrictions for your public repositories
|
|
PUT https://api.github.com/user/interaction-limits
|
|
Content-Type: application/json
|
|
Accept: application/json
|
|
|
|
{
|
|
"limit" : "collaborators_only",
|
|
"expiry" : "one_month"
|
|
}
|
|
|
|
|
|
### Set interaction restrictions for an organization
|
|
## Set interaction restrictions for an organization
|
|
PUT https://api.github.com/orgs/{{org}}/interaction-limits
|
|
Content-Type: application/json
|
|
Accept: application/json
|
|
|
|
{
|
|
"limit" : "collaborators_only",
|
|
"expiry" : "one_month"
|
|
}
|
|
|
|
|
|
### Set interaction restrictions for a repository
|
|
## Set interaction restrictions for a repository
|
|
PUT https://api.github.com/repos/{{owner}}/{{repo}}/interaction-limits
|
|
Content-Type: application/json
|
|
Accept: application/json
|
|
|
|
{
|
|
"limit" : "collaborators_only",
|
|
"expiry" : "one_day"
|
|
}
|
|
|