You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-6Lines changed: 11 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ You can use the App to configure [CCTray Clients](https://cctray.org/clients/):
19
19
* Github Personal Access Token
20
20
*[FGPAT (recommended) or PAT](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)
21
21
* Read-Only access to Actions (Workflows, workflow runs and artifacts) required for Private repos.
22
+
* Please take into account the (Github API rate limit)[https://docs.github.com/en/rest/overview/resources-in-the-rest-api?apiVersion=2022-11-28#rate-limiting] for authentication tokens.
22
23
* Development
23
24
* Python 3.9
24
25
* pip
@@ -47,23 +48,27 @@ Once up, the App binds to port `8000` by default and should be available at: htt
47
48
48
49
## Making an HTTP request
49
50
50
-
The App accepts GET and POST requests with **two manadatory parameters**:
51
+
The App accepts GET requests with following parameters:
52
+
53
+
**manadatory parameters**
51
54
52
55
*`owner` - Organisation or User who owns the repository
53
56
*`repo` - Name of the Repository
54
57
55
-
For Example:
58
+
**optional parameter**
56
59
57
-
*GET
60
+
*`token` - If you want to use FGPAT per user to access the API, to overcome Github API rate limiting (this takes precedence over the token set in the env var).
58
61
62
+
For Example:
63
+
64
+
* Mandatory Parameters
59
65
```bash
60
66
curl -X GET http://localhost:8000?owner=<repo_owner>&repo=<repository_name>
61
67
```
62
68
63
-
* POST
64
-
69
+
* Optional Parameter
65
70
```bash
66
-
curl -d "owner=<repo_owner>&repo=<repository_name>" -X POST http://localhost:8000
71
+
curl -X GET http://localhost:8000?owner=<repo_owner>&repo=<repository_name&token=<your_token>
0 commit comments