Adding flyio

This commit is contained in:
Julien Lengrand-Lambert
2024-03-07 10:52:37 +01:00
parent 11f40e54fa
commit 3cdf8826eb
42 changed files with 3773 additions and 925 deletions

View File

@@ -0,0 +1,28 @@
## AppsApi
### Create App
## Create App
POST https://api.machines.dev/v1/apps
Content-Type: application/json
Accept: application/json
{
"app_name": "<string>",
"network": "<string>",
"org_slug": "<string>"
}
### Destroy App
## Destroy App
DELETE https://api.machines.dev/v1/apps/{{app_name}}
### List Apps
## List Apps
GET https://api.machines.dev/v1/apps
Accept: application/json
### Get App
## Get App
GET https://api.machines.dev/v1/apps/{{app_name}}
Accept: application/json

View File

@@ -0,0 +1,159 @@
## MachinesApi
### Cordon Machine
## Cordon Machine
POST https://api.machines.dev/v1/apps/{{app_name}}/machines/{{machine_id}}/cordon
### Create Machine
## Create Machine
POST https://api.machines.dev/v1/apps/{{app_name}}/machines
Content-Type: application/json
Accept: application/json
{
"config": "<string>",
"lease_ttl": "<number>",
"lsvd": "<string>",
"name": "<string>",
"region": "<string>",
"skip_launch": "<string>",
"skip_service_registration": "<string>"
}
### Create Lease
## Create Lease
POST https://api.machines.dev/v1/apps/{{app_name}}/machines/{{machine_id}}/lease
Content-Type: application/json
Accept: application/json
{
"description": "<string>",
"ttl": "<number>"
}
### Destroy Machine
## Destroy Machine
DELETE https://api.machines.dev/v1/apps/{{app_name}}/machines/{{machine_id}}
### Delete Metadata
## Delete Metadata
DELETE https://api.machines.dev/v1/apps/{{app_name}}/machines/{{machine_id}}/metadata/{{key}}
### Execute Command
## Execute Command
POST https://api.machines.dev/v1/apps/{{app_name}}/machines/{{machine_id}}/exec
Content-Type: application/json
Accept: application/octet-stream
Accept: application/json
{
"cmd": "<string>",
"command": "<string>",
"timeout": "<number>"
}
### List Machines
## List Machines
GET https://api.machines.dev/v1/apps/{{app_name}}/machines
Accept: application/json
### List Events
## List Events
GET https://api.machines.dev/v1/apps/{{app_name}}/machines/{{machine_id}}/events
Accept: application/json
### List Processes
## List Processes
GET https://api.machines.dev/v1/apps/{{app_name}}/machines/{{machine_id}}/ps
Accept: application/json
### List Versions
## List Versions
GET https://api.machines.dev/v1/apps/{{app_name}}/machines/{{machine_id}}/versions
Accept: application/json
### Release Lease
## Release Lease
DELETE https://api.machines.dev/v1/apps/{{app_name}}/machines/{{machine_id}}/lease
### Restart Machine
## Restart Machine
POST https://api.machines.dev/v1/apps/{{app_name}}/machines/{{machine_id}}/restart
Accept: application/json
### Get Machine
## Get Machine
GET https://api.machines.dev/v1/apps/{{app_name}}/machines/{{machine_id}}
Accept: application/json
### Get Lease
## Get Lease
GET https://api.machines.dev/v1/apps/{{app_name}}/machines/{{machine_id}}/lease
Accept: application/json
### Get Metadata
## Get Metadata
GET https://api.machines.dev/v1/apps/{{app_name}}/machines/{{machine_id}}/metadata
Accept: application/json
### Signal Machine
## Signal Machine
POST https://api.machines.dev/v1/apps/{{app_name}}/machines/{{machine_id}}/signal
Content-Type: application/json
Accept: application/json
{
"signal": "<string>"
}
### Start Machine
## Start Machine
POST https://api.machines.dev/v1/apps/{{app_name}}/machines/{{machine_id}}/start
### Stop Machine
## Stop Machine
POST https://api.machines.dev/v1/apps/{{app_name}}/machines/{{machine_id}}/stop
Content-Type: application/json
Accept: application/json
{
"signal": "<string>",
"timeout": "<string>"
}
### Uncordon Machine
## Uncordon Machine
POST https://api.machines.dev/v1/apps/{{app_name}}/machines/{{machine_id}}/uncordon
### Update Machine
## Update Machine
POST https://api.machines.dev/v1/apps/{{app_name}}/machines/{{machine_id}}
Content-Type: application/json
Accept: application/json
{
"config": "<string>",
"current_version": "<string>",
"lease_ttl": "<number>",
"lsvd": "<string>",
"name": "<string>",
"region": "<string>",
"skip_launch": "<string>",
"skip_service_registration": "<string>"
}
### Update Metadata
## Update Metadata
POST https://api.machines.dev/v1/apps/{{app_name}}/machines/{{machine_id}}/metadata/{{key}}
Accept: application/json
### Wait for State
## Wait for State
GET https://api.machines.dev/v1/apps/{{app_name}}/machines/{{machine_id}}/wait
Accept: application/json

View File

@@ -0,0 +1,69 @@
## VolumesApi
### Create Snapshot
## Create Snapshot
POST https://api.machines.dev/v1/apps/{{app_name}}/volumes/{{volume_id}}/snapshots
### Destroy Volume
## Destroy Volume
DELETE https://api.machines.dev/v1/apps/{{app_name}}/volumes/{{volume_id}}
Accept: application/json
### Create Volume
## Create Volume
POST https://api.machines.dev/v1/apps/{{app_name}}/volumes
Content-Type: application/json
Accept: application/json
{
"compute": "<string>",
"encrypted": "<string>",
"fstype": "<string>",
"machines_only": "<string>",
"name": "<string>",
"region": "<string>",
"require_unique_zone": "<string>",
"size_gb": "<number>",
"snapshot_id": "<string>",
"snapshot_retention": "<number>",
"source_volume_id": "<string>"
}
### Extend Volume
## Extend Volume
PUT https://api.machines.dev/v1/apps/{{app_name}}/volumes/{{volume_id}}/extend
Content-Type: application/json
Accept: application/json
{
"size_gb": "<number>"
}
### Get Volume
## Get Volume
GET https://api.machines.dev/v1/apps/{{app_name}}/volumes/{{volume_id}}
Accept: application/json
### List Volumes
## List Volumes
GET https://api.machines.dev/v1/apps/{{app_name}}/volumes
Accept: application/json
### List Snapshots
## List Snapshots
GET https://api.machines.dev/v1/apps/{{app_name}}/volumes/{{volume_id}}/snapshots
Accept: application/json
### Update Volume
## Update Volume
POST https://api.machines.dev/v1/apps/{{app_name}}/volumes/{{volume_id}}
Content-Type: application/json
Accept: application/json
{
"auto_backup_enabled": "<string>",
"snapshot_retention": "<number>"
}

78
apis/flyio/README.md Normal file
View File

