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
96 lines
4.9 KiB
HTTP
96 lines
4.9 KiB
HTTP
## CodeScanningApi
|
|
|
|
### Delete a code scanning analysis from a repository
|
|
## Delete a code scanning analysis from a repository
|
|
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/code-scanning/analyses/{{analysis_id}}
|
|
Accept: application/json
|
|
Accept: application/scim+json
|
|
|
|
### Get a code scanning alert
|
|
## Get a code scanning alert
|
|
GET https://api.github.com/repos/{{owner}}/{{repo}}/code-scanning/alerts/{{alert_number}}
|
|
Accept: application/json
|
|
|
|
### Get a code scanning analysis for a repository
|
|
## Get a code scanning analysis for a repository
|
|
GET https://api.github.com/repos/{{owner}}/{{repo}}/code-scanning/analyses/{{analysis_id}}
|
|
Accept: application/json
|
|
Accept: application/json+sarif
|
|
|
|
### Get a CodeQL database for a repository
|
|
## Get a CodeQL database for a repository
|
|
GET https://api.github.com/repos/{{owner}}/{{repo}}/code-scanning/codeql/databases/{{language}}
|
|
Accept: application/json
|
|
|
|
### Get a code scanning default setup configuration
|
|
## Get a code scanning default setup configuration
|
|
GET https://api.github.com/repos/{{owner}}/{{repo}}/code-scanning/default-setup
|
|
Accept: application/json
|
|
|
|
### Get information about a SARIF upload
|
|
## Get information about a SARIF upload
|
|
GET https://api.github.com/repos/{{owner}}/{{repo}}/code-scanning/sarifs/{{sarif_id}}
|
|
Accept: application/json
|
|
|
|
### List instances of a code scanning alert
|
|
## List instances of a code scanning alert
|
|
GET https://api.github.com/repos/{{owner}}/{{repo}}/code-scanning/alerts/{{alert_number}}/instances
|
|
Accept: application/json
|
|
|
|
### List code scanning alerts for an organization
|
|
## List code scanning alerts for an organization
|
|
GET https://api.github.com/orgs/{{org}}/code-scanning/alerts
|
|
Accept: application/json
|
|
|
|
### List code scanning alerts for a repository
|
|
## List code scanning alerts for a repository
|
|
GET https://api.github.com/repos/{{owner}}/{{repo}}/code-scanning/alerts
|
|
Accept: application/json
|
|
|
|
### List CodeQL databases for a repository
|
|
## List CodeQL databases for a repository
|
|
GET https://api.github.com/repos/{{owner}}/{{repo}}/code-scanning/codeql/databases
|
|
Accept: application/json
|
|
|
|
### List code scanning analyses for a repository
|
|
## List code scanning analyses for a repository
|
|
GET https://api.github.com/repos/{{owner}}/{{repo}}/code-scanning/analyses
|
|
Accept: application/json
|
|
|
|
### Update a code scanning alert
|
|
## Update a code scanning alert
|
|
PATCH https://api.github.com/repos/{{owner}}/{{repo}}/code-scanning/alerts/{{alert_number}}
|
|
Content-Type: application/json
|
|
Accept: application/json
|
|
|
|
{
|
|
"state" : "dismissed",
|
|
"dismissed_reason" : "false positive",
|
|
"dismissed_comment" : "This alert is not actually correct, because there's a sanitizer included in the library."
|
|
}
|
|
|
|
|
|
### Update a code scanning default setup configuration
|
|
##
|
|
PATCH https://api.github.com/repos/{{owner}}/{{repo}}/code-scanning/default-setup
|
|
Content-Type: application/json
|
|
Accept: application/json
|
|
|
|
{
|
|
"state" : "configured"
|
|
}
|
|
|
|
|
|
### Upload an analysis as SARIF data
|
|
## Upload an analysis as SARIF data
|
|
POST https://api.github.com/repos/{{owner}}/{{repo}}/code-scanning/sarifs
|
|
Content-Type: application/json
|
|
Accept: application/json
|
|
|
|
{
|
|
"commit_sha" : "4b6472266afd7b471e86085a6659e8c7f2b119da",
|
|
"ref" : "refs/heads/master",
|
|
"sarif" : "H4sICMLGdF4AA2V4YW1wbGUuc2FyaWYAvVjdbts2FL7P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