VOOZH about

URL: https://www.nuget.org/packages/Gitea.Net.API/

⇱ NuGet Gallery | Gitea.Net.API 25.8.18




👁 Image
Gitea.Net.API 25.8.18

dotnet add package Gitea.Net.API --version 25.8.18
 
 
NuGet\Install-Package Gitea.Net.API -Version 25.8.18
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Gitea.Net.API" Version="25.8.18" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Gitea.Net.API" Version="25.8.18" />
 
Directory.Packages.props
<PackageReference Include="Gitea.Net.API" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Gitea.Net.API --version 25.8.18
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Gitea.Net.API, 25.8.18"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Gitea.Net.API@25.8.18
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Gitea.Net.API&version=25.8.18
 
Install as a Cake Addin
#tool nuget:?package=Gitea.Net.API&version=25.8.18
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Gitea.Net.API - the C# library for the Gitea API

👁 Nuget

This documentation describes the Gitea API.

This C# SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.22.0
  • SDK version: 1.0.0
  • Generator version: 7.6.0
  • Build package: org.openapitools.codegen.languages.CSharpClientCodegen

<a id="frameworks-supported"></a>

Frameworks supported

<a id="dependencies"></a>

Dependencies

The DLLs included in the package may not be the latest version. We recommend using NuGet to obtain the latest version of the packages:

Install-Package RestSharp
Install-Package Newtonsoft.Json
Install-Package JsonSubTypes
Install-Package System.ComponentModel.Annotations

NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742. NOTE: RestSharp for .Net Core creates a new socket for each api call, which can lead to a socket exhaustion problem. See RestSharp#1406.

<a id="installation"></a>

Installation

Run the following command to generate the DLL

  • [Mac/Linux] /bin/sh build.sh
  • [Windows] build.bat

Then include the DLL (under the bin folder) in the C# project, and use the namespaces:

using Gitea.Net.Api;
using Gitea.Net.Client;
using Gitea.Net.Model;

<a id="packaging"></a>

Packaging

A .nuspec is included with the project. You can follow the Nuget quickstart to create and publish packages.

This .nuspec uses placeholders from the .csproj, so build the .csproj directly:

nuget pack -Build -OutputDirectory out Gitea.Net.csproj

Then, publish to a local feed or other host and consume the new package via Nuget as usual.

<a id="usage"></a>

Usage

To use the API client with a HTTP proxy, setup a System.Net.WebProxy

Configuration c = new Configuration();
System.Net.WebProxy webProxy = new System.Net.WebProxy("http://myProxyUrl:80/");
webProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
c.Proxy = webProxy;

<a id="getting-started"></a>

Getting Started

using System.Collections.Generic;
using System.Diagnostics;
using Gitea.Net.Api;
using Gitea.Net.Client;
using Gitea.Net.Model;

namespace Example
{
 public class Example
 {
 public static void Main()
 {

 Configuration config = new Configuration();
 config.BasePath = "/api/v1";
 // Configure API key authorization: TOTPHeader
 config.ApiKey.Add("X-GITEA-OTP", "YOUR_API_KEY");
 // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
 // config.ApiKeyPrefix.Add("X-GITEA-OTP", "Bearer");
 // Configure API key authorization: AuthorizationHeaderToken
 config.ApiKey.Add("Authorization", "YOUR_API_KEY");
 // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
 // config.ApiKeyPrefix.Add("Authorization", "Bearer");
 // Configure API key authorization: SudoHeader
 config.ApiKey.Add("Sudo", "YOUR_API_KEY");
 // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
 // config.ApiKeyPrefix.Add("Sudo", "Bearer");
 // Configure HTTP basic authorization: BasicAuth
 config.Username = "YOUR_USERNAME";
 config.Password = "YOUR_PASSWORD";
 // Configure API key authorization: AccessToken
 config.ApiKey.Add("access_token", "YOUR_API_KEY");
 // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
 // config.ApiKeyPrefix.Add("access_token", "Bearer");
 // Configure API key authorization: SudoParam
 config.ApiKey.Add("sudo", "YOUR_API_KEY");
 // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
 // config.ApiKeyPrefix.Add("sudo", "Bearer");
 // Configure API key authorization: Token
 config.ApiKey.Add("token", "YOUR_API_KEY");
 // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
 // config.ApiKeyPrefix.Add("token", "Bearer");

 var apiInstance = new ActivitypubApi(config);
 var userId = 56; // int | user ID of the user

 try
 {
 // Returns the Person actor for a user
 ActivityPub result = apiInstance.ActivitypubPerson(userId);
 Debug.WriteLine(result);
 }
 catch (ApiException e)
 {
 Debug.Print("Exception when calling ActivitypubApi.ActivitypubPerson: " + e.Message );
 Debug.Print("Status Code: "+ e.ErrorCode);
 Debug.Print(e.StackTrace);
 }

 }
 }
}

<a id="documentation-for-api-endpoints"></a>

Documentation for API Endpoints

All URIs are relative to /api/v1