@@ -0,0 +1,78 @@
# Machines API - Jetbrains API Client
## General API description
# Introduction Fly Machines are the compute behind the Fly.io platform. They are fast-launching VMs that can be started and stopped at subsecond speeds. A Machine is the configuration and state for a single VM running on our platform. Every Machine will belong to a Fly App; Apps can have more than one Machine. Read more [here](https://fly.io/docs/machines/). The Machines REST API allows you to provison and manage Apps, Machines and Volumes on the Fly.io platform. To manage other Fly.io resources like organizations, use the [GraphQL API](https://fly.io/docs/networking/custom-domains-with-fly/#graphql-api-notes). ## Authentication All requests must include the Fly API Token in the HTTP Headers as follows: &#x60;&#x60;&#x60; Authorization: Bearer [TOKEN] &#x60;&#x60;&#x60; You can get your API token using [flyctl](https://fly.io/docs/hands-on/install-flyctl/) by running &#x60;fly auth token&#x60; ## Base URL The easiest (and recommended) way to connect to the Machines API is to use the public &#x60;api.machines.dev&#x60; endpoint, a simpler and more performant alternative to connecting over WireGuard. You can still access your Machines directly over a WireGuard VPN, and use the private Machines API endpoint: &#x60;http://_api.internal:4280&#x60;. This method requires more setup. Follow the [instructions](https://fly.io/docs/networking/private-networking/#private-network-vpn) to set up a permanent WireGuard connection to your Fly.io [IPv6 private network](https://fly.io/docs/networking/private-networking/). Once youre connected, Fly internal DNS should expose the Machines API endpoint at: &#x60;http://_api.internal:4280&#x60; ## Response Codes The API uses conventional HTTP status codes to signal whether a request was successful or not. Typically, 2xx HTTP status codes denote successful operations, 4xx codes imply failures related to the user, and 5xx codes suggest problems with the infrastructure. | Status | Description | | :----: | ------------------------------------------- | | &#x60;200&#x60; | Successful request. | | &#x60;201&#x60; | Created successfully. | | &#x60;202&#x60; | Successful request. No content. | | &#x60;400&#x60; | Check that the parameters were correct. | | &#x60;401&#x60; | The API key used was missing or invalid. | | &#x60;404&#x60; | The resource was not found. | | &#x60;5xx&#x60; | Indicates an error with Fly.io API servers. |
* API basepath : [https://api.machines.dev/v1](https://api.machines.dev/v1)
* Version : 1.0
## Documentation for API Endpoints
All URIs are relative to *https://api.machines.dev/v1*, but will link to the `.http` file that contains the endpoint definition.
There may be multiple requests for a single endpoint, one for each example described in the OpenAPI specification.
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AppsApi* | [**appsCreate**](Apis/AppsApi.http#appscreate) | **POST** /apps | Create App
*AppsApi* | [**appsDelete**](Apis/AppsApi.http#appsdelete) | **DELETE** /apps/{app_name} | Destroy App
*AppsApi* | [**appsList**](Apis/AppsApi.http#appslist) | **GET** /apps | List Apps
*AppsApi* | [**appsShow**](Apis/AppsApi.http#appsshow) | **GET** /apps/{app_name} | Get App
*MachinesApi* | [**machinesCordon**](Apis/MachinesApi.http#machinescordon) | **POST** /apps/{app_name}/machines/{machine_id}/cordon | Cordon Machine
*MachinesApi* | [**machinesCreate**](Apis/MachinesApi.http#machinescreate) | **POST** /apps/{app_name}/machines | Create Machine
*MachinesApi* | [**machinesCreateLease**](Apis/MachinesApi.http#machinescreatelease) | **POST** /apps/{app_name}/machines/{machine_id}/lease | Create Lease
*MachinesApi* | [**machinesDelete**](Apis/MachinesApi.http#machinesdelete) | **DELETE** /apps/{app_name}/machines/{machine_id} | Destroy Machine
*MachinesApi* | [**machinesDeleteMetadata**](Apis/MachinesApi.http#machinesdeletemetadata) | **DELETE** /apps/{app_name}/machines/{machine_id}/metadata/{key} | Delete Metadata
*MachinesApi* | [**machinesExec**](Apis/MachinesApi.http#machinesexec) | **POST** /apps/{app_name}/machines/{machine_id}/exec | Execute Command
*MachinesApi* | [**machinesList**](Apis/MachinesApi.http#machineslist) | **GET** /apps/{app_name}/machines | List Machines
*MachinesApi* | [**machinesListEvents**](Apis/MachinesApi.http#machineslistevents) | **GET** /apps/{app_name}/machines/{machine_id}/events | List Events
*MachinesApi* | [**machinesListProcesses**](Apis/MachinesApi.http#machineslistprocesses) | **GET** /apps/{app_name}/machines/{machine_id}/ps | List Processes
*MachinesApi* | [**machinesListVersions**](Apis/MachinesApi.http#machineslistversions) | **GET** /apps/{app_name}/machines/{machine_id}/versions | List Versions
*MachinesApi* | [**machinesReleaseLease**](Apis/MachinesApi.http#machinesreleaselease) | **DELETE** /apps/{app_name}/machines/{machine_id}/lease | Release Lease
*MachinesApi* | [**machinesRestart**](Apis/MachinesApi.http#machinesrestart) | **POST** /apps/{app_name}/machines/{machine_id}/restart | Restart Machine
*MachinesApi* | [**machinesShow**](Apis/MachinesApi.http#machinesshow) | **GET** /apps/{app_name}/machines/{machine_id} | Get Machine
*MachinesApi* | [**machinesShowLease**](Apis/MachinesApi.http#machinesshowlease) | **GET** /apps/{app_name}/machines/{machine_id}/lease | Get Lease
*MachinesApi* | [**machinesShowMetadata**](Apis/MachinesApi.http#machinesshowmetadata) | **GET** /apps/{app_name}/machines/{machine_id}/metadata | Get Metadata
*MachinesApi* | [**machinesSignal**](Apis/MachinesApi.http#machinessignal) | **POST** /apps/{app_name}/machines/{machine_id}/signal | Signal Machine
*MachinesApi* | [**machinesStart**](Apis/MachinesApi.http#machinesstart) | **POST** /apps/{app_name}/machines/{machine_id}/start | Start Machine
*MachinesApi* | [**machinesStop**](Apis/MachinesApi.http#machinesstop) | **POST** /apps/{app_name}/machines/{machine_id}/stop | Stop Machine
*MachinesApi* | [**machinesUncordon**](Apis/MachinesApi.http#machinesuncordon) | **POST** /apps/{app_name}/machines/{machine_id}/uncordon | Uncordon Machine
*MachinesApi* | [**machinesUpdate**](Apis/MachinesApi.http#machinesupdate) | **POST** /apps/{app_name}/machines/{machine_id} | Update Machine
*MachinesApi* | [**machinesUpdateMetadata**](Apis/MachinesApi.http#machinesupdatemetadata) | **POST** /apps/{app_name}/machines/{machine_id}/metadata/{key} | Update Metadata
*MachinesApi* | [**machinesWait**](Apis/MachinesApi.http#machineswait) | **GET** /apps/{app_name}/machines/{machine_id}/wait | Wait for State
*VolumesApi* | [**createVolumeSnapshot**](Apis/VolumesApi.http#createvolumesnapshot) | **POST** /apps/{app_name}/volumes/{volume_id}/snapshots | Create Snapshot
*VolumesApi* | [**volumeDelete**](Apis/VolumesApi.http#volumedelete) | **DELETE** /apps/{app_name}/volumes/{volume_id} | Destroy Volume
*VolumesApi* | [**volumesCreate**](Apis/VolumesApi.http#volumescreate) | **POST** /apps/{app_name}/volumes | Create Volume
*VolumesApi* | [**volumesExtend**](Apis/VolumesApi.http#volumesextend) | **PUT** /apps/{app_name}/volumes/{volume_id}/extend | Extend Volume
*VolumesApi* | [**volumesGetById**](Apis/VolumesApi.http#volumesgetbyid) | **GET** /apps/{app_name}/volumes/{volume_id} | Get Volume
*VolumesApi* | [**volumesList**](Apis/VolumesApi.http#volumeslist) | **GET** /apps/{app_name}/volumes | List Volumes
*VolumesApi* | [**volumesListSnapshots**](Apis/VolumesApi.http#volumeslistsnapshots) | **GET** /apps/{app_name}/volumes/{volume_id}/snapshots | List Snapshots
*VolumesApi* | [**volumesUpdate**](Apis/VolumesApi.http#volumesupdate) | **POST** /apps/{app_name}/volumes/{volume_id} | Update Volume
## Usage
### Prerequisites
You need [IntelliJ](https://www.jetbrains.com/idea/) to be able to run those queries. More information can be found [here](https://www.jetbrains.com/help/idea/http-client-in-product-code-editor.html).
You may have some luck running queries using the [Code REST Client](https://marketplace.visualstudio.com/items?itemName=humao.rest-client) as well, but your mileage may vary.
### Variables and Environment files
* Generally speaking, you want queries to be specific using custom variables. All variables in the `.http` files have the `` format.
* You can create [public or private environment files](https://www.jetbrains.com/help/idea/exploring-http-syntax.html#environment-variables) to dynamically replace the variables at runtime.
_Note: don't commit private environment files! They typically will contain sensitive information like API Keys._
### Customizations
If you have control over the generation of the files here, there are two main things you can do
* Select elements to replace as variables during generation. The process is case-sensitive. For example, API_KEY ->
* For this, run the generation with the `bodyVariables` property, followed by a "-" separated list of variables
* Example: `--additional-properties bodyVariables=YOUR_MERCHANT_ACCOUNT-YOUR_COMPANY_ACCOUNT-YOUR_BALANCE_PLATFORM`
* Add custom headers to _all_ requests. This can be useful for example if your specifications are missing [security schemes](https://github.com/github/rest-api-description/issues/237).
* For this, run the generation with the `customHeaders` property, followed by a "&" separated list of variables
* Example : `--additional-properties=customHeaders="Cookie:X-API-KEY="&"Accept-Encoding=gzip"`
_This client was generated by the [jetbrains-http-client](https://openapi-generator.tech/docs/generators/jetbrains-http-client) generator of OpenAPI Generator_

2505
apis/flyio/doc.json Normal file

File diff suppressed because it is too large Load Diff

9
apis/flyio/runDocker.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
# The file was found here : https://community.fly.io/t/fly-machines-rest-api-openapi-specification/8207/8
docker run --rm \
-v ${PWD}:/local julienlengrand/jetbrains-openapi-generator generate \
-i /local/doc.json \
-g jetbrains-http-client \
-o /local

View File

@@ -5,7 +5,7 @@
POST https://api.github.com/orgs/{{org}}/actions/runners/{{runner_id}}/labels
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"labels" : [ "gpu", "accelerated" ]
@@ -17,7 +17,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/actions/runners/{{runner_id}}/labels
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"labels" : [ "gpu", "accelerated" ]
@@ -27,31 +27,31 @@ Authorization: Bearer={{bearerToken}}
### Add selected repository to an organization secret
## Add selected repository to an organization secret
PUT https://api.github.com/orgs/{{org}}/actions/secrets/{{secret_name}}/repositories/{{repository_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Add selected repository to an organization variable
## Add selected repository to an organization variable
PUT https://api.github.com/orgs/{{org}}/actions/variables/{{name}}/repositories/{{repository_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Approve a workflow run for a fork pull request
## Approve a workflow run for a fork pull request
POST https://api.github.com/repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}/approve
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Cancel a workflow run
## Cancel a workflow run
POST https://api.github.com/repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}/cancel
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Create an environment variable
## Create an environment variable
POST https://api.github.com/repos/{{owner}}/{{repo}}/environments/{{environment_name}}/variables
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"name" : "USERNAME",
@@ -64,7 +64,7 @@ Authorization: Bearer={{bearerToken}}
PUT https://api.github.com/repos/{{owner}}/{{repo}}/environments/{{environment_name}}/secrets/{{secret_name}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"encrypted_value" : "c2VjcmV0",
@@ -77,7 +77,7 @@ Authorization: Bearer={{bearerToken}}
PUT https://api.github.com/orgs/{{org}}/actions/secrets/{{secret_name}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"encrypted_value" : "c2VjcmV0",
@@ -92,7 +92,7 @@ Authorization: Bearer={{bearerToken}}
PUT https://api.github.com/repos/{{owner}}/{{repo}}/actions/secrets/{{secret_name}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"encrypted_value" : "c2VjcmV0",
@@ -105,7 +105,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/orgs/{{org}}/actions/variables
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"name" : "USERNAME",
@@ -119,32 +119,32 @@ Authorization: Bearer={{bearerToken}}
## Create a registration token for an organization
POST https://api.github.com/orgs/{{org}}/actions/runners/registration-token
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Create a registration token for a repository
## Create a registration token for a repository
POST https://api.github.com/repos/{{owner}}/{{repo}}/actions/runners/registration-token
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Create a remove token for an organization
## Create a remove token for an organization
POST https://api.github.com/orgs/{{org}}/actions/runners/remove-token
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Create a remove token for a repository
## Create a remove token for a repository
POST https://api.github.com/repos/{{owner}}/{{repo}}/actions/runners/remove-token
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Create a repository variable
## Create a repository variable
POST https://api.github.com/repos/{{owner}}/{{repo}}/actions/variables
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"name" : "USERNAME",
@@ -156,7 +156,7 @@ Authorization: Bearer={{bearerToken}}
## Create a workflow dispatch event
POST https://api.github.com/repos/{{owner}}/{{repo}}/actions/workflows/{{workflow_id}}/dispatches
Content-Type: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"ref" : "topic-branch",
@@ -170,123 +170,123 @@ Authorization: Bearer={{bearerToken}}
### Delete a GitHub Actions cache for a repository (using a cache ID)
## Delete a GitHub Actions cache for a repository (using a cache ID)
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/actions/caches/{{cache_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete GitHub Actions caches for a repository (using a cache key)
## Delete GitHub Actions caches for a repository (using a cache key)
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/actions/caches
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete an artifact
## Delete an artifact
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/actions/artifacts/{{artifact_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete an environment secret
## Delete an environment secret
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/environments/{{environment_name}}/secrets/{{secret_name}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete an environment variable
## Delete an environment variable
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/environments/{{environment_name}}/variables/{{name}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete an organization secret
## Delete an organization secret
DELETE https://api.github.com/orgs/{{org}}/actions/secrets/{{secret_name}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete an organization variable
## Delete an organization variable
DELETE https://api.github.com/orgs/{{org}}/actions/variables/{{name}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a repository secret
## Delete a repository secret
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/actions/secrets/{{secret_name}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a repository variable
## Delete a repository variable
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/actions/variables/{{name}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a self-hosted runner from an organization
## Delete a self-hosted runner from an organization
DELETE https://api.github.com/orgs/{{org}}/actions/runners/{{runner_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a self-hosted runner from a repository
## Delete a self-hosted runner from a repository
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/actions/runners/{{runner_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a workflow run
## Delete a workflow run
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete workflow run logs
## Delete workflow run logs
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}/logs
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Disable a selected repository for GitHub Actions in an organization
## Disable a selected repository for GitHub Actions in an organization
DELETE https://api.github.com/orgs/{{org}}/actions/permissions/repositories/{{repository_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Disable a workflow
## Disable a workflow
PUT https://api.github.com/repos/{{owner}}/{{repo}}/actions/workflows/{{workflow_id}}/disable
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Download an artifact
## Download an artifact
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/artifacts/{{artifact_id}}/{{archive_format}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Download job logs for a workflow run
## Download job logs for a workflow run
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/jobs/{{job_id}}/logs
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Download workflow run attempt logs
## Download workflow run attempt logs
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}/attempts/{{attempt_number}}/logs
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Download workflow run logs
## Download workflow run logs
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}/logs
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Enable a selected repository for GitHub Actions in an organization
## Enable a selected repository for GitHub Actions in an organization
PUT https://api.github.com/orgs/{{org}}/actions/permissions/repositories/{{repository_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Enable a workflow
## Enable a workflow
PUT https://api.github.com/repos/{{owner}}/{{repo}}/actions/workflows/{{workflow_id}}/enable
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Force cancel a workflow run
## Force cancel a workflow run
POST https://api.github.com/repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}/force-cancel
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Create configuration for a just-in-time runner for an organization
## Create configuration for a just-in-time runner for an organization
POST https://api.github.com/orgs/{{org}}/actions/runners/generate-jitconfig
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"name" : "New runner",
@@ -301,7 +301,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/actions/runners/generate-jitconfig
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"name" : "New runner",
@@ -315,338 +315,338 @@ Authorization: Bearer={{bearerToken}}
## List GitHub Actions caches for a repository
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/caches
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get GitHub Actions cache usage for a repository
## Get GitHub Actions cache usage for a repository
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/cache/usage
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List repositories with GitHub Actions cache usage for an organization
## List repositories with GitHub Actions cache usage for an organization
GET https://api.github.com/orgs/{{org}}/actions/cache/usage-by-repository
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get GitHub Actions cache usage for an organization
## Get GitHub Actions cache usage for an organization
GET https://api.github.com/orgs/{{org}}/actions/cache/usage
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get allowed actions and reusable workflows for an organization
## Get allowed actions and reusable workflows for an organization
GET https://api.github.com/orgs/{{org}}/actions/permissions/selected-actions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get allowed actions and reusable workflows for a repository
## Get allowed actions and reusable workflows for a repository
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/permissions/selected-actions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an artifact
## Get an artifact
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/artifacts/{{artifact_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get the customization template for an OIDC subject claim for a repository
## Get the customization template for an OIDC subject claim for a repository
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/oidc/customization/sub
Accept: application/json
Accept: application/scim+json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an environment public key
## Get an environment public key
GET https://api.github.com/repos/{{owner}}/{{repo}}/environments/{{environment_name}}/secrets/public-key
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an environment secret
## Get an environment secret
GET https://api.github.com/repos/{{owner}}/{{repo}}/environments/{{environment_name}}/secrets/{{secret_name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an environment variable
## Get an environment variable
GET https://api.github.com/repos/{{owner}}/{{repo}}/environments/{{environment_name}}/variables/{{name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get default workflow permissions for an organization
## Get default workflow permissions for an organization
GET https://api.github.com/orgs/{{org}}/actions/permissions/workflow
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get default workflow permissions for a repository
## Get default workflow permissions for a repository
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/permissions/workflow
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get GitHub Actions permissions for an organization
## Get GitHub Actions permissions for an organization
GET https://api.github.com/orgs/{{org}}/actions/permissions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get GitHub Actions permissions for a repository
## Get GitHub Actions permissions for a repository
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/permissions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a job for a workflow run
## Get a job for a workflow run
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/jobs/{{job_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an organization public key
## Get an organization public key
GET https://api.github.com/orgs/{{org}}/actions/secrets/public-key
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an organization secret
## Get an organization secret
GET https://api.github.com/orgs/{{org}}/actions/secrets/{{secret_name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an organization variable
## Get an organization variable
GET https://api.github.com/orgs/{{org}}/actions/variables/{{name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get pending deployments for a workflow run
## Get pending deployments for a workflow run
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}/pending_deployments
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a repository public key
## Get a repository public key
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/secrets/public-key
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a repository secret
## Get a repository secret
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/secrets/{{secret_name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a repository variable
## Get a repository variable
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/variables/{{name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get the review history for a workflow run
## Get the review history for a workflow run
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}/approvals
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a self-hosted runner for an organization
## Get a self-hosted runner for an organization
GET https://api.github.com/orgs/{{org}}/actions/runners/{{runner_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a self-hosted runner for a repository
## Get a self-hosted runner for a repository
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/runners/{{runner_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a workflow
## Get a workflow
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/workflows/{{workflow_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get the level of access for workflows outside of the repository
## Get the level of access for workflows outside of the repository
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/permissions/access
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a workflow run
## Get a workflow run
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a workflow run attempt
## Get a workflow run attempt
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}/attempts/{{attempt_number}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get workflow run usage
## Get workflow run usage
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}/timing
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get workflow usage
## Get workflow usage
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/workflows/{{workflow_id}}/timing
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List artifacts for a repository
## List artifacts for a repository
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/artifacts
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List environment secrets
## List environment secrets
GET https://api.github.com/repos/{{owner}}/{{repo}}/environments/{{environment_name}}/secrets
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List environment variables
## List environment variables
GET https://api.github.com/repos/{{owner}}/{{repo}}/environments/{{environment_name}}/variables
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List jobs for a workflow run
## List jobs for a workflow run
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}/jobs
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List jobs for a workflow run attempt
## List jobs for a workflow run attempt
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}/attempts/{{attempt_number}}/jobs
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List labels for a self-hosted runner for an organization
## List labels for a self-hosted runner for an organization
GET https://api.github.com/orgs/{{org}}/actions/runners/{{runner_id}}/labels
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List labels for a self-hosted runner for a repository
## List labels for a self-hosted runner for a repository
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/runners/{{runner_id}}/labels
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List organization secrets
## List organization secrets
GET https://api.github.com/orgs/{{org}}/actions/secrets
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List organization variables
## List organization variables
GET https://api.github.com/orgs/{{org}}/actions/variables
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List repository organization secrets
## List repository organization secrets
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/organization-secrets
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List repository organization variables
## List repository organization variables
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/organization-variables
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List repository secrets
## List repository secrets
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/secrets
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List repository variables
## List repository variables
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/variables
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List repository workflows
## List repository workflows
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/workflows
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List runner applications for an organization
## List runner applications for an organization
GET https://api.github.com/orgs/{{org}}/actions/runners/downloads
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List runner applications for a repository
## List runner applications for a repository
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/runners/downloads
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List selected repositories for an organization secret
## List selected repositories for an organization secret
GET https://api.github.com/orgs/{{org}}/actions/secrets/{{secret_name}}/repositories
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List selected repositories for an organization variable
## List selected repositories for an organization variable
GET https://api.github.com/orgs/{{org}}/actions/variables/{{name}}/repositories
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List selected repositories enabled for GitHub Actions in an organization
## List selected repositories enabled for GitHub Actions in an organization
GET https://api.github.com/orgs/{{org}}/actions/permissions/repositories
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List self-hosted runners for an organization
## List self-hosted runners for an organization
GET https://api.github.com/orgs/{{org}}/actions/runners
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List self-hosted runners for a repository
## List self-hosted runners for a repository
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/runners
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List workflow run artifacts
## List workflow run artifacts
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}/artifacts
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List workflow runs for a workflow
## List workflow runs for a workflow
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/workflows/{{workflow_id}}/runs
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List workflow runs for a repository
## List workflow runs for a repository
GET https://api.github.com/repos/{{owner}}/{{repo}}/actions/runs
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
@@ -655,41 +655,41 @@ Authorization: Bearer={{bearerToken}}
## Remove all custom labels from a self-hosted runner for an organization
DELETE https://api.github.com/orgs/{{org}}/actions/runners/{{runner_id}}/labels
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove all custom labels from a self-hosted runner for a repository
## Remove all custom labels from a self-hosted runner for a repository
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/actions/runners/{{runner_id}}/labels
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove a custom label from a self-hosted runner for an organization
## Remove a custom label from a self-hosted runner for an organization
DELETE https://api.github.com/orgs/{{org}}/actions/runners/{{runner_id}}/labels/{{name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove a custom label from a self-hosted runner for a repository
## Remove a custom label from a self-hosted runner for a repository
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/actions/runners/{{runner_id}}/labels/{{name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove selected repository from an organization secret
## Remove selected repository from an organization secret
DELETE https://api.github.com/orgs/{{org}}/actions/secrets/{{secret_name}}/repositories/{{repository_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove selected repository from an organization variable
## Remove selected repository from an organization variable
DELETE https://api.github.com/orgs/{{org}}/actions/variables/{{name}}/repositories/{{repository_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Review custom deployment protection rules for a workflow run
## Review custom deployment protection rules for a workflow run
POST https://api.github.com/repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}/deployment_protection_rule
Content-Type: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"environment_name" : "prod-eus",
@@ -703,7 +703,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/actions/runs/{{run_id}}/pending_deployments
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"environment_ids" : [ 161171787 ],
@@ -716,7 +716,7 @@ Authorization: Bearer={{bearerToken}}
##
PUT https://api.github.com/orgs/{{org}}/actions/permissions/selected-actions
Content-Type: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"github_owned_allowed" : true,
@@ -729,7 +729,7 @@ Authorization: Bearer={{bearerToken}}
##
PUT https://api.github.com/repos/{{owner}}/{{repo}}/actions/permissions/selected-actions
Content-Type: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"github_owned_allowed" : true,
@@ -743,7 +743,7 @@ Authorization: Bearer={{bearerToken}}
PUT https://api.github.com/orgs/{{org}}/actions/runners/{{runner_id}}/labels
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"labels" : [ "gpu", "accelerated" ]
@@ -755,7 +755,7 @@ Authorization: Bearer={{bearerToken}}
PUT https://api.github.com/repos/{{owner}}/{{repo}}/actions/runners/{{runner_id}}/labels
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"labels" : [ "gpu", "accelerated" ]
@@ -768,7 +768,7 @@ PUT https://api.github.com/repos/{{owner}}/{{repo}}/actions/oidc/customization/s
Content-Type: application/json
Accept: application/json
Accept: application/scim+json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"use_default" : false,
@@ -780,7 +780,7 @@ Authorization: Bearer={{bearerToken}}
## Give read-only permission, and allow approving PRs.
PUT https://api.github.com/orgs/{{org}}/actions/permissions/workflow
Content-Type: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"default_workflow_permissions" : "read",
@@ -792,7 +792,7 @@ Authorization: Bearer={{bearerToken}}
## Give read-only permission, and allow approving PRs.
PUT https://api.github.com/repos/{{owner}}/{{repo}}/actions/permissions/workflow
Content-Type: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"default_workflow_permissions" : "read",
@@ -804,7 +804,7 @@ Authorization: Bearer={{bearerToken}}
## Set GitHub Actions permissions for an organization
PUT https://api.github.com/orgs/{{org}}/actions/permissions
Content-Type: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"enabled_repositories" : "all",
@@ -816,7 +816,7 @@ Authorization: Bearer={{bearerToken}}
## Set GitHub Actions permissions for a repository
PUT https://api.github.com/repos/{{owner}}/{{repo}}/actions/permissions
Content-Type: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"enabled" : true,
@@ -828,7 +828,7 @@ Authorization: Bearer={{bearerToken}}
## Set selected repositories for an organization secret
PUT https://api.github.com/orgs/{{org}}/actions/secrets/{{secret_name}}/repositories
Content-Type: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"selected_repository_ids" : [ 64780797 ]
@@ -839,7 +839,7 @@ Authorization: Bearer={{bearerToken}}
## Set selected repositories for an organization variable
PUT https://api.github.com/orgs/{{org}}/actions/variables/{{name}}/repositories
Content-Type: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"selected_repository_ids" : [ 64780797 ]
@@ -850,7 +850,7 @@ Authorization: Bearer={{bearerToken}}
## Set selected repositories enabled for GitHub Actions in an organization
PUT https://api.github.com/orgs/{{org}}/actions/permissions/repositories
Content-Type: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"selected_repository_ids" : [ 32, 42 ]
@@ -861,7 +861,7 @@ Authorization: Bearer={{bearerToken}}
##
PUT https://api.github.com/repos/{{owner}}/{{repo}}/actions/permissions/access
Content-Type: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"access_level" : "organization"
@@ -872,7 +872,7 @@ Authorization: Bearer={{bearerToken}}
## Update an environment variable
PATCH https://api.github.com/repos/{{owner}}/{{repo}}/environments/{{environment_name}}/variables/{{name}}
Content-Type: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"name" : "USERNAME",
@@ -884,7 +884,7 @@ Authorization: Bearer={{bearerToken}}
## Update an organization variable
PATCH https://api.github.com/orgs/{{org}}/actions/variables/{{name}}
Content-Type: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"name" : "USERNAME",
@@ -898,7 +898,7 @@ Authorization: Bearer={{bearerToken}}
## Update a repository variable
PATCH https://api.github.com/repos/{{owner}}/{{repo}}/actions/variables/{{name}}
Content-Type: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"name" : "USERNAME",

View File

@@ -4,152 +4,152 @@
## Check if a repository is starred by the authenticated user
GET https://api.github.com/user/starred/{{owner}}/{{repo}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a repository subscription
## Delete a repository subscription
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/subscription
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a thread subscription
## Delete a thread subscription
DELETE https://api.github.com/notifications/threads/{{thread_id}}/subscription
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get feeds
## Get feeds
GET https://api.github.com/feeds
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a repository subscription
## Get a repository subscription
GET https://api.github.com/repos/{{owner}}/{{repo}}/subscription
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a thread
## Get a thread
GET https://api.github.com/notifications/threads/{{thread_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a thread subscription for the authenticated user
## Get a thread subscription for the authenticated user
GET https://api.github.com/notifications/threads/{{thread_id}}/subscription
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List events for the authenticated user
## List events for the authenticated user
GET https://api.github.com/users/{{username}}/events
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List notifications for the authenticated user
## List notifications for the authenticated user
GET https://api.github.com/notifications
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List organization events for the authenticated user
## List organization events for the authenticated user
GET https://api.github.com/users/{{username}}/events/orgs/{{org}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List public events
## List public events
GET https://api.github.com/events
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List public events for a network of repositories
## List public events for a network of repositories
GET https://api.github.com/networks/{{owner}}/{{repo}}/events
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List public events for a user
## List public events for a user
GET https://api.github.com/users/{{username}}/events/public
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List public organization events
## List public organization events
GET https://api.github.com/orgs/{{org}}/events
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List events received by the authenticated user
## List events received by the authenticated user
GET https://api.github.com/users/{{username}}/received_events
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List public events received by a user
## List public events received by a user
GET https://api.github.com/users/{{username}}/received_events/public
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List repository events
## List repository events
GET https://api.github.com/repos/{{owner}}/{{repo}}/events
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List repository notifications for the authenticated user
## List repository notifications for the authenticated user
GET https://api.github.com/repos/{{owner}}/{{repo}}/notifications
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List repositories starred by the authenticated user
## List repositories starred by the authenticated user
GET https://api.github.com/user/starred
Accept: application/json
Accept: application/vnd.github.v3.star+json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List repositories starred by a user
## List repositories starred by a user
GET https://api.github.com/users/{{username}}/starred
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List repositories watched by a user
## List repositories watched by a user
GET https://api.github.com/users/{{username}}/subscriptions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List stargazers
## List stargazers
GET https://api.github.com/repos/{{owner}}/{{repo}}/stargazers
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List repositories watched by the authenticated user
## List repositories watched by the authenticated user
GET https://api.github.com/user/subscriptions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List watchers
## List watchers
GET https://api.github.com/repos/{{owner}}/{{repo}}/subscribers
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Mark notifications as read
## Mark notifications as read
PUT https://api.github.com/notifications
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"last_read_at" : "2022-06-10T00:00:00Z",
@@ -162,7 +162,7 @@ Authorization: Bearer={{bearerToken}}
PUT https://api.github.com/repos/{{owner}}/{{repo}}/notifications
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"last_read_at" : "2019-01-01T00:00:00Z"
@@ -172,20 +172,20 @@ Authorization: Bearer={{bearerToken}}
### Mark a thread as done
## Mark a thread as done
DELETE https://api.github.com/notifications/threads/{{thread_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Mark a thread as read
## Mark a thread as read
PATCH https://api.github.com/notifications/threads/{{thread_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Set a repository subscription
## Set a repository subscription
PUT https://api.github.com/repos/{{owner}}/{{repo}}/subscription
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"subscribed" : true,
@@ -198,7 +198,7 @@ Authorization: Bearer={{bearerToken}}
PUT https://api.github.com/notifications/threads/{{thread_id}}/subscription
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"ignored" : false
@@ -209,10 +209,10 @@ Authorization: Bearer={{bearerToken}}
## Star a repository for the authenticated user
PUT https://api.github.com/user/starred/{{owner}}/{{repo}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Unstar a repository for the authenticated user
## Unstar a repository for the authenticated user
DELETE https://api.github.com/user/starred/{{owner}}/{{repo}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}

View File

@@ -4,14 +4,14 @@
## Add a repository to an app installation
PUT https://api.github.com/user/installations/{{installation_id}}/repositories/{{repository_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Check a token
## Check a token
POST https://api.github.com/applications/{{client_id}}/token
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"access_token" : "e72e16c7e42f292c6912e7710c838347ae178b4a"
@@ -22,14 +22,14 @@ Authorization: Bearer={{bearerToken}}
## Create a GitHub App from a manifest
POST https://api.github.com/app-manifests/{{code}}/conversions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Create an installation access token for an app
## Create an installation access token for an app
POST https://api.github.com/app/installations/{{installation_id}}/access_tokens
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"repositories" : [ "Hello-World" ],
@@ -45,7 +45,7 @@ Authorization: Bearer={{bearerToken}}
DELETE https://api.github.com/applications/{{client_id}}/grant
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"access_token" : "e72e16c7e42f292c6912e7710c838347ae178b4a"
@@ -56,14 +56,14 @@ Authorization: Bearer={{bearerToken}}
## Delete an installation for the authenticated app
DELETE https://api.github.com/app/installations/{{installation_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete an app token
## Delete an app token
DELETE https://api.github.com/applications/{{client_id}}/token
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"access_token" : "e72e16c7e42f292c6912e7710c838347ae178b4a"
@@ -74,155 +74,155 @@ Authorization: Bearer={{bearerToken}}
## Get the authenticated app
GET https://api.github.com/app
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an app
## Get an app
GET https://api.github.com/apps/{{app_slug}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an installation for the authenticated app
## Get an installation for the authenticated app
GET https://api.github.com/app/installations/{{installation_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an organization installation for the authenticated app
## Get an organization installation for the authenticated app
GET https://api.github.com/orgs/{{org}}/installation
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a repository installation for the authenticated app
## Get a repository installation for the authenticated app
GET https://api.github.com/repos/{{owner}}/{{repo}}/installation
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a subscription plan for an account
## Get a subscription plan for an account
GET https://api.github.com/marketplace_listing/accounts/{{account_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a subscription plan for an account (stubbed)
## Get a subscription plan for an account (stubbed)
GET https://api.github.com/marketplace_listing/stubbed/accounts/{{account_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a user installation for the authenticated app
## Get a user installation for the authenticated app
GET https://api.github.com/users/{{username}}/installation
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a webhook configuration for an app
## Get a webhook configuration for an app
GET https://api.github.com/app/hook/config
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a delivery for an app webhook
## Get a delivery for an app webhook
GET https://api.github.com/app/hook/deliveries/{{delivery_id}}
Accept: application/json
Accept: application/scim+json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List accounts for a plan
## List accounts for a plan
GET https://api.github.com/marketplace_listing/plans/{{plan_id}}/accounts
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List accounts for a plan (stubbed)
## List accounts for a plan (stubbed)
GET https://api.github.com/marketplace_listing/stubbed/plans/{{plan_id}}/accounts
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List repositories accessible to the user access token
## List repositories accessible to the user access token
GET https://api.github.com/user/installations/{{installation_id}}/repositories
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List installation requests for the authenticated app
## List installation requests for the authenticated app
GET https://api.github.com/app/installation-requests
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List installations for the authenticated app
## List installations for the authenticated app
GET https://api.github.com/app/installations
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List app installations accessible to the user access token
## List app installations accessible to the user access token
GET https://api.github.com/user/installations
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List plans
## List plans
GET https://api.github.com/marketplace_listing/plans
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List plans (stubbed)
## List plans (stubbed)
GET https://api.github.com/marketplace_listing/stubbed/plans
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List repositories accessible to the app installation
## List repositories accessible to the app installation
GET https://api.github.com/installation/repositories
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List subscriptions for the authenticated user
## List subscriptions for the authenticated user
GET https://api.github.com/user/marketplace_purchases
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List subscriptions for the authenticated user (stubbed)
## List subscriptions for the authenticated user (stubbed)
GET https://api.github.com/user/marketplace_purchases/stubbed
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List deliveries for an app webhook
## List deliveries for an app webhook
GET https://api.github.com/app/hook/deliveries
Accept: application/json
Accept: application/scim+json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Redeliver a delivery for an app webhook
## Redeliver a delivery for an app webhook
POST https://api.github.com/app/hook/deliveries/{{delivery_id}}/attempts
Accept: application/json
Accept: application/scim+json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove a repository from an app installation
## Remove a repository from an app installation
DELETE https://api.github.com/user/installations/{{installation_id}}/repositories/{{repository_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Reset a token
## Reset a token
PATCH https://api.github.com/applications/{{client_id}}/token
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"access_token" : "e72e16c7e42f292c6912e7710c838347ae178b4a"
@@ -232,14 +232,14 @@ Authorization: Bearer={{bearerToken}}
### Revoke an installation access token
## Revoke an installation access token
DELETE https://api.github.com/installation/token
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Create a scoped access token
## Create a scoped access token
POST https://api.github.com/applications/{{client_id}}/token/scoped
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"access_token" : "e72e16c7e42f292c6912e7710c838347ae178b4a",
@@ -256,20 +256,20 @@ Authorization: Bearer={{bearerToken}}
## Suspend an app installation
PUT https://api.github.com/app/installations/{{installation_id}}/suspended
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Unsuspend an app installation
## Unsuspend an app installation
DELETE https://api.github.com/app/installations/{{installation_id}}/suspended
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Update a webhook configuration for an app
## Update a webhook configuration for an app
PATCH https://api.github.com/app/hook/config
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"content_type" : "json",

View File

@@ -4,34 +4,34 @@
## Get GitHub Actions billing for an organization
GET https://api.github.com/orgs/{{org}}/settings/billing/actions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get GitHub Actions billing for a user
## Get GitHub Actions billing for a user
GET https://api.github.com/users/{{username}}/settings/billing/actions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get GitHub Packages billing for an organization
## Get GitHub Packages billing for an organization
GET https://api.github.com/orgs/{{org}}/settings/billing/packages
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get GitHub Packages billing for a user
## Get GitHub Packages billing for a user
GET https://api.github.com/users/{{username}}/settings/billing/packages
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get shared storage billing for an organization
## Get shared storage billing for an organization
GET https://api.github.com/orgs/{{org}}/settings/billing/shared-storage
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get shared storage billing for a user
## Get shared storage billing for a user
GET https://api.github.com/users/{{username}}/settings/billing/shared-storage
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}

View File

@@ -5,7 +5,7 @@
POST https://api.github.com/repos/{{owner}}/{{repo}}/check-runs
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"name" : "mighty_readme",
@@ -26,7 +26,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/check-suites
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"head_sha" : "d6fde92930d4715a2b49857d24b940956b26d2d3"
@@ -37,56 +37,56 @@ Authorization: Bearer={{bearerToken}}
## Get a check run
GET https://api.github.com/repos/{{owner}}/{{repo}}/check-runs/{{check_run_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a check suite
## Get a check suite
GET https://api.github.com/repos/{{owner}}/{{repo}}/check-suites/{{check_suite_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List check run annotations
## List check run annotations
GET https://api.github.com/repos/{{owner}}/{{repo}}/check-runs/{{check_run_id}}/annotations
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List check runs for a Git reference
## List check runs for a Git reference
GET https://api.github.com/repos/{{owner}}/{{repo}}/commits/{{ref}}/check-runs
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List check runs in a check suite
## List check runs in a check suite
GET https://api.github.com/repos/{{owner}}/{{repo}}/check-suites/{{check_suite_id}}/check-runs
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List check suites for a Git reference
## List check suites for a Git reference
GET https://api.github.com/repos/{{owner}}/{{repo}}/commits/{{ref}}/check-suites
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Rerequest a check run
## Rerequest a check run
POST https://api.github.com/repos/{{owner}}/{{repo}}/check-runs/{{check_run_id}}/rerequest
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Rerequest a check suite
## Rerequest a check suite
POST https://api.github.com/repos/{{owner}}/{{repo}}/check-suites/{{check_suite_id}}/rerequest
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Update repository preferences for check suites
## Update repository preferences for check suites
PATCH https://api.github.com/repos/{{owner}}/{{repo}}/check-suites/preferences
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"auto_trigger_checks" : [ {
@@ -101,7 +101,7 @@ Authorization: Bearer={{bearerToken}}
PATCH https://api.github.com/repos/{{owner}}/{{repo}}/check-runs/{{check_run_id}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"name" : "mighty_readme",

View File

@@ -4,34 +4,34 @@
## Get a classroom
GET https://api.github.com/classrooms/{{classroom_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an assignment
## Get an assignment
GET https://api.github.com/assignments/{{assignment_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get assignment grades
## Get assignment grades
GET https://api.github.com/assignments/{{assignment_id}}/grades
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List accepted assignments for an assignment
## List accepted assignments for an assignment
GET https://api.github.com/assignments/{{assignment_id}}/accepted_assignments
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List assignments for a classroom
## List assignments for a classroom
GET https://api.github.com/classrooms/{{classroom_id}}/assignments
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List classrooms
## List classrooms
GET https://api.github.com/classrooms
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}

View File

@@ -5,75 +5,75 @@
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/code-scanning/analyses/{{analysis_id}}
Accept: application/json
Accept: application/scim+json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### 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
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### 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
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### 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
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### 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
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### 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
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### 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
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### 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
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### 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
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### 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
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### 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
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### 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
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"state" : "dismissed",
@@ -87,7 +87,7 @@ Authorization: Bearer={{bearerToken}}
PATCH https://api.github.com/repos/{{owner}}/{{repo}}/code-scanning/default-setup
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"state" : "configured"
@@ -99,7 +99,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/code-scanning/sarifs
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"commit_sha" : "4b6472266afd7b471e86085a6659e8c7f2b119da",

View File

@@ -4,10 +4,10 @@
## Get all codes of conduct
GET https://api.github.com/codes_of_conduct
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a code of conduct
## Get a code of conduct
GET https://api.github.com/codes_of_conduct/{{key}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}

View File

@@ -4,32 +4,32 @@
## Add a selected repository to a user secret
PUT https://api.github.com/user/codespaces/secrets/{{secret_name}}/repositories/{{repository_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Add selected repository to an organization secret
## Add selected repository to an organization secret
PUT https://api.github.com/orgs/{{org}}/codespaces/secrets/{{secret_name}}/repositories/{{repository_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Check if permissions defined by a devcontainer have been accepted by the authenticated user
## Check if permissions defined by a devcontainer have been accepted by the authenticated user
GET https://api.github.com/repos/{{owner}}/{{repo}}/codespaces/permissions_check
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List machine types for a codespace
## List machine types for a codespace
GET https://api.github.com/user/codespaces/{{codespace_name}}/machines
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Create a codespace for the authenticated user
## Create a codespace for the authenticated user
POST https://api.github.com/user/codespaces
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"repository_id" : 1,
@@ -43,7 +43,7 @@ Authorization: Bearer={{bearerToken}}
PUT https://api.github.com/orgs/{{org}}/codespaces/secrets/{{secret_name}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"encrypted_value" : "c2VjcmV0",
@@ -58,7 +58,7 @@ Authorization: Bearer={{bearerToken}}
PUT https://api.github.com/repos/{{owner}}/{{repo}}/codespaces/secrets/{{secret_name}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"encrypted_value" : "c2VjcmV0",
@@ -71,7 +71,7 @@ Authorization: Bearer={{bearerToken}}
PUT https://api.github.com/user/codespaces/secrets/{{secret_name}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"encrypted_value" : "c2VjcmV0",
@@ -85,7 +85,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/codespaces
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"repository_id" : 1,
@@ -99,7 +99,7 @@ POST https://api.github.com/repos/{{owner}}/{{repo}}/codespaces
Content-Type: application/json
Accept: application/json
Accept: application/scim+json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"ref" : "main",
@@ -112,7 +112,7 @@ Authorization: Bearer={{bearerToken}}
DELETE https://api.github.com/orgs/{{org}}/codespaces/access/selected_users
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"selected_usernames" : [ "johnDoe", "atomIO" ]
@@ -123,157 +123,157 @@ Authorization: Bearer={{bearerToken}}
## Delete a codespace for the authenticated user
DELETE https://api.github.com/user/codespaces/{{codespace_name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a codespace from the organization
## Delete a codespace from the organization
DELETE https://api.github.com/orgs/{{org}}/members/{{username}}/codespaces/{{codespace_name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete an organization secret
## Delete an organization secret
DELETE https://api.github.com/orgs/{{org}}/codespaces/secrets/{{secret_name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a repository secret
## Delete a repository secret
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/codespaces/secrets/{{secret_name}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a secret for the authenticated user
## Delete a secret for the authenticated user
DELETE https://api.github.com/user/codespaces/secrets/{{secret_name}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Export a codespace for the authenticated user
## Export a codespace for the authenticated user
POST https://api.github.com/user/codespaces/{{codespace_name}}/exports
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List codespaces for a user in organization
## List codespaces for a user in organization
GET https://api.github.com/orgs/{{org}}/members/{{username}}/codespaces
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get details about a codespace export
## Get details about a codespace export
GET https://api.github.com/user/codespaces/{{codespace_name}}/exports/{{export_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a codespace for the authenticated user
## Get a codespace for the authenticated user
GET https://api.github.com/user/codespaces/{{codespace_name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an organization public key
## Get an organization public key
GET https://api.github.com/orgs/{{org}}/codespaces/secrets/public-key
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an organization secret
## Get an organization secret
GET https://api.github.com/orgs/{{org}}/codespaces/secrets/{{secret_name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get public key for the authenticated user
## Get public key for the authenticated user
GET https://api.github.com/user/codespaces/secrets/public-key
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a repository public key
## Get a repository public key
GET https://api.github.com/repos/{{owner}}/{{repo}}/codespaces/secrets/public-key
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a repository secret
## Get a repository secret
GET https://api.github.com/repos/{{owner}}/{{repo}}/codespaces/secrets/{{secret_name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a secret for the authenticated user
## Get a secret for the authenticated user
GET https://api.github.com/user/codespaces/secrets/{{secret_name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List devcontainer configurations in a repository for the authenticated user
## List devcontainer configurations in a repository for the authenticated user
GET https://api.github.com/repos/{{owner}}/{{repo}}/codespaces/devcontainers
Accept: application/json
Accept: application/scim+json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List codespaces for the authenticated user
## List codespaces for the authenticated user
GET https://api.github.com/user/codespaces
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List codespaces for the organization
## List codespaces for the organization
GET https://api.github.com/orgs/{{org}}/codespaces
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List codespaces in a repository for the authenticated user
## List codespaces in a repository for the authenticated user
GET https://api.github.com/repos/{{owner}}/{{repo}}/codespaces
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List organization secrets
## List organization secrets
GET https://api.github.com/orgs/{{org}}/codespaces/secrets
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List repository secrets
## List repository secrets
GET https://api.github.com/repos/{{owner}}/{{repo}}/codespaces/secrets
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List selected repositories for a user secret
## List selected repositories for a user secret
GET https://api.github.com/user/codespaces/secrets/{{secret_name}}/repositories
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List secrets for the authenticated user
## List secrets for the authenticated user
GET https://api.github.com/user/codespaces/secrets
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List selected repositories for an organization secret
## List selected repositories for an organization secret
GET https://api.github.com/orgs/{{org}}/codespaces/secrets/{{secret_name}}/repositories
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get default attributes for a codespace
## Get default attributes for a codespace
GET https://api.github.com/repos/{{owner}}/{{repo}}/codespaces/new
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Create a repository from an unpublished codespace
## Create a repository from an unpublished codespace
POST https://api.github.com/user/codespaces/{{codespace_name}}/publish
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"repository" : "monalisa-octocat-hello-world-g4wpq6h95q",
@@ -285,26 +285,26 @@ Authorization: Bearer={{bearerToken}}
## Remove a selected repository from a user secret
DELETE https://api.github.com/user/codespaces/secrets/{{secret_name}}/repositories/{{repository_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove selected repository from an organization secret
## Remove selected repository from an organization secret
DELETE https://api.github.com/orgs/{{org}}/codespaces/secrets/{{secret_name}}/repositories/{{repository_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List available machine types for a repository
## List available machine types for a repository
GET https://api.github.com/repos/{{owner}}/{{repo}}/codespaces/machines
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Manage access control for organization codespaces
## Manage access control for organization codespaces
PUT https://api.github.com/orgs/{{org}}/codespaces/access
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"visibility" : "selected_members",
@@ -317,7 +317,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/orgs/{{org}}/codespaces/access/selected_users
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"selected_usernames" : [ "johnDoe", "atomIO" ]
@@ -329,7 +329,7 @@ Authorization: Bearer={{bearerToken}}
PUT https://api.github.com/user/codespaces/secrets/{{secret_name}}/repositories
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"selected_repository_ids" : [ "1296269", "1296280" ]
@@ -341,7 +341,7 @@ Authorization: Bearer={{bearerToken}}
PUT https://api.github.com/orgs/{{org}}/codespaces/secrets/{{secret_name}}/repositories
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"selected_repository_ids" : [ 64780797 ]
@@ -353,26 +353,26 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/user/codespaces/{{codespace_name}}/start
Accept: application/json
Accept: application/scim+json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Stop a codespace for the authenticated user
## Stop a codespace for the authenticated user
POST https://api.github.com/user/codespaces/{{codespace_name}}/stop
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Stop a codespace for an organization user
## Stop a codespace for an organization user
POST https://api.github.com/orgs/{{org}}/members/{{username}}/codespaces/{{codespace_name}}/stop
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Update a codespace for the authenticated user
## Update a codespace for the authenticated user
PATCH https://api.github.com/user/codespaces/{{codespace_name}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"machine" : "standardLinux"

View File

@@ -5,7 +5,7 @@
POST https://api.github.com/orgs/{{org}}/copilot/billing/selected_teams
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"selected_teams" : [ "engteam1", "engteam2", "engteam3" ]
@@ -17,7 +17,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/orgs/{{org}}/copilot/billing/selected_users
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"selected_usernames" : [ "cooluser1", "hacker2", "octocat" ]
@@ -29,7 +29,7 @@ Authorization: Bearer={{bearerToken}}
DELETE https://api.github.com/orgs/{{org}}/copilot/billing/selected_teams
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"selected_teams" : [ "engteam1", "engteam2", "engteam3" ]
@@ -41,7 +41,7 @@ Authorization: Bearer={{bearerToken}}
DELETE https://api.github.com/orgs/{{org}}/copilot/billing/selected_users
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"selected_usernames" : [ "cooluser1", "hacker2", "octocat" ]
@@ -52,16 +52,16 @@ Authorization: Bearer={{bearerToken}}
## Get Copilot seat information and settings for an organization
GET https://api.github.com/orgs/{{org}}/copilot/billing
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get Copilot seat assignment details for a user
## Get Copilot seat assignment details for a user
GET https://api.github.com/orgs/{{org}}/members/{{username}}/copilot
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List all Copilot seat assignments for an organization
## List all Copilot seat assignments for an organization
GET https://api.github.com/orgs/{{org}}/copilot/billing/seats
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}

View File

@@ -3,14 +3,14 @@
### Add selected repository to an organization secret
## Add selected repository to an organization secret
PUT https://api.github.com/orgs/{{org}}/dependabot/secrets/{{secret_name}}/repositories/{{repository_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Create or update an organization secret
## Create or update an organization secret
PUT https://api.github.com/orgs/{{org}}/dependabot/secrets/{{secret_name}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"encrypted_value" : "c2VjcmV0",
@@ -25,7 +25,7 @@ Authorization: Bearer={{bearerToken}}
PUT https://api.github.com/repos/{{owner}}/{{repo}}/dependabot/secrets/{{secret_name}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"encrypted_value" : "c2VjcmV0",
@@ -36,91 +36,91 @@ Authorization: Bearer={{bearerToken}}
### Delete an organization secret
## Delete an organization secret
DELETE https://api.github.com/orgs/{{org}}/dependabot/secrets/{{secret_name}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a repository secret
## Delete a repository secret
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/dependabot/secrets/{{secret_name}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a Dependabot alert
## Get a Dependabot alert
GET https://api.github.com/repos/{{owner}}/{{repo}}/dependabot/alerts/{{alert_number}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an organization public key
## Get an organization public key
GET https://api.github.com/orgs/{{org}}/dependabot/secrets/public-key
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an organization secret
## Get an organization secret
GET https://api.github.com/orgs/{{org}}/dependabot/secrets/{{secret_name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a repository public key
## Get a repository public key
GET https://api.github.com/repos/{{owner}}/{{repo}}/dependabot/secrets/public-key
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a repository secret
## Get a repository secret
GET https://api.github.com/repos/{{owner}}/{{repo}}/dependabot/secrets/{{secret_name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List Dependabot alerts for an enterprise
## List Dependabot alerts for an enterprise
GET https://api.github.com/enterprises/{{enterprise}}/dependabot/alerts
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List Dependabot alerts for an organization
## List Dependabot alerts for an organization
GET https://api.github.com/orgs/{{org}}/dependabot/alerts
Accept: application/json
Accept: application/scim+json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List Dependabot alerts for a repository
## List Dependabot alerts for a repository
GET https://api.github.com/repos/{{owner}}/{{repo}}/dependabot/alerts
Accept: application/json
Accept: application/scim+json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List organization secrets
## List organization secrets
GET https://api.github.com/orgs/{{org}}/dependabot/secrets
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List repository secrets
## List repository secrets
GET https://api.github.com/repos/{{owner}}/{{repo}}/dependabot/secrets
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List selected repositories for an organization secret
## List selected repositories for an organization secret
GET https://api.github.com/orgs/{{org}}/dependabot/secrets/{{secret_name}}/repositories
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove selected repository from an organization secret
## Remove selected repository from an organization secret
DELETE https://api.github.com/orgs/{{org}}/dependabot/secrets/{{secret_name}}/repositories/{{repository_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Set selected repositories for an organization secret
## Set selected repositories for an organization secret
PUT https://api.github.com/orgs/{{org}}/dependabot/secrets/{{secret_name}}/repositories
Content-Type: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"selected_repository_ids" : [ 64780797 ]
@@ -133,7 +133,7 @@ PATCH https://api.github.com/repos/{{owner}}/{{repo}}/dependabot/alerts/{{alert_
Content-Type: application/json
Accept: application/json
Accept: application/scim+json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"state" : "dismissed",

View File

@@ -5,7 +5,7 @@
POST https://api.github.com/repos/{{owner}}/{{repo}}/dependency-graph/snapshots
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"version" : 0,
@@ -49,10 +49,10 @@ Authorization: Bearer={{bearerToken}}
## Get a diff of the dependencies between commits
GET https://api.github.com/repos/{{owner}}/{{repo}}/dependency-graph/compare/{{basehead}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### 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
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}

View File

@@ -4,4 +4,4 @@
## Get emojis
GET https://api.github.com/emojis
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}

View File

@@ -4,14 +4,14 @@
## Check if a gist is starred
GET https://api.github.com/gists/{{gist_id}}/star
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Create a gist
## Create a gist
POST https://api.github.com/gists
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"description" : "Example of a gist",
@@ -29,7 +29,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/gists/{{gist_id}}/comments
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"body" : "This is a comment to a gist"
@@ -40,98 +40,98 @@ Authorization: Bearer={{bearerToken}}
## Delete a gist
DELETE https://api.github.com/gists/{{gist_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a gist comment
## Delete a gist comment
DELETE https://api.github.com/gists/{{gist_id}}/comments/{{comment_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Fork a gist
## Fork a gist
POST https://api.github.com/gists/{{gist_id}}/forks
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a gist
## Get a gist
GET https://api.github.com/gists/{{gist_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a gist comment
## Get a gist comment
GET https://api.github.com/gists/{{gist_id}}/comments/{{comment_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a gist revision
## Get a gist revision
GET https://api.github.com/gists/{{gist_id}}/{{sha}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List gists for the authenticated user
## List gists for the authenticated user
GET https://api.github.com/gists
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List gist comments
## List gist comments
GET https://api.github.com/gists/{{gist_id}}/comments
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List gist commits
## List gist commits
GET https://api.github.com/gists/{{gist_id}}/commits
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List gists for a user
## List gists for a user
GET https://api.github.com/users/{{username}}/gists
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List gist forks
## List gist forks
GET https://api.github.com/gists/{{gist_id}}/forks
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List public gists
## List public gists
GET https://api.github.com/gists/public
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List starred gists
## List starred gists
GET https://api.github.com/gists/starred
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Star a gist
## Star a gist
PUT https://api.github.com/gists/{{gist_id}}/star
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Unstar a gist
## Unstar a gist
DELETE https://api.github.com/gists/{{gist_id}}/star
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Update a gist
## Update a gist
PATCH https://api.github.com/gists/{{gist_id}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"description" : "An updated gist description",
@@ -148,7 +148,7 @@ Authorization: Bearer={{bearerToken}}
PATCH https://api.github.com/gists/{{gist_id}}/comments/{{comment_id}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"body" : "This is an update to a comment in a gist"

View File

@@ -5,7 +5,7 @@
POST https://api.github.com/repos/{{owner}}/{{repo}}/git/blobs
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"content" : "Content of the blob",
@@ -18,7 +18,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/git/commits
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"message" : "my commit message",
@@ -38,7 +38,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/git/refs
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"ref" : "refs/heads/featureA",
@@ -51,7 +51,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/git/tags
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"tag" : "v0.0.1",
@@ -71,7 +71,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/git/trees
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"base_tree" : "9fb037999f264ba9a7fc6274d15fa3ae2ab98312",
@@ -88,50 +88,50 @@ Authorization: Bearer={{bearerToken}}
## Delete a reference
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/git/refs/{{ref}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a blob
## Get a blob
GET https://api.github.com/repos/{{owner}}/{{repo}}/git/blobs/{{file_sha}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a commit object
## Get a commit object
GET https://api.github.com/repos/{{owner}}/{{repo}}/git/commits/{{commit_sha}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a reference
## Get a reference
GET https://api.github.com/repos/{{owner}}/{{repo}}/git/ref/{{ref}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a tag
## Get a tag
GET https://api.github.com/repos/{{owner}}/{{repo}}/git/tags/{{tag_sha}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a tree
## Get a tree
GET https://api.github.com/repos/{{owner}}/{{repo}}/git/trees/{{tree_sha}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List matching references
## List matching references
GET https://api.github.com/repos/{{owner}}/{{repo}}/git/matching-refs/{{ref}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Update a reference
## Update a reference
PATCH https://api.github.com/repos/{{owner}}/{{repo}}/git/refs/{{ref}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"sha" : "aa218f56b14c9653891f9e74264a383fa43fefbd",

View File

@@ -4,10 +4,10 @@
## Get all gitignore templates
GET https://api.github.com/gitignore/templates
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a gitignore template
## Get a gitignore template
GET https://api.github.com/gitignore/templates/{{name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}

View File

@@ -4,41 +4,41 @@
## Get interaction restrictions for your public repositories
GET https://api.github.com/user/interaction-limits
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get interaction restrictions for an organization
## Get interaction restrictions for an organization
GET https://api.github.com/orgs/{{org}}/interaction-limits
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### 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
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove interaction restrictions from your public repositories
## Remove interaction restrictions from your public repositories
DELETE https://api.github.com/user/interaction-limits
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove interaction restrictions for an organization
## Remove interaction restrictions for an organization
DELETE https://api.github.com/orgs/{{org}}/interaction-limits
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove interaction restrictions for a repository
## Remove interaction restrictions for a repository
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/interaction-limits
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### 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
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"limit" : "collaborators_only",
@@ -51,7 +51,7 @@ Authorization: Bearer={{bearerToken}}
PUT https://api.github.com/orgs/{{org}}/interaction-limits
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"limit" : "collaborators_only",
@@ -64,7 +64,7 @@ Authorization: Bearer={{bearerToken}}
PUT https://api.github.com/repos/{{owner}}/{{repo}}/interaction-limits
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"limit" : "collaborators_only",

View File

@@ -5,7 +5,7 @@
POST https://api.github.com/repos/{{owner}}/{{repo}}/issues/{{issue_number}}/assignees
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"assignees" : [ "hubot", "other_user" ]
@@ -17,7 +17,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/issues/{{issue_number}}/labels
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"labels" : [ "bug", "enhancement" ]
@@ -28,13 +28,13 @@ Authorization: Bearer={{bearerToken}}
## Check if a user can be assigned
GET https://api.github.com/repos/{{owner}}/{{repo}}/assignees/{{assignee}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Check if a user can be assigned to a issue
## Check if a user can be assigned to a issue
GET https://api.github.com/repos/{{owner}}/{{repo}}/issues/{{issue_number}}/assignees/{{assignee}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Create an issue
## Create an issue
@@ -42,7 +42,7 @@ POST https://api.github.com/repos/{{owner}}/{{repo}}/issues
Content-Type: application/json
Accept: application/json
Accept: application/scim+json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"title" : "Found a bug",
@@ -58,7 +58,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/issues/{{issue_number}}/comments
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"body" : "Me too"
@@ -70,7 +70,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/labels
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"name" : "bug",
@@ -84,7 +84,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/milestones
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"title" : "v1.0",
@@ -97,139 +97,139 @@ Authorization: Bearer={{bearerToken}}
### Delete an issue comment
## Delete an issue comment
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/issues/comments/{{comment_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a label
## Delete a label
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/labels/{{name}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a milestone
## Delete a milestone
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/milestones/{{milestone_number}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an issue
## Get an issue
GET https://api.github.com/repos/{{owner}}/{{repo}}/issues/{{issue_number}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an issue comment
## Get an issue comment
GET https://api.github.com/repos/{{owner}}/{{repo}}/issues/comments/{{comment_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an issue event
## Get an issue event
GET https://api.github.com/repos/{{owner}}/{{repo}}/issues/events/{{event_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a label
## Get a label
GET https://api.github.com/repos/{{owner}}/{{repo}}/labels/{{name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a milestone
## Get a milestone
GET https://api.github.com/repos/{{owner}}/{{repo}}/milestones/{{milestone_number}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List issues assigned to the authenticated user
## List issues assigned to the authenticated user
GET https://api.github.com/issues
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List assignees
## List assignees
GET https://api.github.com/repos/{{owner}}/{{repo}}/assignees
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List issue comments
## List issue comments
GET https://api.github.com/repos/{{owner}}/{{repo}}/issues/{{issue_number}}/comments
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List issue comments for a repository
## List issue comments for a repository
GET https://api.github.com/repos/{{owner}}/{{repo}}/issues/comments
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List issue events
## List issue events
GET https://api.github.com/repos/{{owner}}/{{repo}}/issues/{{issue_number}}/events
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List issue events for a repository
## List issue events for a repository
GET https://api.github.com/repos/{{owner}}/{{repo}}/issues/events
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List timeline events for an issue
## List timeline events for an issue
GET https://api.github.com/repos/{{owner}}/{{repo}}/issues/{{issue_number}}/timeline
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List user account issues assigned to the authenticated user
## List user account issues assigned to the authenticated user
GET https://api.github.com/user/issues
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List organization issues assigned to the authenticated user
## List organization issues assigned to the authenticated user
GET https://api.github.com/orgs/{{org}}/issues
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List repository issues
## List repository issues
GET https://api.github.com/repos/{{owner}}/{{repo}}/issues
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List labels for issues in a milestone
## List labels for issues in a milestone
GET https://api.github.com/repos/{{owner}}/{{repo}}/milestones/{{milestone_number}}/labels
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List labels for a repository
## List labels for a repository
GET https://api.github.com/repos/{{owner}}/{{repo}}/labels
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List labels for an issue
## List labels for an issue
GET https://api.github.com/repos/{{owner}}/{{repo}}/issues/{{issue_number}}/labels
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List milestones
## List milestones
GET https://api.github.com/repos/{{owner}}/{{repo}}/milestones
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Lock an issue
## Lock an issue
PUT https://api.github.com/repos/{{owner}}/{{repo}}/issues/{{issue_number}}/lock
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"lock_reason" : "off-topic"
@@ -240,14 +240,14 @@ Authorization: Bearer={{bearerToken}}
## Remove all labels from an issue
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/issues/{{issue_number}}/labels
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove assignees from an issue
## Remove assignees from an issue
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/issues/{{issue_number}}/assignees
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"assignees" : [ "hubot", "other_user" ]
@@ -258,14 +258,14 @@ Authorization: Bearer={{bearerToken}}
## Remove a label from an issue
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/issues/{{issue_number}}/labels/{{name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Set labels for an issue
## Set labels for an issue
PUT https://api.github.com/repos/{{owner}}/{{repo}}/issues/{{issue_number}}/labels
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"labels" : [ "bug", "enhancement" ]
@@ -276,14 +276,14 @@ Authorization: Bearer={{bearerToken}}
## Unlock an issue
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/issues/{{issue_number}}/lock
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Update an issue
## Update an issue
PATCH https://api.github.com/repos/{{owner}}/{{repo}}/issues/{{issue_number}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"title" : "Found a bug",
@@ -300,7 +300,7 @@ Authorization: Bearer={{bearerToken}}
PATCH https://api.github.com/repos/{{owner}}/{{repo}}/issues/comments/{{comment_id}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"body" : "Me too"
@@ -312,7 +312,7 @@ Authorization: Bearer={{bearerToken}}
PATCH https://api.github.com/repos/{{owner}}/{{repo}}/labels/{{name}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"new_name" : "bug :bug:",
@@ -326,7 +326,7 @@ Authorization: Bearer={{bearerToken}}
PATCH https://api.github.com/repos/{{owner}}/{{repo}}/milestones/{{milestone_number}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"title" : "v1.0",

View File

@@ -4,16 +4,16 @@
## Get a license
GET https://api.github.com/licenses/{{license}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get all commonly used licenses
## Get all commonly used licenses
GET https://api.github.com/licenses
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get the license for a repository
## Get the license for a repository
GET https://api.github.com/repos/{{owner}}/{{repo}}/license
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}

View File

@@ -5,7 +5,7 @@
POST https://api.github.com/markdown
Content-Type: application/json
Accept: text/html
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"text" : "Hello **world**"
@@ -18,7 +18,7 @@ POST https://api.github.com/markdown/raw
Content-Type: text/plain
Content-Type: text/x-markdown
Accept: text/html
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"text" : "Hello **world**"

View File

@@ -4,28 +4,28 @@
## Get GitHub meta information
GET https://api.github.com/meta
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get all API versions
## Get all API versions
GET https://api.github.com/versions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get Octocat
## Get Octocat
GET https://api.github.com/octocat
Accept: application/octocat-stream
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get the Zen of GitHub
## Get the Zen of GitHub
GET https://api.github.com/zen
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### GitHub API Root
## GitHub API Root
GET https://api.github.com/
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}

View File

@@ -4,92 +4,92 @@
## Cancel an import
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/import
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a user migration archive
## Delete a user migration archive
DELETE https://api.github.com/user/migrations/{{migration_id}}/archive
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete an organization migration archive
## Delete an organization migration archive
DELETE https://api.github.com/orgs/{{org}}/migrations/{{migration_id}}/archive
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Download an organization migration archive
## Download an organization migration archive
GET https://api.github.com/orgs/{{org}}/migrations/{{migration_id}}/archive
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Download a user migration archive
## Download a user migration archive
GET https://api.github.com/user/migrations/{{migration_id}}/archive
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get commit authors
## Get commit authors
GET https://api.github.com/repos/{{owner}}/{{repo}}/import/authors
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an import status
## Get an import status
GET https://api.github.com/repos/{{owner}}/{{repo}}/import
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get large files
## Get large files
GET https://api.github.com/repos/{{owner}}/{{repo}}/import/large_files
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a user migration status
## Get a user migration status
GET https://api.github.com/user/migrations/{{migration_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an organization migration status
## Get an organization migration status
GET https://api.github.com/orgs/{{org}}/migrations/{{migration_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List user migrations
## List user migrations
GET https://api.github.com/user/migrations
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List organization migrations
## List organization migrations
GET https://api.github.com/orgs/{{org}}/migrations
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List repositories for a user migration
## List repositories for a user migration
GET https://api.github.com/user/migrations/{{migration_id}}/repositories
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List repositories in an organization migration
## List repositories in an organization migration
GET https://api.github.com/orgs/{{org}}/migrations/{{migration_id}}/repositories
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Map a commit author
## Map a commit author
PATCH https://api.github.com/repos/{{owner}}/{{repo}}/import/authors/{{author_id}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"email" : "hubot@github.com",
@@ -102,7 +102,7 @@ Authorization: Bearer={{bearerToken}}
PATCH https://api.github.com/repos/{{owner}}/{{repo}}/import/lfs
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"use_lfs" : "opt_in"
@@ -114,7 +114,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/user/migrations
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"repositories" : [ "octocat/Hello-World" ],
@@ -127,7 +127,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/orgs/{{org}}/migrations
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"repositories" : [ "github/Hello-World" ],
@@ -140,7 +140,7 @@ Authorization: Bearer={{bearerToken}}
PUT https://api.github.com/repos/{{owner}}/{{repo}}/import
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"vcs" : "subversion",
@@ -154,20 +154,20 @@ Authorization: Bearer={{bearerToken}}
## Unlock a user repository
DELETE https://api.github.com/user/migrations/{{migration_id}}/repos/{{repo_name}}/lock
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Unlock an organization repository
## Unlock an organization repository
DELETE https://api.github.com/orgs/{{org}}/migrations/{{migration_id}}/repos/{{repo_name}}/lock
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Update an import
## Update an import
PATCH https://api.github.com/repos/{{owner}}/{{repo}}/import
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"vcs_username" : "octocat",

View File

@@ -4,14 +4,14 @@
## Get the customization template for an OIDC subject claim for an organization
GET https://api.github.com/orgs/{{org}}/actions/oidc/customization/sub
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Set the customization template for an OIDC subject claim for an organization
##
PUT https://api.github.com/orgs/{{org}}/actions/oidc/customization/sub
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"include_claim_keys" : [ "repo", "context" ]

View File

@@ -3,52 +3,52 @@
### Add a security manager team
## Add a security manager team
PUT https://api.github.com/orgs/{{org}}/security-managers/teams/{{team_slug}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Assign an organization role to a team
## Assign an organization role to a team
PUT https://api.github.com/orgs/{{org}}/organization-roles/teams/{{team_slug}}/{{role_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Assign an organization role to a user
## Assign an organization role to a user
PUT https://api.github.com/orgs/{{org}}/organization-roles/users/{{username}}/{{role_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Block a user from an organization
## Block a user from an organization
PUT https://api.github.com/orgs/{{org}}/blocks/{{username}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Cancel an organization invitation
## Cancel an organization invitation
DELETE https://api.github.com/orgs/{{org}}/invitations/{{invitation_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Check if a user is blocked by an organization
## Check if a user is blocked by an organization
GET https://api.github.com/orgs/{{org}}/blocks/{{username}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Check organization membership for a user
## Check organization membership for a user
GET https://api.github.com/orgs/{{org}}/members/{{username}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Check public organization membership for a user
## Check public organization membership for a user
GET https://api.github.com/orgs/{{org}}/public_members/{{username}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Convert an organization member to outside collaborator
## Convert an organization member to outside collaborator
PUT https://api.github.com/orgs/{{org}}/outside_collaborators/{{username}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"async" : true
@@ -60,7 +60,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/orgs/{{org}}/organization-roles
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"name" : "Custom Role Manager",
@@ -74,7 +74,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/orgs/{{org}}/invitations
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"email" : "octocat@github.com",
@@ -88,7 +88,7 @@ Authorization: Bearer={{bearerToken}}
PATCH https://api.github.com/orgs/{{org}}/properties/schema
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"properties" : [ {
@@ -115,7 +115,7 @@ Authorization: Bearer={{bearerToken}}
PATCH https://api.github.com/orgs/{{org}}/properties/values
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"repository_names" : [ "Hello-World", "octo-repo" ],
@@ -137,7 +137,7 @@ Authorization: Bearer={{bearerToken}}
PUT https://api.github.com/orgs/{{org}}/properties/schema/{{custom_property_name}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"value_type" : "single_select",
@@ -153,7 +153,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/orgs/{{org}}/hooks
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"name" : "web",
@@ -170,226 +170,226 @@ Authorization: Bearer={{bearerToken}}
## Delete an organization
DELETE https://api.github.com/orgs/{{org}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a custom organization role.
## Delete a custom organization role.
DELETE https://api.github.com/orgs/{{org}}/organization-roles/{{role_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete an organization webhook
## Delete an organization webhook
DELETE https://api.github.com/orgs/{{org}}/hooks/{{hook_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an organization
## Get an organization
GET https://api.github.com/orgs/{{org}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get all custom properties for an organization
## Get all custom properties for an organization
GET https://api.github.com/orgs/{{org}}/properties/schema
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a custom property for an organization
## Get a custom property for an organization
GET https://api.github.com/orgs/{{org}}/properties/schema/{{custom_property_name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an organization membership for the authenticated user
## Get an organization membership for the authenticated user
GET https://api.github.com/user/memberships/orgs/{{org}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get organization membership for a user
## Get organization membership for a user
GET https://api.github.com/orgs/{{org}}/memberships/{{username}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an organization role
## Get an organization role
GET https://api.github.com/orgs/{{org}}/organization-roles/{{role_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an organization webhook
## Get an organization webhook
GET https://api.github.com/orgs/{{org}}/hooks/{{hook_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a webhook configuration for an organization
## Get a webhook configuration for an organization
GET https://api.github.com/orgs/{{org}}/hooks/{{hook_id}}/config
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a webhook delivery for an organization webhook
## Get a webhook delivery for an organization webhook
GET https://api.github.com/orgs/{{org}}/hooks/{{hook_id}}/deliveries/{{delivery_id}}
Accept: application/json
Accept: application/scim+json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List organizations
## List organizations
GET https://api.github.com/organizations
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List app installations for an organization
## List app installations for an organization
GET https://api.github.com/orgs/{{org}}/installations
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List users blocked by an organization
## List users blocked by an organization
GET https://api.github.com/orgs/{{org}}/blocks
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List custom property values for organization repositories
## List custom property values for organization repositories
GET https://api.github.com/orgs/{{org}}/properties/values
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List failed organization invitations
## List failed organization invitations
GET https://api.github.com/orgs/{{org}}/failed_invitations
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List organizations for the authenticated user
## List organizations for the authenticated user
GET https://api.github.com/user/orgs
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List organizations for a user
## List organizations for a user
GET https://api.github.com/users/{{username}}/orgs
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List organization invitation teams
## List organization invitation teams
GET https://api.github.com/orgs/{{org}}/invitations/{{invitation_id}}/teams
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List organization members
## List organization members
GET https://api.github.com/orgs/{{org}}/members
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List organization memberships for the authenticated user
## List organization memberships for the authenticated user
GET https://api.github.com/user/memberships/orgs
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List teams that are assigned to an organization role
## List teams that are assigned to an organization role
GET https://api.github.com/orgs/{{org}}/organization-roles/{{role_id}}/teams
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List users that are assigned to an organization role
## List users that are assigned to an organization role
GET https://api.github.com/orgs/{{org}}/organization-roles/{{role_id}}/users
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get all organization roles for an organization
## Get all organization roles for an organization
GET https://api.github.com/orgs/{{org}}/organization-roles
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List organization fine-grained permissions for an organization
## List organization fine-grained permissions for an organization
GET https://api.github.com/orgs/{{org}}/organization-fine-grained-permissions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List outside collaborators for an organization
## List outside collaborators for an organization
GET https://api.github.com/orgs/{{org}}/outside_collaborators
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List repositories a fine-grained personal access token has access to
## List repositories a fine-grained personal access token has access to
GET https://api.github.com/orgs/{{org}}/personal-access-tokens/{{pat_id}}/repositories
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List repositories requested to be accessed by a fine-grained personal access token
## List repositories requested to be accessed by a fine-grained personal access token
GET https://api.github.com/orgs/{{org}}/personal-access-token-requests/{{pat_request_id}}/repositories
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List requests to access organization resources with fine-grained personal access tokens
## List requests to access organization resources with fine-grained personal access tokens
GET https://api.github.com/orgs/{{org}}/personal-access-token-requests
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List fine-grained personal access tokens with access to organization resources
## List fine-grained personal access tokens with access to organization resources
GET https://api.github.com/orgs/{{org}}/personal-access-tokens
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List pending organization invitations
## List pending organization invitations
GET https://api.github.com/orgs/{{org}}/invitations
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List public organization members
## List public organization members
GET https://api.github.com/orgs/{{org}}/public_members
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List security manager teams
## List security manager teams
GET https://api.github.com/orgs/{{org}}/security-managers
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List deliveries for an organization webhook
## List deliveries for an organization webhook
GET https://api.github.com/orgs/{{org}}/hooks/{{hook_id}}/deliveries
Accept: application/json
Accept: application/scim+json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List organization webhooks
## List organization webhooks
GET https://api.github.com/orgs/{{org}}/hooks
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Update a custom organization role
## Update a custom organization role
PATCH https://api.github.com/orgs/{{org}}/organization-roles/{{role_id}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"description" : "Permissions to manage custom roles within an org."
@@ -400,55 +400,55 @@ Authorization: Bearer={{bearerToken}}
## Ping an organization webhook
POST https://api.github.com/orgs/{{org}}/hooks/{{hook_id}}/pings
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Redeliver a delivery for an organization webhook
## Redeliver a delivery for an organization webhook
POST https://api.github.com/orgs/{{org}}/hooks/{{hook_id}}/deliveries/{{delivery_id}}/attempts
Accept: application/json
Accept: application/scim+json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove a custom property for an organization
## Remove a custom property for an organization
DELETE https://api.github.com/orgs/{{org}}/properties/schema/{{custom_property_name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove an organization member
## Remove an organization member
DELETE https://api.github.com/orgs/{{org}}/members/{{username}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove organization membership for a user
## Remove organization membership for a user
DELETE https://api.github.com/orgs/{{org}}/memberships/{{username}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove outside collaborator from an organization
## Remove outside collaborator from an organization
DELETE https://api.github.com/orgs/{{org}}/outside_collaborators/{{username}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove public organization membership for the authenticated user
## Remove public organization membership for the authenticated user
DELETE https://api.github.com/orgs/{{org}}/public_members/{{username}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove a security manager team
## Remove a security manager team
DELETE https://api.github.com/orgs/{{org}}/security-managers/teams/{{team_slug}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Review a request to access organization resources with a fine-grained personal access token
## Review a request to access organization resources with a fine-grained personal access token
POST https://api.github.com/orgs/{{org}}/personal-access-token-requests/{{pat_request_id}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"action" : "deny",
@@ -461,7 +461,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/orgs/{{org}}/personal-access-token-requests
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"pat_request_ids" : [ 42, 73 ],
@@ -473,29 +473,29 @@ Authorization: Bearer={{bearerToken}}
### Remove all organization roles for a team
## Remove all organization roles for a team
DELETE https://api.github.com/orgs/{{org}}/organization-roles/teams/{{team_slug}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove all organization roles for a user
## Remove all organization roles for a user
DELETE https://api.github.com/orgs/{{org}}/organization-roles/users/{{username}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove an organization role from a team
## Remove an organization role from a team
DELETE https://api.github.com/orgs/{{org}}/organization-roles/teams/{{team_slug}}/{{role_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove an organization role from a user
## Remove an organization role from a user
DELETE https://api.github.com/orgs/{{org}}/organization-roles/users/{{username}}/{{role_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Set organization membership for a user
## Set organization membership for a user
PUT https://api.github.com/orgs/{{org}}/memberships/{{username}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"role" : "member"
@@ -506,19 +506,19 @@ Authorization: Bearer={{bearerToken}}
## Set public organization membership for the authenticated user
PUT https://api.github.com/orgs/{{org}}/public_members/{{username}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Unblock a user from an organization
## Unblock a user from an organization
DELETE https://api.github.com/orgs/{{org}}/blocks/{{username}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Update an organization
## Update an organization
PATCH https://api.github.com/orgs/{{org}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"billing_email" : "mona@github.com",
@@ -539,7 +539,7 @@ Authorization: Bearer={{bearerToken}}
PATCH https://api.github.com/user/memberships/orgs/{{org}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"state" : "active"
@@ -551,7 +551,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/orgs/{{org}}/personal-access-tokens/{{pat_id}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"action" : "revoke"
@@ -563,7 +563,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/orgs/{{org}}/personal-access-tokens
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"action" : "revoke",
@@ -576,7 +576,7 @@ Authorization: Bearer={{bearerToken}}
PATCH https://api.github.com/orgs/{{org}}/hooks/{{hook_id}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"active" : true,
@@ -589,7 +589,7 @@ Authorization: Bearer={{bearerToken}}
PATCH https://api.github.com/orgs/{{org}}/hooks/{{hook_id}}/config
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"url" : "http://example.com/webhook",

View File

@@ -4,160 +4,160 @@
## Delete a package for the authenticated user
DELETE https://api.github.com/user/packages/{{package_type}}/{{package_name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a package for an organization
## Delete a package for an organization
DELETE https://api.github.com/orgs/{{org}}/packages/{{package_type}}/{{package_name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a package for a user
## Delete a package for a user
DELETE https://api.github.com/users/{{username}}/packages/{{package_type}}/{{package_name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a package version for the authenticated user
## Delete a package version for the authenticated user
DELETE https://api.github.com/user/packages/{{package_type}}/{{package_name}}/versions/{{package_version_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete package version for an organization
## Delete package version for an organization
DELETE https://api.github.com/orgs/{{org}}/packages/{{package_type}}/{{package_name}}/versions/{{package_version_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete package version for a user
## Delete package version for a user
DELETE https://api.github.com/users/{{username}}/packages/{{package_type}}/{{package_name}}/versions/{{package_version_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List package versions for a package owned by the authenticated user
## List package versions for a package owned by the authenticated user
GET https://api.github.com/user/packages/{{package_type}}/{{package_name}}/versions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List package versions for a package owned by an organization
## List package versions for a package owned by an organization
GET https://api.github.com/orgs/{{org}}/packages/{{package_type}}/{{package_name}}/versions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List package versions for a package owned by a user
## List package versions for a package owned by a user
GET https://api.github.com/users/{{username}}/packages/{{package_type}}/{{package_name}}/versions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a package for the authenticated user
## Get a package for the authenticated user
GET https://api.github.com/user/packages/{{package_type}}/{{package_name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a package for an organization
## Get a package for an organization
GET https://api.github.com/orgs/{{org}}/packages/{{package_type}}/{{package_name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a package for a user
## Get a package for a user
GET https://api.github.com/users/{{username}}/packages/{{package_type}}/{{package_name}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a package version for the authenticated user
## Get a package version for the authenticated user
GET https://api.github.com/user/packages/{{package_type}}/{{package_name}}/versions/{{package_version_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a package version for an organization
## Get a package version for an organization
GET https://api.github.com/orgs/{{org}}/packages/{{package_type}}/{{package_name}}/versions/{{package_version_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a package version for a user
## Get a package version for a user
GET https://api.github.com/users/{{username}}/packages/{{package_type}}/{{package_name}}/versions/{{package_version_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get list of conflicting packages during Docker migration for authenticated-user
## Get list of conflicting packages during Docker migration for authenticated-user
GET https://api.github.com/user/docker/conflicts
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get list of conflicting packages during Docker migration for organization
## Get list of conflicting packages during Docker migration for organization
GET https://api.github.com/orgs/{{org}}/docker/conflicts
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get list of conflicting packages during Docker migration for user
## Get list of conflicting packages during Docker migration for user
GET https://api.github.com/users/{{username}}/docker/conflicts
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List packages for the authenticated user&#39;s namespace
## List packages for the authenticated user&#39;s namespace
GET https://api.github.com/user/packages
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List packages for an organization
## List packages for an organization
GET https://api.github.com/orgs/{{org}}/packages
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List packages for a user
## List packages for a user
GET https://api.github.com/users/{{username}}/packages
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Restore a package for the authenticated user
## Restore a package for the authenticated user
POST https://api.github.com/user/packages/{{package_type}}/{{package_name}}/restore
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Restore a package for an organization
## Restore a package for an organization
POST https://api.github.com/orgs/{{org}}/packages/{{package_type}}/{{package_name}}/restore
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Restore a package for a user
## Restore a package for a user
POST https://api.github.com/users/{{username}}/packages/{{package_type}}/{{package_name}}/restore
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Restore a package version for the authenticated user
## Restore a package version for the authenticated user
POST https://api.github.com/user/packages/{{package_type}}/{{package_name}}/versions/{{package_version_id}}/restore
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Restore package version for an organization
## Restore package version for an organization
POST https://api.github.com/orgs/{{org}}/packages/{{package_type}}/{{package_name}}/versions/{{package_version_id}}/restore
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Restore package version for a user
## Restore package version for a user
POST https://api.github.com/users/{{username}}/packages/{{package_type}}/{{package_name}}/versions/{{package_version_id}}/restore
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}

View File

@@ -5,7 +5,7 @@
PUT https://api.github.com/projects/{{project_id}}/collaborators/{{username}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"permission" : "write"
@@ -17,7 +17,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/projects/columns/{{column_id}}/cards
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"note" : "Add payload for delete Project column"
@@ -29,7 +29,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/projects/{{project_id}}/columns
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"name" : "Remaining tasks"
@@ -41,7 +41,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/user/projects
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"name" : "My Projects",
@@ -54,7 +54,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/orgs/{{org}}/projects
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"name" : "Organization Roadmap",
@@ -67,7 +67,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/projects
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"name" : "Projects Documentation",
@@ -79,86 +79,86 @@ Authorization: Bearer={{bearerToken}}
## Delete a project
DELETE https://api.github.com/projects/{{project_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a project card
## Delete a project card
DELETE https://api.github.com/projects/columns/cards/{{card_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a project column
## Delete a project column
DELETE https://api.github.com/projects/columns/{{column_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a project
## Get a project
GET https://api.github.com/projects/{{project_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a project card
## Get a project card
GET https://api.github.com/projects/columns/cards/{{card_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a project column
## Get a project column
GET https://api.github.com/projects/columns/{{column_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get project permission for a user
## Get project permission for a user
GET https://api.github.com/projects/{{project_id}}/collaborators/{{username}}/permission
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List project cards
## List project cards
GET https://api.github.com/projects/columns/{{column_id}}/cards
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List project collaborators
## List project collaborators
GET https://api.github.com/projects/{{project_id}}/collaborators
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List project columns
## List project columns
GET https://api.github.com/projects/{{project_id}}/columns
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List organization projects
## List organization projects
GET https://api.github.com/orgs/{{org}}/projects
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List repository projects
## List repository projects
GET https://api.github.com/repos/{{owner}}/{{repo}}/projects
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List user projects
## List user projects
GET https://api.github.com/users/{{username}}/projects
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Move a project card
## Move a project card
POST https://api.github.com/projects/columns/cards/{{card_id}}/moves
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"column_id" : 42,
@@ -171,7 +171,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/projects/columns/{{column_id}}/moves
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"position" : "last"
@@ -182,14 +182,14 @@ Authorization: Bearer={{bearerToken}}
## Remove user as a collaborator
DELETE https://api.github.com/projects/{{project_id}}/collaborators/{{username}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Update a project
## Update a project
PATCH https://api.github.com/projects/{{project_id}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"name" : "Week One Sprint",
@@ -203,7 +203,7 @@ Authorization: Bearer={{bearerToken}}
PATCH https://api.github.com/projects/columns/cards/{{card_id}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"note" : "Add payload for delete Project column"
@@ -215,7 +215,7 @@ Authorization: Bearer={{bearerToken}}
PATCH https://api.github.com/projects/columns/{{column_id}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"name" : "To Do"

View File

@@ -3,14 +3,14 @@
### Check if a pull request has been merged
## Check if a pull request has been merged
GET https://api.github.com/repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/merge
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Create a pull request
## Create a pull request
POST https://api.github.com/repos/{{owner}}/{{repo}}/pulls
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"title" : "Amazing new feature",
@@ -25,7 +25,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/comments/{{comment_id}}/replies
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"body" : "Great stuff!"
@@ -37,7 +37,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/reviews
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"commit_id" : "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
@@ -56,7 +56,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/comments
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"body" : "Great stuff!",
@@ -73,20 +73,20 @@ Authorization: Bearer={{bearerToken}}
## Delete a pending review for a pull request
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/reviews/{{review_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a review comment for a pull request
## Delete a review comment for a pull request
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/pulls/comments/{{comment_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Dismiss a review for a pull request
## Dismiss a review for a pull request
PUT https://api.github.com/repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/reviews/{{review_id}}/dismissals
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"message" : "You are dismissed",
@@ -98,74 +98,74 @@ Authorization: Bearer={{bearerToken}}
## Get a pull request
GET https://api.github.com/repos/{{owner}}/{{repo}}/pulls/{{pull_number}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a review for a pull request
## Get a review for a pull request
GET https://api.github.com/repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/reviews/{{review_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a review comment for a pull request
## Get a review comment for a pull request
GET https://api.github.com/repos/{{owner}}/{{repo}}/pulls/comments/{{comment_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List pull requests
## List pull requests
GET https://api.github.com/repos/{{owner}}/{{repo}}/pulls
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List comments for a pull request review
## List comments for a pull request review
GET https://api.github.com/repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/reviews/{{review_id}}/comments
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List commits on a pull request
## List commits on a pull request
GET https://api.github.com/repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/commits
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List pull requests files
## List pull requests files
GET https://api.github.com/repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/files
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get all requested reviewers for a pull request
## Get all requested reviewers for a pull request
GET https://api.github.com/repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/requested_reviewers
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List review comments on a pull request
## List review comments on a pull request
GET https://api.github.com/repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/comments
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List review comments in a repository
## List review comments in a repository
GET https://api.github.com/repos/{{owner}}/{{repo}}/pulls/comments
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List reviews for a pull request
## List reviews for a pull request
GET https://api.github.com/repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/reviews
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Merge a pull request
## Merge a pull request
PUT https://api.github.com/repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/merge
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"commit_title" : "Expand enum",
@@ -178,7 +178,7 @@ Authorization: Bearer={{bearerToken}}
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/requested_reviewers
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"reviewers" : [ "octocat", "hubot", "other_user" ],
@@ -191,7 +191,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/requested_reviewers
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"reviewers" : [ "octocat", "hubot", "other_user" ],
@@ -204,7 +204,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/reviews/{{review_id}}/events
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"body" : "Here is the body for the review.",
@@ -217,7 +217,7 @@ Authorization: Bearer={{bearerToken}}
PATCH https://api.github.com/repos/{{owner}}/{{repo}}/pulls/{{pull_number}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"title" : "new title",
@@ -232,7 +232,7 @@ Authorization: Bearer={{bearerToken}}
PUT https://api.github.com/repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/update-branch
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"expected_head_sha" : "6dcb09b5b57875f334f61aebed695e2e4193db5e"
@@ -244,7 +244,7 @@ Authorization: Bearer={{bearerToken}}
PUT https://api.github.com/repos/{{owner}}/{{repo}}/pulls/{{pull_number}}/reviews/{{review_id}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"body" : "This is close to perfect! Please address the suggested inline change. And add more about this."
@@ -256,7 +256,7 @@ Authorization: Bearer={{bearerToken}}
PATCH https://api.github.com/repos/{{owner}}/{{repo}}/pulls/comments/{{comment_id}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"body" : "I like this too!"

View File

@@ -4,4 +4,4 @@
## Get rate limit status for the authenticated user
GET https://api.github.com/rate_limit
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}

View File

@@ -5,7 +5,7 @@
POST https://api.github.com/repos/{{owner}}/{{repo}}/comments/{{comment_id}}/reactions
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"content" : "heart"
@@ -17,7 +17,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/issues/{{issue_number}}/reactions
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"content" : "heart"
@@ -29,7 +29,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/issues/comments/{{comment_id}}/reactions
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"content" : "heart"
@@ -41,7 +41,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/pulls/comments/{{comment_id}}/reactions
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"content" : "heart"
@@ -53,7 +53,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/releases/{{release_id}}/reactions
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"content" : "heart"
@@ -65,7 +65,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/discussions/{{discussion_number}}/comments/{{comment_number}}/reactions
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"content" : "heart"
@@ -77,7 +77,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/teams/{{team_id}}/discussions/{{discussion_number}}/comments/{{comment_number}}/reactions
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"content" : "heart"
@@ -89,7 +89,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/discussions/{{discussion_number}}/reactions
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"content" : "heart"
@@ -101,7 +101,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/teams/{{team_id}}/discussions/{{discussion_number}}/reactions
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"content" : "heart"
@@ -111,88 +111,88 @@ Authorization: Bearer={{bearerToken}}
### Delete a commit comment reaction
## Delete a commit comment reaction
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/comments/{{comment_id}}/reactions/{{reaction_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete an issue reaction
## Delete an issue reaction
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/issues/{{issue_number}}/reactions/{{reaction_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete an issue comment reaction
## Delete an issue comment reaction
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/issues/comments/{{comment_id}}/reactions/{{reaction_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a pull request comment reaction
## Delete a pull request comment reaction
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/pulls/comments/{{comment_id}}/reactions/{{reaction_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a release reaction
## Delete a release reaction
DELETE https://api.github.com/repos/{{owner}}/{{repo}}/releases/{{release_id}}/reactions/{{reaction_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete team discussion reaction
## Delete team discussion reaction
DELETE https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/discussions/{{discussion_number}}/reactions/{{reaction_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete team discussion comment reaction
## Delete team discussion comment reaction
DELETE https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/discussions/{{discussion_number}}/comments/{{comment_number}}/reactions/{{reaction_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List reactions for a commit comment
## List reactions for a commit comment
GET https://api.github.com/repos/{{owner}}/{{repo}}/comments/{{comment_id}}/reactions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List reactions for an issue
## List reactions for an issue
GET https://api.github.com/repos/{{owner}}/{{repo}}/issues/{{issue_number}}/reactions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List reactions for an issue comment
## List reactions for an issue comment
GET https://api.github.com/repos/{{owner}}/{{repo}}/issues/comments/{{comment_id}}/reactions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List reactions for a pull request review comment
## List reactions for a pull request review comment
GET https://api.github.com/repos/{{owner}}/{{repo}}/pulls/comments/{{comment_id}}/reactions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List reactions for a release
## List reactions for a release
GET https://api.github.com/repos/{{owner}}/{{repo}}/releases/{{release_id}}/reactions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List reactions for a team discussion comment
## List reactions for a team discussion comment
GET https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/discussions/{{discussion_number}}/comments/{{comment_number}}/reactions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List reactions for a team discussion comment (Legacy)
## List reactions for a team discussion comment (Legacy)
GET https://api.github.com/teams/{{team_id}}/discussions/{{discussion_number}}/comments/{{comment_number}}/reactions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List reactions for a team discussion
## List reactions for a team discussion
GET https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/discussions/{{discussion_number}}/reactions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List reactions for a team discussion (Legacy)
## List reactions for a team discussion (Legacy)
GET https://api.github.com/teams/{{team_id}}/discussions/{{discussion_number}}/reactions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}

File diff suppressed because it is too large Load Diff

View File

@@ -4,40 +4,40 @@
## Search code
GET https://api.github.com/search/code
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Search commits
## Search commits
GET https://api.github.com/search/commits
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Search issues and pull requests
## Search issues and pull requests
GET https://api.github.com/search/issues
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Search labels
## Search labels
GET https://api.github.com/search/labels
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Search repositories
## Search repositories
GET https://api.github.com/search/repositories
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Search topics
## Search topics
GET https://api.github.com/search/topics
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Search users
## Search users
GET https://api.github.com/search/users
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}

View File

@@ -4,38 +4,38 @@
## Get a secret scanning alert
GET https://api.github.com/repos/{{owner}}/{{repo}}/secret-scanning/alerts/{{alert_number}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List secret scanning alerts for an enterprise
## List secret scanning alerts for an enterprise
GET https://api.github.com/enterprises/{{enterprise}}/secret-scanning/alerts
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List secret scanning alerts for an organization
## List secret scanning alerts for an organization
GET https://api.github.com/orgs/{{org}}/secret-scanning/alerts
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List secret scanning alerts for a repository
## List secret scanning alerts for a repository
GET https://api.github.com/repos/{{owner}}/{{repo}}/secret-scanning/alerts
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List locations for a secret scanning alert
## List locations for a secret scanning alert
GET https://api.github.com/repos/{{owner}}/{{repo}}/secret-scanning/alerts/{{alert_number}}/locations
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Update a secret scanning alert
## Update a secret scanning alert
PATCH https://api.github.com/repos/{{owner}}/{{repo}}/secret-scanning/alerts/{{alert_number}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"state" : "resolved",

View File

@@ -5,14 +5,14 @@
POST https://api.github.com/repos/{{owner}}/{{repo}}/security-advisories/{{ghsa_id}}/forks
Accept: application/json
Accept: application/scim+json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Privately report a security vulnerability
## Privately report a security vulnerability
POST https://api.github.com/repos/{{owner}}/{{repo}}/security-advisories/reports
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"summary" : "A newly discovered vulnerability",
@@ -36,7 +36,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/security-advisories
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"summary" : "A new important advisory",
@@ -68,46 +68,46 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/repos/{{owner}}/{{repo}}/security-advisories/{{ghsa_id}}/cve
Accept: application/json
Accept: application/scim+json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a global security advisory
## Get a global security advisory
GET https://api.github.com/advisories/{{ghsa_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a repository security advisory
## Get a repository security advisory
GET https://api.github.com/repos/{{owner}}/{{repo}}/security-advisories/{{ghsa_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List global security advisories
## List global security advisories
GET https://api.github.com/advisories
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List repository security advisories for an organization
## List repository security advisories for an organization
GET https://api.github.com/orgs/{{org}}/security-advisories
Accept: application/json
Accept: application/scim+json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List repository security advisories
## List repository security advisories
GET https://api.github.com/repos/{{owner}}/{{repo}}/security-advisories
Accept: application/json
Accept: application/scim+json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Update a repository security advisory
## Update a repository security advisory
PATCH https://api.github.com/repos/{{owner}}/{{repo}}/security-advisories/{{ghsa_id}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"severity" : "critical",

View File

@@ -4,14 +4,14 @@
## Add team member (Legacy)
PUT https://api.github.com/teams/{{team_id}}/members/{{username}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Add or update team membership for a user
## Add or update team membership for a user
PUT https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/memberships/{{username}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"role" : "maintainer"
@@ -23,7 +23,7 @@ Authorization: Bearer={{bearerToken}}
PUT https://api.github.com/teams/{{team_id}}/memberships/{{username}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"role" : "member"
@@ -35,7 +35,7 @@ Authorization: Bearer={{bearerToken}}
PUT https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/projects/{{project_id}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"permission" : "write"
@@ -47,7 +47,7 @@ Authorization: Bearer={{bearerToken}}
PUT https://api.github.com/teams/{{team_id}}/projects/{{project_id}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"permission" : "read"
@@ -58,7 +58,7 @@ Authorization: Bearer={{bearerToken}}
## Add or update team repository permissions
PUT https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/repos/{{owner}}/{{repo}}
Content-Type: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"permission" : "push"
@@ -70,7 +70,7 @@ Authorization: Bearer={{bearerToken}}
PUT https://api.github.com/teams/{{team_id}}/repos/{{owner}}/{{repo}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"permission" : "push"
@@ -81,32 +81,32 @@ Authorization: Bearer={{bearerToken}}
## Check team permissions for a project
GET https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/projects/{{project_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Check team permissions for a project (Legacy)
## Check team permissions for a project (Legacy)
GET https://api.github.com/teams/{{team_id}}/projects/{{project_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Check team permissions for a repository
## Check team permissions for a repository
GET https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/repos/{{owner}}/{{repo}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Check team permissions for a repository (Legacy)
## Check team permissions for a repository (Legacy)
GET https://api.github.com/teams/{{team_id}}/repos/{{owner}}/{{repo}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Create a team
## Create a team
POST https://api.github.com/orgs/{{org}}/teams
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"name" : "Justice League",
@@ -122,7 +122,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/discussions/{{discussion_number}}/comments
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"body" : "Do you like apples?"
@@ -134,7 +134,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/teams/{{team_id}}/discussions/{{discussion_number}}/comments
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"body" : "Do you like apples?"
@@ -146,7 +146,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/discussions
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"title" : "Our first team post",
@@ -159,7 +159,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/teams/{{team_id}}/discussions
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"title" : "Our first team post",
@@ -170,225 +170,225 @@ Authorization: Bearer={{bearerToken}}
### Delete a discussion comment
## Delete a discussion comment
DELETE https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/discussions/{{discussion_number}}/comments/{{comment_number}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a discussion comment (Legacy)
## Delete a discussion comment (Legacy)
DELETE https://api.github.com/teams/{{team_id}}/discussions/{{discussion_number}}/comments/{{comment_number}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a discussion
## Delete a discussion
DELETE https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/discussions/{{discussion_number}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a discussion (Legacy)
## Delete a discussion (Legacy)
DELETE https://api.github.com/teams/{{team_id}}/discussions/{{discussion_number}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a team
## Delete a team
DELETE https://api.github.com/orgs/{{org}}/teams/{{team_slug}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a team (Legacy)
## Delete a team (Legacy)
DELETE https://api.github.com/teams/{{team_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a team by name
## Get a team by name
GET https://api.github.com/orgs/{{org}}/teams/{{team_slug}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a discussion comment
## Get a discussion comment
GET https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/discussions/{{discussion_number}}/comments/{{comment_number}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a discussion comment (Legacy)
## Get a discussion comment (Legacy)
GET https://api.github.com/teams/{{team_id}}/discussions/{{discussion_number}}/comments/{{comment_number}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a discussion
## Get a discussion
GET https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/discussions/{{discussion_number}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a discussion (Legacy)
## Get a discussion (Legacy)
GET https://api.github.com/teams/{{team_id}}/discussions/{{discussion_number}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a team (Legacy)
## Get a team (Legacy)
GET https://api.github.com/teams/{{team_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get team member (Legacy)
## Get team member (Legacy)
GET https://api.github.com/teams/{{team_id}}/members/{{username}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get team membership for a user
## Get team membership for a user
GET https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/memberships/{{username}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get team membership for a user (Legacy)
## Get team membership for a user (Legacy)
GET https://api.github.com/teams/{{team_id}}/memberships/{{username}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List teams
## List teams
GET https://api.github.com/orgs/{{org}}/teams
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List child teams
## List child teams
GET https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/teams
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List child teams (Legacy)
## List child teams (Legacy)
GET https://api.github.com/teams/{{team_id}}/teams
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List discussion comments
## List discussion comments
GET https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/discussions/{{discussion_number}}/comments
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List discussion comments (Legacy)
## List discussion comments (Legacy)
GET https://api.github.com/teams/{{team_id}}/discussions/{{discussion_number}}/comments
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List discussions
## List discussions
GET https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/discussions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List discussions (Legacy)
## List discussions (Legacy)
GET https://api.github.com/teams/{{team_id}}/discussions
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List teams for the authenticated user
## List teams for the authenticated user
GET https://api.github.com/user/teams
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List team members
## List team members
GET https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/members
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List team members (Legacy)
## List team members (Legacy)
GET https://api.github.com/teams/{{team_id}}/members
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List pending team invitations
## List pending team invitations
GET https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/invitations
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List pending team invitations (Legacy)
## List pending team invitations (Legacy)
GET https://api.github.com/teams/{{team_id}}/invitations
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List team projects
## List team projects
GET https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/projects
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List team projects (Legacy)
## List team projects (Legacy)
GET https://api.github.com/teams/{{team_id}}/projects
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List team repositories
## List team repositories
GET https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/repos
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List team repositories (Legacy)
## List team repositories (Legacy)
GET https://api.github.com/teams/{{team_id}}/repos
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove team member (Legacy)
## Remove team member (Legacy)
DELETE https://api.github.com/teams/{{team_id}}/members/{{username}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove team membership for a user
## Remove team membership for a user
DELETE https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/memberships/{{username}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove team membership for a user (Legacy)
## Remove team membership for a user (Legacy)
DELETE https://api.github.com/teams/{{team_id}}/memberships/{{username}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove a project from a team
## Remove a project from a team
DELETE https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/projects/{{project_id}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove a project from a team (Legacy)
## Remove a project from a team (Legacy)
DELETE https://api.github.com/teams/{{team_id}}/projects/{{project_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove a repository from a team
## Remove a repository from a team
DELETE https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/repos/{{owner}}/{{repo}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Remove a repository from a team (Legacy)
## Remove a repository from a team (Legacy)
DELETE https://api.github.com/teams/{{team_id}}/repos/{{owner}}/{{repo}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Update a discussion comment
## Update a discussion comment
PATCH https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/discussions/{{discussion_number}}/comments/{{comment_number}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"body" : "Do you like pineapples?"
@@ -400,7 +400,7 @@ Authorization: Bearer={{bearerToken}}
PATCH https://api.github.com/teams/{{team_id}}/discussions/{{discussion_number}}/comments/{{comment_number}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"body" : "Do you like pineapples?"
@@ -412,7 +412,7 @@ Authorization: Bearer={{bearerToken}}
PATCH https://api.github.com/orgs/{{org}}/teams/{{team_slug}}/discussions/{{discussion_number}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"title" : "Welcome to our first team post"
@@ -424,7 +424,7 @@ Authorization: Bearer={{bearerToken}}
PATCH https://api.github.com/teams/{{team_id}}/discussions/{{discussion_number}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"title" : "Welcome to our first team post"
@@ -436,7 +436,7 @@ Authorization: Bearer={{bearerToken}}
PATCH https://api.github.com/orgs/{{org}}/teams/{{team_slug}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"name" : "new team name",
@@ -451,7 +451,7 @@ Authorization: Bearer={{bearerToken}}
PATCH https://api.github.com/teams/{{team_id}}
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"name" : "new team name",

View File

@@ -5,7 +5,7 @@
POST https://api.github.com/user/emails
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"emails" : [ "octocat@github.com", "mona@github.com", "octocat@octocat.org" ]
@@ -17,7 +17,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/user/social_accounts
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"account_urls" : [ "https://facebook.com/GitHub", "https://www.youtube.com/@GitHub" ]
@@ -28,31 +28,31 @@ Authorization: Bearer={{bearerToken}}
## Block a user
PUT https://api.github.com/user/blocks/{{username}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Check if a user is blocked by the authenticated user
## Check if a user is blocked by the authenticated user
GET https://api.github.com/user/blocks/{{username}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Check if a user follows another user
## Check if a user follows another user
GET https://api.github.com/users/{{username}}/following/{{target_user}}
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Check if a person is followed by the authenticated user
## Check if a person is followed by the authenticated user
GET https://api.github.com/user/following/{{username}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Create a GPG key for the authenticated user
## Create a GPG key for the authenticated user
POST https://api.github.com/user/gpg_keys
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"name" : "Octocat's GPG Key",
@@ -65,7 +65,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/user/keys
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"title" : "ssh-rsa AAAAB3NzaC1yc2EAAA",
@@ -78,7 +78,7 @@ Authorization: Bearer={{bearerToken}}
POST https://api.github.com/user/ssh_signing_keys
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"key" : "2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234",
@@ -91,7 +91,7 @@ Authorization: Bearer={{bearerToken}}
DELETE https://api.github.com/user/emails
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"emails" : [ "octocat@github.com", "mona@github.com" ]
@@ -102,20 +102,20 @@ Authorization: Bearer={{bearerToken}}
## Delete a GPG key for the authenticated user
DELETE https://api.github.com/user/gpg_keys/{{gpg_key_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete a public SSH key for the authenticated user
## Delete a public SSH key for the authenticated user
DELETE https://api.github.com/user/keys/{{key_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Delete social accounts for the authenticated user
## Delete social accounts for the authenticated user
DELETE https://api.github.com/user/social_accounts
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"account_urls" : [ "https://facebook.com/GitHub", "https://www.youtube.com/@GitHub" ]
@@ -126,152 +126,152 @@ Authorization: Bearer={{bearerToken}}
## Delete an SSH signing key for the authenticated user
DELETE https://api.github.com/user/ssh_signing_keys/{{ssh_signing_key_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Follow a user
## Follow a user
PUT https://api.github.com/user/following/{{username}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get the authenticated user
## Get the authenticated user
GET https://api.github.com/user
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a user
## Get a user
GET https://api.github.com/users/{{username}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get contextual information for a user
## Get contextual information for a user
GET https://api.github.com/users/{{username}}/hovercard
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a GPG key for the authenticated user
## Get a GPG key for the authenticated user
GET https://api.github.com/user/gpg_keys/{{gpg_key_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get a public SSH key for the authenticated user
## Get a public SSH key for the authenticated user
GET https://api.github.com/user/keys/{{key_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Get an SSH signing key for the authenticated user
## Get an SSH signing key for the authenticated user
GET https://api.github.com/user/ssh_signing_keys/{{ssh_signing_key_id}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List users
## List users
GET https://api.github.com/users
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List users blocked by the authenticated user
## List users blocked by the authenticated user
GET https://api.github.com/user/blocks
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List email addresses for the authenticated user
## List email addresses for the authenticated user
GET https://api.github.com/user/emails
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List the people the authenticated user follows
## List the people the authenticated user follows
GET https://api.github.com/user/following
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List followers of the authenticated user
## List followers of the authenticated user
GET https://api.github.com/user/followers
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List followers of a user
## List followers of a user
GET https://api.github.com/users/{{username}}/followers
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List the people a user follows
## List the people a user follows
GET https://api.github.com/users/{{username}}/following
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List GPG keys for the authenticated user
## List GPG keys for the authenticated user
GET https://api.github.com/user/gpg_keys
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List GPG keys for a user
## List GPG keys for a user
GET https://api.github.com/users/{{username}}/gpg_keys
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List public email addresses for the authenticated user
## List public email addresses for the authenticated user
GET https://api.github.com/user/public_emails
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List public keys for a user
## List public keys for a user
GET https://api.github.com/users/{{username}}/keys
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List public SSH keys for the authenticated user
## List public SSH keys for the authenticated user
GET https://api.github.com/user/keys
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List social accounts for the authenticated user
## List social accounts for the authenticated user
GET https://api.github.com/user/social_accounts
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List social accounts for a user
## List social accounts for a user
GET https://api.github.com/users/{{username}}/social_accounts
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List SSH signing keys for the authenticated user
## List SSH signing keys for the authenticated user
GET https://api.github.com/user/ssh_signing_keys
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### List SSH signing keys for a user
## List SSH signing keys for a user
GET https://api.github.com/users/{{username}}/ssh_signing_keys
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Set primary email visibility for the authenticated user
## Set primary email visibility for the authenticated user
PATCH https://api.github.com/user/email/visibility
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"visibility" : "private"
@@ -282,20 +282,20 @@ Authorization: Bearer={{bearerToken}}
## Unblock a user
DELETE https://api.github.com/user/blocks/{{username}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Unfollow a user
## Unfollow a user
DELETE https://api.github.com/user/following/{{username}}
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
### Update the authenticated user
## Update the authenticated user
PATCH https://api.github.com/user
Content-Type: application/json
Accept: application/json
Authorization: Bearer={{bearerToken}}
Authorization: Bearer {{bearerToken}}
{
"blog" : "https://github.com/blog",

View File

@@ -1,7 +1,7 @@
#!/bin/sh
docker run --rm \
-v ${PWD}:/local openapi-generator-jetbrains generate \
-v ${PWD}:/local julienlengrand/jetbrains-openapi-generator generate \
-i /local/api.github.com.json \
-g jetbrains-http-client \
--additional-properties=customHeaders="Authorization: Bearer {{bearerToken}}" \