api: record what real gh sends and check it against what Ghost servesdcd2fb6a day ago44 lines · 1.3 KB | 1 | [ |
| 2 | { |
| 3 | "command": "gh repo create <host>/<login>/gh-made --private --description from gh", |
| 4 | "requests": |
| 5 | { |
| 6 | "method": |
| 7 | "path": |
| 8 | "query": |
| 9 | "headers": |
| 10 | "accept": |
| 11 | "content-type": |
| 12 | "x-github-api-version": |
| 13 | }, |
| 14 | "body": |
| 15 | "status": |
| 16 | }, |
| 17 | { |
| 18 | "method": |
| 19 | "path": |
| 20 | "query": |
| 21 | "headers": |
| 22 | "accept": |
| 23 | "content-type": |
| 24 | "graphql-features": |
| 25 | "x-github-api-version": |
| 26 | }, |
| 27 | "body": |
| 28 | "query": |
| 29 | "variables": |
| 30 | "input": |
| 31 | "name": |
| 32 | "description": |
| 33 | "visibility": |
| 34 | "ownerId": |
| 35 | "hasIssuesEnabled": |
| 36 | "hasWikiEnabled": |
| 37 | } |
| 38 | } |
| 39 | }, |
| 40 | "status": |
| 41 | } |
| 42 | ] |
| 43 | } |
| 44 | ] |
[
"
GET
"
,
"
/api/v3/users/<login>
"
,
{}
,
{
"
application/json
"
,
"
application/json; charset=utf-8
"
,
"
2022-11-28
"
null
,
200
"
POST
"
,
"
/api/graphql
"
,
{}
,
{
"
application/json
"
,
"
application/json; charset=utf-8
"
,
"
merge_queue
"
,
"
2022-11-28
"
{
"
\n\t
mutation RepositoryCreate($input: CreateRepositoryInput!) {
\n\t\t
createRepository(input: $input) {
\n\t\t\t
repository {
\n\t\t\t\t
id
\n\t\t\t\t
name
\n\t\t\t\t
owner { login }
\n\t\t\t\t
url
\n\t\t\t
}
\n\t\t
}
\n\t
}
\n\t
"
,
{
{
"
gh-made
"
,
"
from gh
"
,
"
PRIVATE
"
,
"
U_<id>
"
,
true
,
true
200