Excludes docs/ from deno fmt and deno lint so the Bruno files don't break formatting and lint checks in CI.
85 lines
1.0 KiB
Plaintext
85 lines
1.0 KiB
Plaintext
meta {
|
|
name: GitHub OAuth proxy
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
get {
|
|
url: {{baseUrl}}/auth/github
|
|
body: none
|
|
auth: inherit
|
|
}
|
|
|
|
params:query {
|
|
code:
|
|
~type:
|
|
}
|
|
|
|
example {
|
|
name: 200 Response
|
|
description: GitHub access-token response (shape determined by GitHub).
|
|
|
|
request: {
|
|
url: {{baseUrl}}/auth/github
|
|
method: GET
|
|
mode: none
|
|
params:query: {
|
|
code:
|
|
~type:
|
|
}
|
|
}
|
|
|
|
response: {
|
|
headers: {
|
|
Content-Type: application/json
|
|
}
|
|
|
|
status: {
|
|
code: 200
|
|
text: OK
|
|
}
|
|
|
|
body: {
|
|
type: json
|
|
content: '''
|
|
{}
|
|
'''
|
|
}
|
|
}
|
|
}
|
|
|
|
example {
|
|
name: 400 Response
|
|
description: Malformed input.
|
|
|
|
request: {
|
|
url: {{baseUrl}}/auth/github
|
|
method: GET
|
|
mode: none
|
|
params:query: {
|
|
code:
|
|
~type:
|
|
}
|
|
}
|
|
|
|
response: {
|
|
headers: {
|
|
Content-Type: application/json
|
|
}
|
|
|
|
status: {
|
|
code: 400
|
|
text: Bad Request
|
|
}
|
|
|
|
body: {
|
|
type: json
|
|
content: '''
|
|
{
|
|
"error": ""
|
|
}
|
|
'''
|
|
}
|
|
}
|
|
}
|