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
56 lines
1.6 KiB
HTTP
56 lines
1.6 KiB
HTTP
## DependencyGraphApi
|
|
|
|
### Create a snapshot of dependencies for a repository
|
|
##
|
|
POST https://api.github.com/repos/{{owner}}/{{repo}}/dependency-graph/snapshots
|
|
Content-Type: application/json
|
|
Accept: application/json
|
|
|
|
{
|
|
"version" : 0,
|
|
"sha" : "ce587453ced02b1526dfb4cb910479d431683101",
|
|
"ref" : "refs/heads/main",
|
|
"job" : {
|
|
"correlator" : "yourworkflowname_youractionname",
|
|
"id" : "yourrunid"
|
|
},
|
|
"detector" : {
|
|
"name" : "octo-detector",
|
|
"version" : "0.0.1",
|
|
"url" : "https://github.com/octo-org/octo-repo"
|
|
},
|
|
"scanned" : "2022-06-14T20:25:00Z",
|
|
"manifests" : {
|
|
"package-lock.json" : {
|
|
"name" : "package-lock.json",
|
|
"file" : {
|
|
"source_location" : "src/package-lock.json"
|
|
},
|
|
"resolved" : {
|
|
"@actions/core" : {
|
|
"package_url" : "pkg:/npm/%40actions/core@1.1.9",
|
|
"dependencies" : [ "@actions/http-client" ]
|
|
},
|
|
"@actions/http-client" : {
|
|
"package_url" : "pkg:/npm/%40actions/http-client@1.0.7",
|
|
"dependencies" : [ "tunnel" ]
|
|
},
|
|
"tunnel" : {
|
|
"package_url" : "pkg:/npm/tunnel@0.0.6"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
### Get a diff of the dependencies between commits
|
|
## Get a diff of the dependencies between commits
|
|
GET https://api.github.com/repos/{{owner}}/{{repo}}/dependency-graph/compare/{{basehead}}
|
|
Accept: application/json
|
|
|
|
### Export a software bill of materials (SBOM) for a repository.
|
|
## Export a software bill of materials (SBOM) for a repository.
|
|
GET https://api.github.com/repos/{{owner}}/{{repo}}/dependency-graph/sbom
|
|
Accept: application/json
|