Skip to content

Commit

Permalink
docs(adapters/github): updated bruno files: added headers, added http…
Browse files Browse the repository at this point in the history
… file
  • Loading branch information
jonesisfroellerix committed Jan 15, 2024
1 parent 4367b70 commit adda741
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 0 deletions.
5 changes: 5 additions & 0 deletions adapters/docs/github/Organisation/Get an organization.bru
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ get {
auth: bearer
}

headers {
X-GitHub-Api-Version: 2022-11-28
Accept: application/vnd.github+json
}

auth:bearer {
token: {{GITHUB_API_TOKEN}}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ get {
auth: bearer
}

headers {
X-GitHub-Api-Version: 2022-11-28
Accept: application/vnd.github+json
}

auth:bearer {
token: {{GITHUB_API_TOKEN}}
}
5 changes: 5 additions & 0 deletions adapters/docs/github/Project/Card/List project cards.bru
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ get {
auth: bearer
}

headers {
X-GitHub-Api-Version: 2022-11-28
Accept: application/vnd.github+json
}

auth:bearer {
token: {{GITHUB_API_TOKEN}}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ get {
auth: bearer
}

headers {
X-GitHub-Api-Version: 2022-11-28
Accept: application/vnd.github+json
}

auth:bearer {
token: {{GITHUB_API_TOKEN}}
}
5 changes: 5 additions & 0 deletions adapters/docs/github/Project/Column/List project columns.bru
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ get {
auth: bearer
}

headers {
X-GitHub-Api-Version: 2022-11-28
Accept: application/vnd.github+json
}

auth:bearer {
token: {{GITHUB_API_TOKEN}}
}
68 changes: 68 additions & 0 deletions adapters/docs/github/requests.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# VSC-EXTENSION: https://marketplace.visualstudio.com/items?itemName=humao.rest-client

# --- ORGANISATION --- #

# INFORMATION

# @name Get an organization
# @type http
# @sequence 1

GET https://api.github.com/orgs/propromo-software
Authorization: Bearer {{$dotenv [%]GITHUB_API_TOKEN}}
X-GitHub-Api-Version: 2022-11-28
Accept: application/vnd.github+json

###

# --- PROJECT --- #

# BOARD

# @name List organization projects
# @type http
# @sequence 1

GET https://api.github.com/orgs/propromo-software/projects
Authorization: Bearer {{$dotenv [%]GITHUB_API_TOKEN}}
X-GitHub-Api-Version: 2022-11-28
Accept: application/vnd.github+json

###

# CARD

# @name List project cards
# @type http
# @sequence 1

GET https://api.github.com/projects/columns/2/cards
Authorization: Bearer {{$dotenv [%]GITHUB_API_TOKEN}}
X-GitHub-Api-Version: 2022-11-28
Accept: application/vnd.github+json

###

# COLLABORATOR

# @name List project collaborators
# @type http
# @sequence 1

GET https://api.github.com/projects/1/collaborators
Authorization: Bearer {{$dotenv [%]GITHUB_API_TOKEN}}
X-GitHub-Api-Version: 2022-11-28
Accept: application/vnd.github+json

###

# COLUMN

# @name List project columns
# @type http
# @sequence 1

GET https://api.github.com/projects/1/columns
Authorization: Bearer {{$dotenv [%]GITHUB_API_TOKEN}}
X-GitHub-Api-Version: 2022-11-28
Accept: application/vnd.github+json

0 comments on commit adda741

Please sign in to comment.