Skip to content

Commit

Permalink
docs(docs/github&jira): added bruno files for the whole github rest-a…
Browse files Browse the repository at this point in the history
…pi & updated jira docs
  • Loading branch information
jonasfroeller committed Jan 20, 2024
1 parent 47d76f2 commit 2627d31
Show file tree
Hide file tree
Showing 935 changed files with 497,395 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: GitHub API Root
type: http
seq: 1
}

get {
url: {{baseUrl}}/
body: none
auth: none
}

headers {
Accept: application/json
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Get a global security advisory
type: http
seq: 1
}

get {
url: {{baseUrl}}/advisories/:ghsa_id
body: none
auth: none
}

headers {
Accept: application/json
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
meta {
name: List global security advisories
type: http
seq: 1
}

get {
url: {{baseUrl}}/advisories?ghsa_id=<string>&type=reviewed&cve_id=<string>&ecosystem=pub&severity=medium&cwes=<string>&is_withdrawn=<boolean>&affects=<string>&published=<string>&updated=<string>&modified=<string>&before=<string>&after=<string>&direction=desc&per_page=30&sort=published
body: none
auth: none
}

query {
ghsa_id: <string>
type: reviewed
cve_id: <string>
ecosystem: pub
severity: medium
cwes: <string>
is_withdrawn: <boolean>
affects: <string>
published: <string>
updated: <string>
modified: <string>
before: <string>
after: <string>
direction: desc
per_page: 30
sort: published
}

headers {
Accept: application/json
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Create a GitHub App from a manifest
type: http
seq: 1
}

post {
url: {{baseUrl}}/app-manifests/:code/conversions
body: none
auth: none
}

headers {
Accept: application/json
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Get the authenticated app
type: http
seq: 1
}

get {
url: {{baseUrl}}/app
body: none
auth: none
}

headers {
Accept: application/json
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Get a webhook configuration for an app
type: http
seq: 1
}

get {
url: {{baseUrl}}/app/hook/config
body: none
auth: none
}

headers {
Accept: application/json
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
meta {
name: Update a webhook configuration for an app
type: http
seq: 2
}

patch {
url: {{baseUrl}}/app/hook/config
body: json
auth: none
}

headers {
Content-Type: application/json
Accept: application/json
}

body:json {
{
"url": "<uri>",
"content_type": "<string>",
"secret": "<string>",
"insecure_ssl": "<string>"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Get a delivery for an app webhook
type: http
seq: 1
}

get {
url: {{baseUrl}}/app/hook/deliveries/:delivery_id
body: none
auth: none
}

headers {
Accept: application/json
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Redeliver a delivery for an app webhook
type: http
seq: 1
}

post {
url: {{baseUrl}}/app/hook/deliveries/:delivery_id/attempts
body: none
auth: none
}

headers {
Accept: application/json
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
meta {
name: List deliveries for an app webhook
type: http
seq: 1
}

get {
url: {{baseUrl}}/app/hook/deliveries?per_page=30&cursor=<string>&redelivery=<boolean>
body: none
auth: none
}

query {
per_page: 30
cursor: <string>
redelivery: <boolean>
}

headers {
Accept: application/json
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
meta {
name: List installation requests for the authenticated app
type: http
seq: 1
}

get {
url: {{baseUrl}}/app/installation-requests?per_page=30&page=1
body: none
auth: none
}

query {
per_page: 30
page: 1
}

headers {
Accept: application/json
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Delete an installation for the authenticated app
type: http
seq: 2
}

delete {
url: {{baseUrl}}/app/installations/:installation_id
body: none
auth: none
}

headers {
Accept: application/json
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Get an installation for the authenticated app
type: http
seq: 1
}

get {
url: {{baseUrl}}/app/installations/:installation_id
body: none
auth: none
}

headers {
Accept: application/json
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
meta {
name: Create an installation access token for an app
type: http
seq: 1
}

post {
url: {{baseUrl}}/app/installations/:installation_id/access_tokens
body: json
auth: none
}

headers {
Content-Type: application/json
Accept: application/json
}

body:json {
{
"repositories": [
"<string>",
"<string>"
],
"repository_ids": [
"<integer>",
"<integer>"
],
"permissions": {
"actions": "write",
"administration": "read",
"checks": "read",
"codespaces": "write",
"contents": "read",
"dependabot_secrets": "write",
"deployments": "read",
"environments": "read",
"issues": "read",
"metadata": "write",
"packages": "read",
"pages": "read",
"pull_requests": "read",
"repository_custom_properties": "write",
"repository_hooks": "write",
"repository_projects": "admin",
"secret_scanning_alerts": "read",
"secrets": "write",
"security_events": "read",
"single_file": "write",
"statuses": "read",
"vulnerability_alerts": "read",
"workflows": "write",
"members": "write",
"organization_administration": "read",
"organization_custom_roles": "write",
"organization_custom_org_roles": "read",
"organization_custom_properties": "admin",
"organization_copilot_seat_management": "write",
"organization_announcement_banners": "write",
"organization_events": "read",
"organization_hooks": "write",
"organization_personal_access_tokens": "write",
"organization_personal_access_token_requests": "read",
"organization_plan": "read",
"organization_projects": "write",
"organization_packages": "read",
"organization_secrets": "write",
"organization_self_hosted_runners": "write",
"organization_user_blocking": "read",
"team_discussions": "read",
"email_addresses": "read",
"followers": "read",
"git_ssh_keys": "write",
"gpg_keys": "read",
"interaction_limits": "write",
"profile": "write",
"starring": "read"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Suspend an app installation
type: http
seq: 1
}

put {
url: {{baseUrl}}/app/installations/:installation_id/suspended
body: none
auth: none
}

headers {
Accept: application/json
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Unsuspend an app installation
type: http
seq: 2
}

delete {
url: {{baseUrl}}/app/installations/:installation_id/suspended
body: none
auth: none
}

headers {
Accept: application/json
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
meta {
name: List installations for the authenticated app
type: http
seq: 1
}

get {
url: {{baseUrl}}/app/installations?per_page=30&page=1&since=<dateTime>&outdated=<string>
body: none
auth: none
}

query {
per_page: 30
page: 1
since: <dateTime>
outdated: <string>
}

headers {
Accept: application/json
}
Loading

0 comments on commit 2627d31

Please sign in to comment.