Class Method HTTP request Description
ActivitypubApi GET /activitypub/user-id/{user-id} Returns the Person actor for a user
ActivitypubApi POST /activitypub/user-id/{user-id}/inbox Send to the inbox
AdminApi POST /admin/users/{username}/badges Add a badge to a user
AdminApi POST /admin/unadopted/{owner}/{repo} Adopt unadopted files as a repository
AdminApi POST /admin/hooks Create a hook
AdminApi POST /admin/users/{username}/orgs Create an organization
AdminApi POST /admin/users/{username}/keys Add a public key on behalf of a user
AdminApi POST /admin/users/{username}/repos Create a repository on behalf of a user
AdminApi POST /admin/users Create a user
AdminApi GET /admin/cron List cron tasks
AdminApi POST /admin/cron/{task} Run cron task
AdminApi DELETE /admin/hooks/{id} Delete a hook
AdminApi DELETE /admin/unadopted/{owner}/{repo} Delete unadopted files
AdminApi DELETE /admin/users/{username} Delete a user
AdminApi DELETE /admin/users/{username}/badges Remove a badge from a user
AdminApi DELETE /admin/users/{username}/keys/{id} Delete a user's public key
AdminApi PATCH /admin/hooks/{id} Update a hook
AdminApi PATCH /admin/users/{username} Edit an existing user
AdminApi GET /admin/emails List all emails
AdminApi GET /admin/orgs List all organizations
AdminApi GET /admin/hooks/{id} Get a hook
AdminApi GET /admin/runners/registration-token Get an global actions runner registration token
AdminApi GET /admin/hooks List system's webhooks
AdminApi GET /admin/users/{username}/badges List a user's badges
AdminApi POST /admin/users/{username}/rename Rename a user
AdminApi GET /admin/emails/search Search all emails
AdminApi GET /admin/users Search users according filter conditions
AdminApi GET /admin/unadopted List unadopted repositories
IssueApi POST /repos/{owner}/{repo}/issues/{index}/labels Add a label to an issue
IssueApi PUT /repos/{owner}/{repo}/issues/{index}/subscriptions/{user} Subscribe user to issue
IssueApi POST /repos/{owner}/{repo}/issues/{index}/times Add tracked time to a issue
IssueApi GET /repos/{owner}/{repo}/issues/{index}/subscriptions/check Check if user is subscribed to an issue
IssueApi DELETE /repos/{owner}/{repo}/issues/{index}/labels Remove all labels from an issue
IssueApi POST /repos/{owner}/{repo}/issues/{index}/comments Add a comment to an issue
IssueApi POST /repos/{owner}/{repo}/issues Create an issue. If using deadline only the date will be taken into account, and time of day ignored.
IssueApi POST /repos/{owner}/{repo}/issues/{index}/assets Create an issue attachment
IssueApi POST /repos/{owner}/{repo}/issues/{index}/blocks Block the issue given in the body by the issue in path
IssueApi POST /repos/{owner}/{repo}/issues/comments/{id}/assets Create a comment attachment
IssueApi POST /repos/{owner}/{repo}/issues/{index}/dependencies Make the issue in the url depend on the issue in the form.
IssueApi POST /repos/{owner}/{repo}/labels Create a label
IssueApi POST /repos/{owner}/{repo}/milestones Create a milestone
IssueApi DELETE /repos/{owner}/{repo}/issues/{index} Delete an issue
IssueApi DELETE /repos/{owner}/{repo}/issues/comments/{id} Delete a comment
IssueApi DELETE /repos/{owner}/{repo}/issues/{index}/comments/{id} Delete a comment
IssueApi DELETE /repos/{owner}/{repo}/issues/comments/{id}/reactions Remove a reaction from a comment of an issue
IssueApi DELETE /repos/{owner}/{repo}/issues/{index}/assets/{attachment_id} Delete an issue attachment
IssueApi DELETE /repos/{owner}/{repo}/issues/comments/{id}/assets/{attachment_id} Delete a comment attachment
IssueApi DELETE /repos/{owner}/{repo}/issues/{index}/reactions Remove a reaction from an issue
IssueApi DELETE /repos/{owner}/{repo}/labels/{id} Delete a label
IssueApi DELETE /repos/{owner}/{repo}/milestones/{id} Delete a milestone
IssueApi DELETE /repos/{owner}/{repo}/issues/{index}/stopwatch/delete Delete an issue's existing stopwatch.
IssueApi DELETE /repos/{owner}/{repo}/issues/{index}/subscriptions/{user} Unsubscribe user from issue
IssueApi DELETE /repos/{owner}/{repo}/issues/{index}/times/{id} Delete specific tracked time
IssueApi PATCH /repos/{owner}/{repo}/issues/comments/{id} Edit a comment
IssueApi PATCH /repos/{owner}/{repo}/issues/{index}/comments/{id} Edit a comment
IssueApi PATCH /repos/{owner}/{repo}/issues/{index} Edit an issue. If using deadline only the date will be taken into account, and time of day ignored.
IssueApi PATCH /repos/{owner}/{repo}/issues/{index}/assets/{attachment_id} Edit an issue attachment
IssueApi PATCH /repos/{owner}/{repo}/issues/comments/{id}/assets/{attachment_id} Edit a comment attachment
IssueApi POST /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.
IssueApi PATCH /repos/{owner}/{repo}/labels/{id} Update a label
IssueApi PATCH /repos/{owner}/{repo}/milestones/{id} Update a milestone
IssueApi GET /repos/{owner}/{repo}/issues/comments/{id} Get a comment
IssueApi GET /repos/{owner}/{repo}/issues/comments/{id}/reactions Get a list of reactions from a comment of an issue
IssueApi GET /repos/{owner}/{repo}/issues/{index}/comments List all comments on an issue
IssueApi GET /repos/{owner}/{repo}/issues/{index}/timeline List all comments and events on an issue
IssueApi GET /repos/{owner}/{repo}/issues/{index} Get an issue
IssueApi GET /repos/{owner}/{repo}/issues/{index}/assets/{attachment_id} Get an issue attachment
IssueApi GET /repos/{owner}/{repo}/issues/comments/{id}/assets/{attachment_id} Get a comment attachment
IssueApi GET /repos/{owner}/{repo}/issues/{index}/reactions Get a list reactions of an issue
IssueApi GET /repos/{owner}/{repo}/labels/{id} Get a single label
IssueApi GET /repos/{owner}/{repo}/issues/{index}/labels Get an issue's labels
IssueApi GET /repos/{owner}/{repo}/milestones/{id} Get a milestone
IssueApi GET /repos/{owner}/{repo}/milestones Get all of a repository's opened milestones
IssueApi GET /repos/{owner}/{repo}/issues/comments List all comments in a repository
IssueApi GET /repos/{owner}/{repo}/issues/{index}/blocks List issues that are blocked by this issue
IssueApi GET /repos/{owner}/{repo}/issues/{index}/assets List issue's attachments
IssueApi GET /repos/{owner}/{repo}/issues/comments/{id}/assets List comment's attachments
IssueApi GET /repos/{owner}/{repo}/issues/{index}/dependencies List an issue's dependencies, i.e all issues that block this issue.
IssueApi GET /repos/{owner}/{repo}/issues List a repository's issues
IssueApi GET /repos/{owner}/{repo}/labels Get all of a repository's labels
IssueApi POST /repos/{owner}/{repo}/issues/comments/{id}/reactions Add a reaction to a comment of an issue
IssueApi POST /repos/{owner}/{repo}/issues/{index}/reactions Add a reaction to an issue
IssueApi DELETE /repos/{owner}/{repo}/issues/{index}/blocks Unblock the issue given in the body by the issue in path
IssueApi DELETE /repos/{owner}/{repo}/issues/{index}/dependencies Remove an issue dependency
IssueApi DELETE /repos/{owner}/{repo}/issues/{index}/labels/{id} Remove a label from an issue
IssueApi PUT /repos/{owner}/{repo}/issues/{index}/labels Replace an issue's labels
IssueApi DELETE /repos/{owner}/{repo}/issues/{index}/times Reset a tracked time of an issue
IssueApi GET /repos/issues/search Search for issues across the repositories that the user has access to
IssueApi POST /repos/{owner}/{repo}/issues/{index}/stopwatch/start Start stopwatch on an issue.
IssueApi POST /repos/{owner}/{repo}/issues/{index}/stopwatch/stop Stop an issue's existing stopwatch.
IssueApi GET /repos/{owner}/{repo}/issues/{index}/subscriptions Get users who subscribed on an issue.
IssueApi GET /repos/{owner}/{repo}/issues/{index}/times List an issue's tracked times
IssueApi PATCH /repos/{owner}/{repo}/issues/{index}/pin/{position} Moves the Pin to the given Position
IssueApi POST /repos/{owner}/{repo}/issues/{index}/pin Pin an Issue
IssueApi DELETE /repos/{owner}/{repo}/issues/{index}/pin Unpin an Issue
MiscellaneousApi GET /gitignore/templates/{name} Returns information about a gitignore template
MiscellaneousApi GET /label/templates/{name} Returns all labels in a template
MiscellaneousApi GET /licenses/{name} Returns information about a license template
MiscellaneousApi GET /nodeinfo Returns the nodeinfo of the Gitea application
MiscellaneousApi GET /signing-key.gpg Get default signing-key.gpg
MiscellaneousApi GET /version Returns the version of the Gitea application
MiscellaneousApi GET /gitignore/templates Returns a list of all gitignore templates
MiscellaneousApi GET /label/templates Returns a list of all label templates
MiscellaneousApi GET /licenses Returns a list of all license templates
MiscellaneousApi POST /markdown Render a markdown document as HTML
MiscellaneousApi POST /markdown/raw Render raw markdown as HTML
MiscellaneousApi POST /markup Render a markup document as HTML
NotificationApi GET /notifications List users's notification threads
NotificationApi GET /repos/{owner}/{repo}/notifications List users's notification threads on a specific repo
NotificationApi GET /notifications/threads/{id} Get notification thread by ID
NotificationApi GET /notifications/new Check if unread notifications exist
NotificationApi PUT /notifications Mark notification threads as read, pinned or unread
NotificationApi PUT /repos/{owner}/{repo}/notifications Mark notification threads as read, pinned or unread on a specific repo
NotificationApi PATCH /notifications/threads/{id} Mark notification thread as read by ID
OrganizationApi POST /orgs/{org}/repos Create a repository in an organization
OrganizationApi POST /org/{org}/repos Create a repository in an organization
OrganizationApi POST /orgs/{org}/actions/variables/{variablename} Create an org-level variable
OrganizationApi DELETE /orgs/{org}/actions/secrets/{secretname} Delete a secret in an organization
OrganizationApi DELETE /orgs/{org}/actions/variables/{variablename} Delete an org-level variable
OrganizationApi GET /orgs/{org}/actions/variables/{variablename} Get an org-level variable
OrganizationApi GET /orgs/{org}/actions/variables Get an org-level variables list
OrganizationApi PUT /teams/{id}/members/{username} Add a team member
OrganizationApi PUT /teams/{id}/repos/{org}/{repo} Add a repository to a team
OrganizationApi DELETE /orgs/{org}/public_members/{username} Conceal a user's membership
OrganizationApi POST /orgs Create an organization
OrganizationApi POST /orgs/{org}/hooks Create a hook
OrganizationApi POST /orgs/{org}/labels Create a label for an organization
OrganizationApi POST /orgs/{org}/teams Create a team
OrganizationApi DELETE /orgs/{org} Delete an organization
OrganizationApi DELETE /orgs/{org}/avatar Delete Avatar
OrganizationApi DELETE /orgs/{org}/hooks/{id} Delete a hook
OrganizationApi DELETE /orgs/{org}/labels/{id} Delete a label
OrganizationApi DELETE /orgs/{org}/members/{username} Remove a member from an organization
OrganizationApi DELETE /teams/{id} Delete a team
OrganizationApi PATCH /orgs/{org} Edit an organization
OrganizationApi PATCH /orgs/{org}/hooks/{id} Update a hook
OrganizationApi PATCH /orgs/{org}/labels/{id} Update a label
OrganizationApi PATCH /teams/{id} Edit a team
OrganizationApi GET /orgs/{org} Get an organization
OrganizationApi GET /orgs Get list of organizations
OrganizationApi GET /orgs/{org}/hooks/{id} Get a hook
OrganizationApi GET /orgs/{org}/labels/{id} Get a single label
OrganizationApi GET /orgs/{org}/actions/runners/registration-token Get an organization's actions runner registration token
OrganizationApi GET /teams/{id} Get a team
OrganizationApi GET /users/{username}/orgs/{org}/permissions Get user permissions in organization
OrganizationApi GET /orgs/{org}/members/{username} Check if a user is a member of an organization
OrganizationApi GET /orgs/{org}/public_members/{username} Check if a user is a public member of an organization
OrganizationApi GET /orgs/{org}/actions/secrets List an organization's actions secrets
OrganizationApi GET /orgs/{org}/activities/feeds List an organization's activity feeds
OrganizationApi GET /user/orgs List the current user's organizations
OrganizationApi GET /orgs/{org}/hooks List an organization's webhooks
OrganizationApi GET /orgs/{org}/labels List an organization's labels
OrganizationApi GET /orgs/{org}/members List an organization's members
OrganizationApi GET /orgs/{org}/public_members List an organization's public members
OrganizationApi GET /orgs/{org}/repos List an organization's repos
OrganizationApi GET /teams/{id}/activities/feeds List a team's activity feeds
OrganizationApi GET /teams/{id}/members/{username} List a particular member of team
OrganizationApi GET /teams/{id}/members List a team's members
OrganizationApi GET /teams/{id}/repos/{org}/{repo} List a particular repo of team
OrganizationApi GET /teams/{id}/repos List a team's repos
OrganizationApi GET /orgs/{org}/teams List an organization's teams
OrganizationApi GET /users/{username}/orgs List a user's organizations
OrganizationApi PUT /orgs/{org}/public_members/{username} Publicize a user's membership
OrganizationApi DELETE /teams/{id}/members/{username} Remove a team member
OrganizationApi DELETE /teams/{id}/repos/{org}/{repo} Remove a repository from a team
OrganizationApi POST /orgs/{org}/avatar Update Avatar
OrganizationApi PUT /orgs/{org}/blocks/{username} Block a user
OrganizationApi GET /orgs/{org}/blocks/{username} Check if a user is blocked by the organization
OrganizationApi GET /orgs/{org}/blocks List users blocked by the organization
OrganizationApi DELETE /orgs/{org}/blocks/{username} Unblock a user
OrganizationApi GET /orgs/{org}/teams/search Search for teams within an organization
OrganizationApi PUT /orgs/{org}/actions/secrets/{secretname} Create or Update a secret value in an organization
OrganizationApi PUT /orgs/{org}/actions/variables/{variablename} Update an org-level variable
PackageApi DELETE /packages/{owner}/{type}/{name}/{version} Delete a package
PackageApi GET /packages/{owner}/{type}/{name}/{version} Gets a package
PackageApi GET /packages/{owner}/{type}/{name}/{version}/files Gets all files of a package
PackageApi GET /packages/{owner} Gets all packages of an owner
RepositoryApi POST /repos/{owner}/{repo}/transfer/accept Accept a repo transfer
RepositoryApi POST /user/repos Create a repository
RepositoryApi POST /repos/{owner}/{repo}/forks Fork a repository
RepositoryApi POST /repos/{owner}/{repo}/actions/variables/{variablename} Create a repo-level variable
RepositoryApi DELETE /repos/{owner}/{repo}/actions/secrets/{secretname} Delete a secret in a repository
RepositoryApi DELETE /repos/{owner}/{repo}/actions/variables/{variablename} Delete a repo-level variable
RepositoryApi POST /repos/{template_owner}/{template_repo}/generate Create a repository using a template
RepositoryApi GET /repos/{owner}/{repo}/git/tags/{sha} Gets the tag object of an annotated tag (not lightweight tags)
RepositoryApi GET /repos/{owner}/{repo}/git/blobs/{sha} Gets the blob of a repository.
RepositoryApi GET /repos/{owner}/{repo}/actions/variables/{variablename} Get a repo-level variable
RepositoryApi GET /repos/{owner}/{repo}/actions/variables Get repo-level variables list
RepositoryApi GET /repos/{owner}/{repo}/git/trees/{sha} Gets the tree of a repository.
RepositoryApi GET /repos/{owner}/{repo}/forks List a repository's forks
RepositoryApi POST /repos/{owner}/{repo}/transfer/reject Reject a repo transfer
RepositoryApi PUT /repos/{owner}/{repo}/collaborators/{collaborator} Add a collaborator to a repository
RepositoryApi POST /repos/{owner}/{repo}/push_mirrors add a push mirror to the repository
RepositoryApi PUT /repos/{owner}/{repo}/teams/{team} Add a team to a repository
RepositoryApi PUT /repos/{owner}/{repo}/topics/{topic} Add a topic to a repository
RepositoryApi POST /repos/{owner}/{repo}/diffpatch Apply diff patch to repository
RepositoryApi DELETE /repos/{owner}/{repo}/pulls/{index}/merge Cancel the scheduled auto merge for the given pull request
RepositoryApi POST /repos/{owner}/{repo}/contents Modify multiple files in a repository
RepositoryApi GET /repos/{owner}/{repo}/collaborators/{collaborator} Check if a user is a collaborator of a repository
RepositoryApi GET /repos/{owner}/{repo}/teams/{team} Check if a team is assigned to a repository
RepositoryApi GET /repos/{owner}/{repo}/compare/{basehead} Get commit comparison information
RepositoryApi POST /repos/{owner}/{repo}/branches Create a branch
RepositoryApi POST /repos/{owner}/{repo}/branch_protections Create a branch protections for a repository
RepositoryApi POST /repos/{owner}/{repo}/contents/{filepath} Create a file in a repository
RepositoryApi POST /repos/{owner}/{repo}/hooks Create a hook
RepositoryApi POST /repos/{owner}/{repo}/keys Add a key to a repository
RepositoryApi POST /repos/{owner}/{repo}/pulls Create a pull request
RepositoryApi POST /repos/{owner}/{repo}/pulls/{index}/reviews Create a review to an pull request
RepositoryApi POST /repos/{owner}/{repo}/pulls/{index}/requested_reviewers create review requests for a pull request
RepositoryApi POST /repos/{owner}/{repo}/releases Create a release
RepositoryApi POST /repos/{owner}/{repo}/releases/{id}/assets Create a release attachment
RepositoryApi POST /repos/{owner}/{repo}/statuses/{sha} Create a commit status
RepositoryApi POST /repos/{owner}/{repo}/tags Create a new git tag in a repository
RepositoryApi POST /repos/{owner}/{repo}/wiki/new Create a wiki page
RepositoryApi DELETE /repos/{owner}/{repo} Delete a repository
RepositoryApi DELETE /repos/{owner}/{repo}/avatar Delete avatar
RepositoryApi DELETE /repos/{owner}/{repo}/branches/{branch} Delete a specific branch from a repository
RepositoryApi DELETE /repos/{owner}/{repo}/branch_protections/{name} Delete a specific branch protection for the repository
RepositoryApi DELETE /repos/{owner}/{repo}/collaborators/{collaborator} Delete a collaborator from a repository
RepositoryApi DELETE /repos/{owner}/{repo}/contents/{filepath} Delete a file in a repository
RepositoryApi DELETE /repos/{owner}/{repo}/hooks/git/{id} Delete a Git hook in a repository
RepositoryApi DELETE /repos/{owner}/{repo}/hooks/{id} Delete a hook in a repository
RepositoryApi DELETE /repos/{owner}/{repo}/keys/{id} Delete a key from a repository
RepositoryApi DELETE /repos/{owner}/{repo}/pulls/{index}/reviews/{id} Delete a specific review from a pull request
RepositoryApi DELETE /repos/{owner}/{repo}/pulls/{index}/requested_reviewers cancel review requests for a pull request
RepositoryApi DELETE /repos/{owner}/{repo}/push_mirrors/{name} deletes a push mirror from a repository by remoteName
RepositoryApi DELETE /repos/{owner}/{repo}/releases/{id} Delete a release
RepositoryApi DELETE /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} Delete a release attachment
RepositoryApi DELETE /repos/{owner}/{repo}/releases/tags/{tag} Delete a release by tag name
RepositoryApi DELETE /repos/{owner}/{repo}/tags/{tag} Delete a repository's tag by name
RepositoryApi DELETE /repos/{owner}/{repo}/teams/{team} Delete a team from a repository
RepositoryApi DELETE /repos/{owner}/{repo}/topics/{topic} Delete a topic from a repository
RepositoryApi DELETE /repos/{owner}/{repo}/wiki/page/{pageName} Delete a wiki page
RepositoryApi POST /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/dismissals Dismiss a review for a pull request
RepositoryApi GET /repos/{owner}/{repo}/git/commits/{sha}.{diffType} Get a commit's diff or patch
RepositoryApi GET /repos/{owner}/{repo}/pulls/{index}.{diffType} Get a pull request diff or patch
RepositoryApi PATCH /repos/{owner}/{repo} Edit a repository's properties. Only fields that are set will be changed.
RepositoryApi PATCH /repos/{owner}/{repo}/branch_protections/{name} Edit a branch protections for a repository. Only fields that are set will be changed
RepositoryApi PATCH /repos/{owner}/{repo}/hooks/git/{id} Edit a Git hook in a repository
RepositoryApi PATCH /repos/{owner}/{repo}/hooks/{id} Edit a hook in a repository
RepositoryApi PATCH /repos/{owner}/{repo}/pulls/{index} Update a pull request. If using deadline only the date will be taken into account, and time of day ignored.
RepositoryApi PATCH /repos/{owner}/{repo}/releases/{id} Update a release
RepositoryApi PATCH /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} Edit a release attachment
RepositoryApi PATCH /repos/{owner}/{repo}/wiki/page/{pageName} Edit a wiki page
RepositoryApi GET /repos/{owner}/{repo} Get a repository
RepositoryApi GET /repos/{owner}/{repo}/commits Get a list of all commits from a repository
RepositoryApi GET /repos/{owner}/{repo}/archive/{archive} Get an archive of a repository
RepositoryApi GET /repos/{owner}/{repo}/assignees Return all users that have write access and can be assigned to issues
RepositoryApi GET /repos/{owner}/{repo}/branches/{branch} Retrieve a specific branch from a repository, including its effective branch protection
RepositoryApi GET /repos/{owner}/{repo}/branch_protections/{name} Get a specific branch protection for the repository
RepositoryApi GET /repositories/{id} Get a repository by id
RepositoryApi GET /repos/{owner}/{repo}/commits/{ref}/status Get a commit's combined status, by branch/tag/commit reference
RepositoryApi GET /repos/{owner}/{repo}/commits/{sha}/pull Get the pull request of the commit
RepositoryApi GET /repos/{owner}/{repo}/contents/{filepath} Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir
RepositoryApi GET /repos/{owner}/{repo}/contents Gets the metadata of all the entries of the root dir
RepositoryApi GET /repos/{owner}/{repo}/editorconfig/{filepath} Get the EditorConfig definitions of a file in a repository
RepositoryApi GET /repos/{owner}/{repo}/hooks/git/{id} Get a Git hook
RepositoryApi GET /repos/{owner}/{repo}/hooks/{id} Get a hook
RepositoryApi GET /repos/{owner}/{repo}/issue_config Returns the issue config for a repo
RepositoryApi GET /repos/{owner}/{repo}/issue_templates Get available issue templates for a repository
RepositoryApi GET /repos/{owner}/{repo}/keys/{id} Get a repository's key by id
RepositoryApi GET /repos/{owner}/{repo}/languages Get languages and number of bytes of code written
RepositoryApi GET /repos/{owner}/{repo}/releases/latest Gets the most recent non-prerelease, non-draft release of a repository, sorted by created_at
RepositoryApi GET /repos/{owner}/{repo}/git/notes/{sha} Get a note corresponding to a single commit from a repository
RepositoryApi GET /repos/{owner}/{repo}/pulls/{index} Get a pull request
RepositoryApi GET /repos/{owner}/{repo}/pulls/{base}/{head} Get a pull request by base and head
RepositoryApi GET /repos/{owner}/{repo}/pulls/{index}/commits Get commits for a pull request
RepositoryApi GET /repos/{owner}/{repo}/pulls/{index}/files Get changed files for a pull request
RepositoryApi GET /repos/{owner}/{repo}/pulls/{index}/reviews/{id} Get a specific review for a pull request
RepositoryApi GET /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/comments Get a specific review for a pull request
RepositoryApi GET /repos/{owner}/{repo}/push_mirrors/{name} Get push mirror of the repository by remoteName
RepositoryApi GET /repos/{owner}/{repo}/raw/{filepath} Get a file from a repository
RepositoryApi GET /repos/{owner}/{repo}/media/{filepath} Get a file or it's LFS object from a repository
RepositoryApi GET /repos/{owner}/{repo}/releases/{id} Get a release
RepositoryApi GET /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} Get a release attachment
RepositoryApi GET /repos/{owner}/{repo}/releases/tags/{tag} Get a release by tag name
RepositoryApi GET /repos/{owner}/{repo}/collaborators/{collaborator}/permission Get repository permissions for a user
RepositoryApi GET /repos/{owner}/{repo}/reviewers Return all users that can be requested to review in this repo
RepositoryApi GET /repos/{owner}/{repo}/runners/registration-token Get a repository's actions runner registration token
RepositoryApi GET /repos/{owner}/{repo}/git/commits/{sha} Get a single commit from a repository
RepositoryApi GET /repos/{owner}/{repo}/tags/{tag} Get the tag of a repository by tag name
RepositoryApi GET /repos/{owner}/{repo}/wiki/page/{pageName} Get a wiki page
RepositoryApi GET /repos/{owner}/{repo}/wiki/revisions/{pageName} Get revisions of a wiki page
RepositoryApi GET /repos/{owner}/{repo}/wiki/pages Get all wiki pages
RepositoryApi GET /repos/{owner}/{repo}/actions/secrets List an repo's actions secrets
RepositoryApi GET /repos/{owner}/{repo}/activities/feeds List a repository's activity feeds
RepositoryApi GET /repos/{owner}/{repo}/git/refs Get specified ref or filtered repository's refs
RepositoryApi GET /repos/{owner}/{repo}/branch_protections List branch protections for a repository
RepositoryApi GET /repos/{owner}/{repo}/branches List a repository's branches
RepositoryApi GET /repos/{owner}/{repo}/collaborators List a repository's collaborators
RepositoryApi GET /repos/{owner}/{repo}/hooks/git List the Git hooks in a repository
RepositoryApi GET /repos/{owner}/{repo}/git/refs/{ref} Get specified ref or filtered repository's refs
RepositoryApi GET /repos/{owner}/{repo}/hooks List the hooks in a repository
RepositoryApi GET /repos/{owner}/{repo}/keys List a repository's keys
RepositoryApi GET /repos/{owner}/{repo}/issues/pinned List a repo's pinned issues
RepositoryApi GET /repos/{owner}/{repo}/pulls/pinned List a repo's pinned pull requests
RepositoryApi GET /repos/{owner}/{repo}/pulls List a repo's pull requests
RepositoryApi GET /repos/{owner}/{repo}/pulls/{index}/reviews List all reviews for a pull request
RepositoryApi GET /repos/{owner}/{repo}/push_mirrors Get all push mirrors of the repository
RepositoryApi GET /repos/{owner}/{repo}/releases/{id}/assets List release's attachments
RepositoryApi GET /repos/{owner}/{repo}/releases List a repo's releases
RepositoryApi GET /repos/{owner}/{repo}/stargazers List a repo's stargazers
RepositoryApi GET /repos/{owner}/{repo}/statuses/{sha} Get a commit's statuses
RepositoryApi GET /repos/{owner}/{repo}/commits/{ref}/statuses Get a commit's statuses, by branch/tag/commit reference
RepositoryApi GET /repos/{owner}/{repo}/subscribers List a repo's watchers
RepositoryApi GET /repos/{owner}/{repo}/tags List a repository's tags
RepositoryApi GET /repos/{owner}/{repo}/teams List a repository's teams
RepositoryApi GET /repos/{owner}/{repo}/topics Get list of topics that a repository has
RepositoryApi POST /repos/{owner}/{repo}/pulls/{index}/merge Merge a pull request
RepositoryApi POST /repos/migrate Migrate a remote git repository
RepositoryApi POST /repos/{owner}/{repo}/mirror-sync Sync a mirrored repository
RepositoryApi GET /repos/{owner}/{repo}/new_pin_allowed Returns if new Issue Pins are allowed
RepositoryApi GET /repos/{owner}/{repo}/pulls/{index}/merge Check if a pull request has been merged
RepositoryApi POST /repos/{owner}/{repo}/push_mirrors-sync Sync all push mirrored repository
RepositoryApi GET /repos/search Search for repositories
RepositoryApi GET /repos/{owner}/{repo}/signing-key.gpg Get signing-key.gpg for given repository
RepositoryApi POST /repos/{owner}/{repo}/pulls/{index}/reviews/{id} Submit a pending review to an pull request
RepositoryApi POST /repos/{owner}/{repo}/hooks/{id}/tests Test a push webhook
RepositoryApi GET /repos/{owner}/{repo}/times List a repo's tracked times
RepositoryApi POST /repos/{owner}/{repo}/transfer Transfer a repo ownership
RepositoryApi POST /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/undismissals Cancel to dismiss a review for a pull request
RepositoryApi POST /repos/{owner}/{repo}/avatar Update avatar
RepositoryApi PUT /repos/{owner}/{repo}/contents/{filepath} Update a file in a repository
RepositoryApi POST /repos/{owner}/{repo}/pulls/{index}/update Merge PR's baseBranch into headBranch
RepositoryApi PUT /repos/{owner}/{repo}/topics Replace list of topics for a repository
RepositoryApi GET /repos/{owner}/{repo}/issue_config/validate Returns the validation information for a issue config
RepositoryApi GET /topics/search search topics via keyword
RepositoryApi PUT /repos/{owner}/{repo}/actions/secrets/{secretname} Create or Update a secret value in a repository
RepositoryApi PUT /repos/{owner}/{repo}/actions/variables/{variablename} Update a repo-level variable
RepositoryApi GET /repos/{owner}/{repo}/subscription Check if the current user is watching a repo
RepositoryApi DELETE /repos/{owner}/{repo}/subscription Unwatch a repo
RepositoryApi PUT /repos/{owner}/{repo}/subscription Watch a repo
RepositoryApi GET /repos/{owner}/{repo}/times/{user} List a user's tracked times in a repo
SettingsApi GET /settings/api Get instance's global settings for api
SettingsApi GET /settings/attachment Get instance's global settings for Attachment
SettingsApi GET /settings/repository Get instance's global settings for repositories
SettingsApi GET /settings/ui Get instance's global settings for ui
UserApi POST /user/repos Create a repository
UserApi POST /user/actions/variables/{variablename} Create a user-level variable
UserApi DELETE /user/actions/secrets/{secretname} Delete a secret in a user scope
UserApi DELETE /user/actions/variables/{variablename} Delete a user-level variable which is created by current doer
UserApi GET /user/settings Get user settings
UserApi GET /user/actions/variables/{variablename} Get a user-level variable which is created by current doer
UserApi GET /user/actions/variables Get the user-level list of variables which is created by current doer
UserApi GET /user/gpg_key_token Get a Token to verify
UserApi PUT /user/actions/secrets/{secretname} Create or Update a secret value in a user scope
UserApi PATCH /user/settings Update user settings
UserApi PUT /user/actions/variables/{variablename} Update a user-level variable which is created by current doer
UserApi POST /user/emails Add email addresses
UserApi PUT /user/blocks/{username} Block a user
UserApi GET /users/{username}/following/{target} Check if one user is following another user
UserApi GET /user/blocks/{username} Check if a user is blocked by the authenticated user
UserApi POST /user/hooks Create a hook
UserApi POST /user/applications/oauth2 creates a new OAuth2 application
UserApi POST /users/{username}/tokens Create an access token
UserApi GET /user/following/{username} Check whether a user is followed by the authenticated user
UserApi GET /user/starred/{owner}/{repo} Whether the authenticated is starring the repo
UserApi DELETE /user/following/{username} Unfollow a user
UserApi DELETE /user/gpg_keys/{id} Remove a GPG key
UserApi DELETE /user/keys/{id} Delete a public key
UserApi DELETE /user/starred/{owner}/{repo} Unstar the given repo
UserApi GET /user/gpg_keys/{id} Get a GPG key
UserApi GET /user/keys/{id} Get a public key
UserApi GET /user/followers List the authenticated user's followers
UserApi GET /user/following List the users that the authenticated user is following
UserApi GET /user/gpg_keys List the authenticated user's GPG keys
UserApi GET /user/keys List the authenticated user's public keys
UserApi GET /user/repos List the repos that the authenticated user owns
UserApi GET /user/starred The repos that the authenticated user has starred
UserApi GET /user/subscriptions List repositories watched by the authenticated user
UserApi POST /user/gpg_keys Create a GPG key
UserApi POST /user/keys Create a public key
UserApi PUT /user/following/{username} Follow a user
UserApi PUT /user/starred/{owner}/{repo} Star the given repo
UserApi GET /user/times List the current user's tracked times
UserApi DELETE /users/{username}/tokens/{token} delete an access token
UserApi DELETE /user/avatar Delete Avatar
UserApi DELETE /user/emails Delete email addresses
UserApi DELETE /user/hooks/{id} Delete a hook
UserApi DELETE /user/applications/oauth2/{id} delete an OAuth2 Application
UserApi PATCH /user/hooks/{id} Update a hook
UserApi GET /users/{username} Get a user
UserApi GET /user Get the authenticated user
UserApi GET /users/{username}/heatmap Get a user's heatmap
UserApi GET /user/hooks/{id} Get a hook
UserApi GET /user/applications/oauth2/{id} get an OAuth2 Application
UserApi GET /user/applications/oauth2 List the authenticated user's oauth2 applications
UserApi GET /user/actions/runners/registration-token Get an user's actions runner registration token
UserApi GET /user/stopwatches Get list of all existing stopwatches
UserApi GET /users/{username}/tokens List the authenticated user's access tokens
UserApi GET /users/{username}/activities/feeds List a user's activity feeds
UserApi GET /user/blocks List users blocked by the authenticated user
UserApi GET /user/emails List the authenticated user's email addresses
UserApi GET /users/{username}/followers List the given user's followers
UserApi GET /users/{username}/following List the users that the given user is following
UserApi GET /users/{username}/gpg_keys List the given user's GPG keys
UserApi GET /user/hooks List the authenticated user's webhooks
UserApi GET /users/{username}/keys List the given user's public keys
UserApi GET /users/{username}/repos List the repos owned by the given user
UserApi GET /users/{username}/starred The repos that the given user has starred
UserApi GET /users/{username}/subscriptions List the repositories watched by a user
UserApi GET /user/teams List all the teams a user belongs to
UserApi GET /users/search Search for users
UserApi DELETE /user/blocks/{username} Unblock a user
UserApi POST /user/avatar Update Avatar
UserApi PATCH /user/applications/oauth2/{id} update an OAuth2 Application, this includes regenerating the client secret
UserApi POST /user/gpg_key_verify Verify a GPG key

