Crates.io | gitea_rust_sdk |
lib.rs | gitea_rust_sdk |
version | 0.1.3 |
source | src |
created_at | 2022-10-09 17:59:46.286338 |
updated_at | 2022-10-27 18:53:55.884623 |
description | An unofficial rust-sdk for gitea |
homepage | |
repository | https://codeberg.org/schorsch/gitea_rust_sdk |
max_upload_size | |
id | 684106 |
size | 79,289 |
An unofficial rust-sdk for gitea
For further documentation please have a look at https://codeberg.org/api/swagger or the documentation of your gitea instance.
GET /admin/cron
- List cron tasksPOST /admin/cron/{task}
- Run cron taskGET /admin/orgs
- List all organisationsGET /admin/unadopted
- List unadopted organisationsPOST /admin/unadopted/{owner}/{repo}
- Adopt unadopted files as a repositoryDELETE /admin/unadopted/{owner}/{repo}
- Delete unadopted filesGET /admin/users
- List all usersPOST /admin/users
- Create a userDELETE /admin/users/{username}
- Delete a userPATCH /admin/users/{username}
- Edit an existing userPOST /admin/users/{username}/keys
- Add a public key on behalf of a userDELETE /admin/users/{usernam}/keys/{id}
- Delete a user's public keyPOST /admin/users/{username}/orgs
- Create an organisationPOST /admin/users/{username}/repos
- Create a repository on behalf of a userPOST /markdown
- Render a markdown document as HTMLPOST /markdown/raw
- Render raw markdown as HTMLGET /nodeinfo
- Returns the nodeinfo of the Gitea applicationGET /signing-key.gpg
- Get default signing-key.gpgGET /version
- Returs the version of the Gitea applicationGET /notifications
- List users's notification threadsPUT /notifications
- Mark notification threads as read, pinned or unreadGET /notifications/new
- Check if unread notifications existGET /notifications/threads/{id}
- Get notification thread by IDPATCH /notifications/threads/{id}
- Mark notification thread as read by IDGET /repos/{owner}/{repo}/notifications
- List users's notification threads on a specific repoPUT /repos/{owner}/{repo}/notifications
- Mark notification threads as read, pinned or unread on a specific repoGET /orgs
- Get list of organisationsPOST /orgs
- Create an organisationGET /orgs/{org}
- Get an organisationDELETE /orgs/{org}
- Delete an organisationPATCH /orgs/{org}
- Edit an organisationGET /orgs/{org}/hooks
- List organisation's webhooksPOST /orgs/{org}/hooks
- Create a hookGET /orgs/{org}/hooks/{id}
- Get a hookDELETE /orgs/{org}/hooks/{id}
- Delete a hookPATCH /orgs/{org}/hooks/{id}
- Update a hookGET /orgs/{org}/labels
- List an organisation's labelsPOST /orgs/{org}/labels
- Create a label for an organisationGET /orgs/{org}/labels/{id}
- Get a single labelDELETE /orgs/{org}/labels/{id}
- Delete a labelPATCH /orgs/{org}/labels/{id}
- Update a labelGET /orgs/{org}/members
- List an organisation's membersGET /orgs/{org}/members/{username}
- Check if a user is a member of an organisationDELETE /orgs/{org}/members/{username}
- Remove a member from an organisationGET /orgs/{org}/public_members
- List an organisation's public membersGET /orgs/{org}/public_members/{username}
- Check if a user is a public member of an organisationPUT /orgs/{org}/public_members/{username}
- Publicize a user's membershipDELETE /orgs/{org}/public_members/{username}
- Conceal a user's membershipGET /orgs/{org}/repos
- List an organisation's reposPOST /orgs/{org}/repos
- Create a repository in an organisationGET /orgs/{org}/teams
- List an organisation's teamsPOST /orgs/{org}/teams
- Create a teamGET /orgs/{org}/teams/search
- Search for teams within an organisationGET /teams/{id}
- Get a teamDELETE /teams/{id}
- Delete a teamPATCH /teams/{id}
- Edit a teamGET /teams/{id}/members
- List a team's membersGET /teams/{id}/members/{username}
- List a particular member of a teamPUT /teams/{id}/members/{username}
- Add a team memberDELETE /teams/{id}/members/{username}
- Remove a team memberGET /teams/{id}/repos
- List a team's reposGET /teams/{id}/repos/{org}/{repo}
- List a particular repo of a teamPUT /teams/{id}/repos/{org}/{repo}
- Add a repository to a teamDELETE /teams/{id}/repos/{org}/{repo}
- Remove a repository from a teamGET /users/orgs
- List the current user's organisationsGET /users/{username}/orgs
- List a user's organisationsGET /users/{username}/orgs/{org}/permissions
- Get users permissions in organisationGET /packages/{owner}
- Get all packages of an ownerGET /packages/{owner}/{type}/{name}/{version}
- Gets a packageDELETE /packages/{owner}/{type}/{name}/{version}
- Delete a packageGET /packages/{owner}/{type}/{name}/{version}/files
- Gets all files of a packageGET /repos/issues/search
- Search for issues across the repository that the user has access toGET /repos/{owner}/{repo}/issues
- List a repository's issuesPOST /repos/{owner}/{repo}/issues
- Create an issue. If using deadline noly the date will be taken into account, and time of day ignoredGET /repos/{owner}/{repo}/issues/comments
- List all comments in a repositoryGET /repos/{owner}/{repo}/issues/comments/{id}
- Get a commentDELETE /repos/{owner}/{repo}/issues/comments/{id}
- Delete a commentPATCH /repos/{owner}/{repo}/issues/comments/{id}
- Edit a commentGET /repos/{owner}/{repo}/issues/commets/{id}/reactions
- Get a list of reactions from a comment of an issuePOST /repos/{owner}/{repo}/issues/comments/{id}/reactions
- Add a reaction to a comment of an issueDELETE /repos/{owner}/{repo}/issues/comments/{id}/reactions
- Remove a reaction from a comment of an issueGET /repos/{owner}/{repo}/issues/{index}
- Get an issueDELETE /repos/{owner}/{repo}/issues/{index}
- Delete an issuePATCH /repos/{owner}/{repo}/issues/{index}
- Edit an issue. If using deadline only the date will be taken into accound, and time of day ignored.GET /repos/{owner}/{repo}/issues/{index}/comments
- List all comments on an issuePOST /repos/{owner}/{repo}/issues/{index}/comments
- Add a comment to an issuePOST /repos/{owner}/{repo}/issues/{index}/deadline
- Set an issue deadline. If set to null, the deadline is deleted. If using deadline only the date will be taken into account, and time of day ignored.GET /repos/{owner}/{repo}/issues/{index}/labels
- Get an issue's labelsPUT /repos/{owner}/{repo}/issues/{index}/labels
- Replace an issue's labelsPOST /repos/{owner}/{repo}/issues/{index}/labels
- Add a label to an issueDELETE /repos/{owner}/{repo}/issues/{index}/labels
- Remove all labels from an issueDELETE /repos/{owner}/{repo}/issues/{index}/labels/{id}
- Remove a label from an issueGET /repos/{owner}/{repo}/issues/{index}/reactions
- Get a list of reactions of an issuePOST /repos/{owner}/{repo}/issues/{index}/reactions
- Add a reaction to an issueDELETE /repos/{owner}/{repo}/issues/{index}/reactions
- Remove a reaction from an issueDELETE /repos/{owner}/{repo}/issues/{index}/stopwatch/delete
- Delete an issue's existing stopwatchPOST /repos/{owner}/{repo}/issues/{index}/stopwatch/start
- Start stopwatch of an issuePOST /repos/{owner}/{repo}/issues/{index}/stopwatch/stop
- Stop an issue's existing stopwatchGET /repos/{owner}/{repo}/issues/{index}/subscriptions
- Get users who subscribed to an issueGET /repos/{owner}/{repo}/issues/{index}/subscriptions/check
- Check if a user is subscribed to an issuePUT /repos/{owner}/{repo}/issues/{index}/subscriptions/{user}
- Subscribe user to issueDELETE /repos/{owner}/{repo}/issues/{index}/subscriptions/{user}
- Unsubscribe user from issueGET /repos/{owner}/{repo}/issues/{index}/timeline
- List all comments and events on an issueGET /repos/{owner}/{repo}/issues/{index}/times
- List an issue's tracked timesPOST /repos/{owner}/{repo}/issues/{index}/times
- Add tracked time to an issueDELETE /repos/{owner}/{repo}/issues/{index}/times
- Reset a tracked time of an issueDELETE /repos/{owner}/{repo}/issues/{index}/times/{id}
- Delete specific tracked timeGET /repos/{owner}/{repo}/labels
- Get all of a repository's labelsPOST /repos/{owner}/{repo}/labels/{id}
- Create a labelGET /repos/{owner}/{repo}/labels/{id}
- Get a single labelDELETE /repos/{owner}/{repo}/labels/{id}
- Delete a labelPATCH /repos/{owner}/{repo}/labels/{id}
- Update a labelGET /repos/{owner}/{repo}/milestones
- Get all of a repository's opened milestonesPOST /repos/{owner}/{repo}/milestones
- Create a milestoneGET /repos/{owner}/{repo}/milestones/{id}
- Get a milestoneDELETE /repos/{owner}/{repo}/milestones/{id}
- Delete a milestonePATCH /repos/{owner}/{repo}/milestones/{id}
- Update a milestonePOST /repos/migrate
- Migrate a remote git repositoryGET /repos/search
- Search for repositoriesGET /repos/{owner}/{repo}
- Get a repositoryDELETE /repos/{owner}/{repo}
- Delete a repositoryPATCH /repos/{owner}/{repo}
- Edit a repository's properties. Only fields that are set will be changedGET /repos/{owner}/{repo}/archives/{archive}
- Get an archive of a repositoryGET /repos/{owner}/{repo}/assignees
- Return all users that have write access and can be assigned to issuesGET /repos/{owner}/{repo}/branch_protections
- List branch protections for a repositoryPOST /repos/{owner}/{repo}/branch_protections
- Create branch protections for a repositoryGET /repos/{owner}/{repo}/branch_protections/{name}
- Get a specific branch protection for the repositoryDELETE /repos/{owner}/{repo}/branch_protections/{name}
- Delete a specific branch protection for the repositoryPATCH /repos/{owner}/{repo}/branch_protections/{name}
- Edit branch protections for a repository. Only fields that are set will be changedGET /repos/{owner}/{repo}/branches/{branch}
- Retrieve a specific branch from a repository, including its effective branch protectionDELETE /repos/{owner}/{repo}/branches/{branch}
- Delete a specifit branch from a repositoryGET /repos/{owner}/{repo}/collaborators
- List a repository's collaboratorsGET /repos/{owner}/{repo}/collaborators/{collaborator}
- Check if a user is a collaborator of a repositoryPUT /repos/{owner}/{repo}/collaborators/{collaborator}
- Add a collaborator to a repositoryDELETE /repos/{owner}/{repo}/collaborators/{collaborator}
- Delete a collaborator from a repositoryGET /repos/{owner}/{repo}/collaborators/{collaborator}/permissions
- Get repository permissions for a userGET /repos/{owner}/{repo}/commits
- Get a list of all commits from a repositoryGET /repos/{owner}/{repo}/commits/{ref}/status
- Get a commit's combined status, by branch/tag/commit referenceGET /repos/{owner}/{repo}/commits/{ref}/statuses
- Get a commit's statuses, by branch/tag/commit referenceGET /repos/{owner}/{repo}/contents
- Gets the metedata of all the entries of the root dirGET /repos/{owner}/{repo}/contents/{filepath}
- Gets the metadata and contents (if a file) of an an entry in a repository, or a list of entries if a dirPUT /repos/{owner}/{repo}/contents/{filepath}
- Update a file in a repositoryPOST /repos/{owner}/{repo}/contents/{filepath}
- Create a file in a repositoryDELETE /repos/{owner}/{repo}/contents/{filepath}
- Delete a file in a repositoryPOST /repos/{owner}/{repo}/diffpatch
- Apply diff patch to repositoryGET /repos/{owner}/{repo}/editorconfig/{filepath}
- Get the EditorConfig definitions of a file in a repositoryGET /repos/{owner}/{repo}/forks
- List a repository's forksPOST /repos/{owner}/{repo}/forks
- Fork a repositoryGET /repos/{owner}/{repo}/git/blobs/{sha}
- Gets the blob of a repositoryGET /repos/{owner}/{repo}/git/commits/{sha}
- Get a single commit from a repositoryGET /repos/{owner}/{repo}/git/commits/{sha}.{diffType}
- Gets a commit's diff or patchGET /repos/{owner}/{repo}/git/notes/{sha}
- Get a note corresponding to a single commit from a repositoryGET /repos/{owner}/{repo}/git/refs
- Get specified ref or filtered repository's refsGET /repos/{owner}/{repo}/git/refs/{ref}
- Get specified ref or filtered repository's refsGET /repos/{owner}/{repo}/git/tags/{sha}
- Gets the tag object of an annotated tag (not lightweight tags)GET /repos/{owner}/{repo}/git/trees/{sha}
- Gets the tree of a repositoryGET /repos/{owner}/{repo}/hooks
- List the hooks in a repositoryPOST /repos/{owner}/{repo}/hooks
- Create a hookGET /repos/{owner}/{repo}/hooks/git
- List the Git hooks in a repositoryGET /repos/{owner}/{repo}/hooks/git/{id}
- Get a Git hookDELETE /repos/{owner}/{repo}/hooks/git/{id}
- Delete a Git hook in a repositoryPATCH /repos/{owner}/{repo}/hooks/git/{id}
- Update a Git hook in a repositoryGET /repos/{owner}/{repo}/hooks/{id}
- Get a hookDELETE /repos/{owner}/{repo}/hooks/{id}
- Delete a hook in a repositoryPATCH /repos/{owner}/{repo}/hooks/{id}
- Edit a hook in a repositoryPOST /repos/{owner}/{repo}/hooks/{id}/tests
- Test a push webhookGET /repos/{owner}/{repo}/issue_templates
- Get available issue templates for a repositoryGET /repos/{owner}/{repo}/keys
- List a repository's keysPOST /repos/{owner}/{repo}/keys
- Add a key to a repositoryGET /repos/{owner}/{repo}/keys/{id}
- Get a repository's key by IDDELETE /repos/{owner}/{repo}/keys/{id}
- Delete a key from a repositoryGET /repos/{owner}/{repo}/languages
- Get languages and number of bytes of code writtenGET /repos/{owner}/{repo}/media/{filepath}
- Get a file or it's LFS object from a repositoryPOST /repos/{owner}/{repo}/mirror-sync
- Sync a mirrored repositoryGET /repos/{owner}/{repo}/pulls
- List a repo's pull requestsPOST /repos/{owner}/{repo}/pulls
- Create a pull requestGET /repos/{owner}/{repo}/pulls/{index}
- Get a pull requestPATCH /repos/{owner}/{repo}/pulls/{index}
- Update a pull request. If using deadline only the date will be taken into account, and time of day ignoredGET /repos/{owner}/{repo}/pulls/{index}.{diffType}
- Get a pull request diff or patchGET /repos/{owner}/{repo}/pulls/{index}/commits
- Get commits for a pull requestGET /repos/{owner}/{repo}/pulls/{index}/merge
- Check if a pull request has been mergedPOST /repos/{owner}/{repo}/pulls/{index}/merge
- Merge a pull requestDELETE /repos/{owner}/{repo}/pulls/{index}/merge
- Cancel the scheduled auto merge for the given pull requestPOST /repos/{owner}/{repo}/pulls/{index}/requested_reviewers
- Create review requests for a pull requestDELETE /repos/{owner}/{repo}/pulls/{index}/requested_reviewers
- Cancel review requests for a pull requestGET /repos/{owner}/{repo}/pulls/{index}/reviews
- List all reviews for a pull requestPOST /repos/{owner}/{repo}/pulls/{index}/reviews
- Create a review to a pull requestGET /repos/{owner}/{repo}/pulls/{index}/reviews/{id}
- Get a specific review for a pull requestPOST /repos/{owner}/{repo}/pulls/{index}/reviews/{id}
- Submit a pending review to a pull requestDELETE /repos/{owner}/{repo}/pulls/{index}/reviews/{id}
- Delete a specific review from a pull requestGET /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/comments
- Get the a specific review for a pull requestPOST /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/dismissals
- Dismiss a review for a pull requestPOST /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/indismissals
- Cancel to dismiss a review for a pull requestPOST /repos/{owner}/{repo}/pulls/{index}/update
- Merge PR's baseBranch into headBranchGET /repos/{owner}/{repo}/raw/{filepath}
- Get a file from a repositoryGET /repos/{owner}/{repo}/releases
- List a repo's releasesPOST /repos/{owner}/{repo}/releases
- Create a releaseGET /repos/{owner}/{repo}/releases/tags/{tag}
- Get a release by tag nameDELETE /repos/{owner}/{repo}/release/tags/{tag}
- Delete a release by tag nameGET /repos/{owner}/{repo}/releses/{id}
- Get a releaseDELETE /repos/{owner}/{repo}/releases/{id}
- Delete a releasePATCH /repos/{owner}/{repo}/releases/{id}
- Update a releaseGET /repos/{owner}/{repo}/releases/{id}/assets
- List release's attachmentsPOST /repos/{owner}/{repo}/releases/{id}/assets
- Create a release attachmentGET /repos/{owner}/{repo}/releases/{id}/assets/{attechment_id}
- Get a realese attachmentDELETE /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id}
- Delete a release attachmentPATCH /repos/{owner}/{repo}/releases/{id}/assets/{attechment_id}
- Update a release attachmentGET /repos/{owner}/{repo}/reviewers
- List all users that can be requested to review in this repoGET /repos/{owner}/{repo}/signing-key.gpg
- Get signing-key.gpg for the given repositoryGET /repos/{owner}/{repo}/stargazers
- List a repo's stargazersGET /repos/{owner}/{repo}/statuses/{sha}
- Get a commit's statusesPOST /repos/{owner}/{repo}/statuses/{sha}
- Create a commit statusGET /repos/{owner}/{repo}/subscribers
- List a repo's watchersGET /repos/{owner}/{repo}/subscription
- Check if the current user is watching a repoPUT /repos/{owner}/{repo}/subscription
- Watch a repoDELETE /repos/{owner}/{repo}/subscription
- Unwatch a repoGET /repos/{owner}/{repo}/tags
- List a repository's tagsPOST /repos/{owner}/{repo}/tags
- Create a new git tag in a repositoryGET /repos/{owner}/{repo}/tags/{tag}
- Get the tag of a repository by tag nameDELETE /repos/{owner}/{repo}/tags/{tag}
- Delete a repository's tag by nameGET /repos/{owner}/{repo}/teams
- List a repository's teamsGET /repos/{owner}/{repo}/teams/{team}
- Check if a team is assigned to a repositoryPUT /repos/{owner}/{repo}/teams/{team}
- Add a team to a repositoryDELETE /repos/{owner}/{repo}/teams/{team}
- Delete a team from a repositoryGET /repos/{owner}/{repo}/times
- List a repo's tracked timesGET /repos/{owner}/{repo}/topics
- Get a list of topics that a repository hasPUT /repos/{owner}/{repo}/topics
- Replace list of topics for a repositoryPUT /repos/{owner}/{repo}/topics/{topic}
- Add a topic to a repositoryDELETE /repos/{owner}/{repo}/topics/{topic}
- Delete a topic from a repositoryPOST /repos/{owner}/{repo}/transfer
- Tranfer a repo ownershipPOST /repos/{owner}/{repo}/transfer/accept
- Accept a repo transferPOST /repos/{owner}/{repo}/transfer/reject
- Reject a repo transferPOST /repos/{owner}/{repo}/wiki/new
- Create a wiki pageGET /repos/{owner}/{repo}/wiki/page/{pageName}
- Get a wiki pageDELETE /repos/{owner}/{repo}/wiki/page/{pageName}
- Delete a wiki pagePATCH /repos/{owner}/{repo}/wiki/page/{pageName}
- Edit a wiki pageGET /repos/{owner}/{repo}/wiki/pages
- Get all wiki pagesGET /repos/{owner}/{repo}/wiki/revisions/{pageName}
- Get revisions of a wiki pagePOST /repos/template_owner}/{template_repo}/generate
- Create a repository using a templateGET /repositories/{id}
- Get a repository by idGET /topics/search
- Search topics via keywordPOST /user/repos
- Create a repositoryGET /settings/api
- Get instance's global settings for apiGET /settnigs/attachment
- Get instance's global settings for AttachmentGET /settings/repository
- Get instance's global settings for repositoriesGET /settings/ui
- Get instance's global settings for uiGET /user
- Get the authenticated userGET /user/applications/oauth2
- List the authenticated user's OAuth2 applicationsPOST /user/applications/oauth2
- Creates a new OAuth2 applicationGET /user/applications/oauth2/{id}
- Get an OAuth2 applicationDELETE /user/applications/oauth2/{id}
- Delete an OAuth2 applicationPATCH /user/applications/oauth2/{id}
- Update an OAuth2 application, this includes regenerating the client secretGET /user/emails
- List the authenticated user's email addressesPOST /user/emails
- Add email addressesDELETE /user/emails
- Delete email addressesGET /user/followers
- List the authenticated user's followersGET /user/following
- List the users that the authenticated user is followingGET /user/following/{username}
- Check whether a user is followed by the authenticated userPUT /user/following/{username}
- Follow a userDELETE /user/following/{username}
- Unfollow a userGET /user/gpg_key_token
- Get a token to verifyPOST /user/gpg_key_verify
- Verify a GPG keyGET /user/gpg_keys
- List the authenticated user's GPG keysPOST /user/gpg_keys
- Create a GPG keyGET /user/gpg_keys/{id}
- Get a GPG keyDELETE /user/gpg_keys/{id}
- Remove a GPG keyGET /user/keys
- List the authenticated user's public keysPOST /user/keys
- Create a public keyGET /user/keys/{id}
- Get a public keyDELETE /user/keys/{id}
- Delete a public keyGET /user/repos
- List the repos that the authenticated user ownsPOST /user/repos
- Create a repositoryGET /user/settings
- Get user settingsPATCH /user/settings
- Update user settingsGET /user/starred
- List the repos that the authenticated user has starredGET /user/starred/{owner}/{repo}
- Check whether the authenticated user is starring a repoPUT /user/starred/{owner}/{repo}
- Star a given repoDELETE /user/starred/{owner}/{repo}
- Unstar a gives repo Unstar a gives repoGET /user/stopwatches
- Get a list of all existing stopwatchesGET /user/subscriptions
- List repositories watched by the authenticated userGET /user/teams
- List all the teams a user belongs toGET /user/times
- List the current user's tracked timesGET /user/search
- Search for a userGET /users/{username}
- Get a userGET /users/{username}/followers
- List the given user's followersGET /users/{username}/following
- List the users that the given user is followingGET /users/{username}/following/{target}
- Check if one user is following another userGET /users/{username}/gpg_keys
- List the given user's GPG keysGET /users/{username}/heatmap
- Get a user's heatmapGET /users/{username}/keys
- List the given user's public keysGET /users/{username}/repos
- List the repos owned by the given userGET /users/{username}/starred
- List the repos that the given user has starredGET /users/{username}/subscriptions
- List the repositories watched by a userGET /users/{username}/tokens
- List the authenticated user's access tokensPOST /users/{username}/tokens
- Create an access tokenDELETE /users/{username}/tokens/{token}
- Delete an access tokenIn order to run all unit tests, you would first have to provide your gitea api key and your gitea instance url. To do so please copy them into the appropriate .txt
files in the rsc/
folder.
Afterwards you can safefly run cargo test
. If that one fails try running cargo test -- --nocapture
to see if you have entered the token and url correctly.