julien Lengrand-Lambert f1fcceb375
Major Jetbrains HTTP Client upgrade. Move to BETA (#15779)
* Add notes to requests for better readability

* Adds extra configs for jetbrains http client for testing

* Adding new sample data

* Changes

* Setting up test infrastructure

* Adds body to requests.

* Fixing some bugs in map traversal

It'd be much better to use a proper library for this though

* Adding secret file to gitignore

* Adds github spec, for complex example.

Add null check to avoid errors in example extraction

* Add support for custom variables in request body

* Add support for all basic Auth headers

* Not sure whaet happened with my api mustache file

* Add support for custom headers

* Fixes empty lines issue

* Adds support for Accept header

* Adding many tests, deleting experiment files

* Updates generator doc

* Completes README file with extra information

* Runs generate-samples and export docs

* Running sample generation

* Adding missing files to samples

* Removing forgotten stdout statements

* Ignore one test making the docker image generation fail
2024-03-09 16:56:26 +08:00

61 lines
1.9 KiB
HTTP

## CopilotApi
### Add teams to the Copilot subscription for an organization
## Add teams to the Copilot subscription for an organization
POST https://api.github.com/orgs/{{org}}/copilot/billing/selected_teams
Content-Type: application/json
Accept: application/json
{
"selected_teams" : [ "engteam1", "engteam2", "engteam3" ]
}
### Add users to the Copilot subscription for an organization
## Add users to the Copilot subscription for an organization
POST https://api.github.com/orgs/{{org}}/copilot/billing/selected_users
Content-Type: application/json
Accept: application/json
{
"selected_usernames" : [ "cooluser1", "hacker2", "octocat" ]
}
### Remove teams from the Copilot subscription for an organization
## Remove teams from the Copilot subscription for an organization
DELETE https://api.github.com/orgs/{{org}}/copilot/billing/selected_teams
Content-Type: application/json
Accept: application/json
{
"selected_teams" : [ "engteam1", "engteam2", "engteam3" ]
}
### Remove users from the Copilot subscription for an organization
## Remove users from the Copilot subscription for an organization
DELETE https://api.github.com/orgs/{{org}}/copilot/billing/selected_users
Content-Type: application/json
Accept: application/json
{
"selected_usernames" : [ "cooluser1", "hacker2", "octocat" ]
}
### Get Copilot seat information and settings for an organization
## Get Copilot seat information and settings for an organization
GET https://api.github.com/orgs/{{org}}/copilot/billing
Accept: application/json
### 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
### 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