<a id="documentation-for-models"></a>

Documentation for Models

<a id="documentation-for-authorization"></a>

Documentation for Authorization

Authentication schemes defined for the API: <a id="AccessToken"></a>

AccessToken

  • Type: API key
  • API key parameter name: access_token
  • Location: URL query string

<a id="AuthorizationHeaderToken"></a>

AuthorizationHeaderToken

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

<a id="BasicAuth"></a>

BasicAuth

  • Type: HTTP basic authentication

<a id="SudoHeader"></a>

SudoHeader

  • Type: API key
  • API key parameter name: Sudo
  • Location: HTTP header

<a id="SudoParam"></a>

SudoParam

  • Type: API key
  • API key parameter name: sudo
  • Location: URL query string

<a id="TOTPHeader"></a>

TOTPHeader

  • Type: API key
  • API key parameter name: X-GITEA-OTP
  • Location: HTTP header

<a id="Token"></a>

Token

  • Type: API key
  • API key parameter name: token
  • Location: URL query string
Product Versions Compatible and additional computed target framework versions.
.NET net5.0 net5.0 was computed.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 was computed.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 was computed.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
.NET Core netcoreapp2.0 netcoreapp2.0 was computed.  netcoreapp2.1 netcoreapp2.1 was computed.  netcoreapp2.2 netcoreapp2.2 was computed.  netcoreapp3.0 netcoreapp3.0 was computed.  netcoreapp3.1 netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 netstandard2.0 is compatible.  netstandard2.1 netstandard2.1 was computed. 
.NET Framework net461 net461 was computed.  net462 net462 was computed.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 was computed.  net472 net472 was computed.  net48 net48 was computed.  net481 net481 was computed. 
MonoAndroid monoandroid monoandroid was computed. 
MonoMac monomac monomac was computed. 
MonoTouch monotouch monotouch was computed. 
Tizen tizen40 tizen40 was computed.  tizen60 tizen60 was computed. 
Xamarin.iOS xamarinios xamarinios was computed. 
Xamarin.Mac xamarinmac xamarinmac was computed. 
Xamarin.TVOS xamarintvos xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Gitea.Net.API:

Package Downloads
Extensions.Configuration.GitRepository.GiteaProvider

Gitea's repository configuration provider implementation to use with Microsoft.Extensions.Configuration.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Gitea.Net.API:

Repository Stars
velopack/velopack
Installer and automatic update framework for cross-platform desktop applications
Version Downloads Last Updated
25.8.18 6,839 8/18/2025
25.7.31 302 7/31/2025
25.7.8 210 7/8/2025
25.3.5 2,808 3/5/2025
1.0.1 1,692 8/9/2024 1.0.1 is deprecated because it has critical bugs.
1.0.0 666 6/6/2024 1.0.0 is deprecated because it has critical bugs.