-
Create Repository
- URL:
/repos
- Method:
POST
- Description: Creates a new repository for the authenticated user.
- Request Body:
{ "name": "new-repo", "description": "A newly created repository.", "private": false }
- Response: Details of the newly created repository.
- URL:
-
Delete Repository
- URL:
/repos/{owner}/{repo}
- Method:
DELETE
- Description: Deletes the specified repository for the authenticated user.
- Response: Confirmation of successful deletion.
- URL:
-
Pull Requests
- URL:
/repos/{owner}/{repo}/pulls
- Method:
GET
- Description: Retrieves the list of pull requests for the specified repository.
- Response: List of pull requests with details.
- URL:
-
Push File to Repository
- URL:
/repos/{owner}/{repo}/contents/{path}
- Method:
PUT
- Description: Uploads a file to the specified path in the repository and commits the change.
- Request Body:
{ "message": "Commit message", "content": "Base64-encoded content", "branch": "branch-name" }
- Response: Details of the pushed file and commit.
- URL:
For detailed usage and endpoint descriptions, please refer to the Documentation.
To run the server, execute the following command:
deno run --allow-net index.ts