Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dcs-api

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dcs-api

This documentation describes the DCS gitea API

  • 1.15.6-a
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

dcs

dcs - JavaScript client for DCS This documentation describes the DCS (Gitea) API. This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.15.6a+dcs
  • Package version: 1.15.6a+dcs
  • Build package: io.swagger.codegen.v3.generators.javascript.JavaScriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install dcs --save
git

If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var dcs = require('dcs');
var defaultClient = dcs.ApiClient.instance;

// Configure API key authorization: AccessToken
var AccessToken = defaultClient.authentications['AccessToken'];
AccessToken.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccessToken.apiKeyPrefix['access_token'] = "Token"

// Configure API key authorization: AuthorizationHeaderToken
var AuthorizationHeaderToken = defaultClient.authentications['AuthorizationHeaderToken'];
AuthorizationHeaderToken.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AuthorizationHeaderToken.apiKeyPrefix['Authorization'] = "Token"
// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME'
BasicAuth.password = 'YOUR PASSWORD'

// Configure API key authorization: SudoHeader
var SudoHeader = defaultClient.authentications['SudoHeader'];
SudoHeader.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//SudoHeader.apiKeyPrefix['Sudo'] = "Token"

// Configure API key authorization: SudoParam
var SudoParam = defaultClient.authentications['SudoParam'];
SudoParam.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//SudoParam.apiKeyPrefix['sudo'] = "Token"

// Configure API key authorization: TOTPHeader
var TOTPHeader = defaultClient.authentications['TOTPHeader'];
TOTPHeader.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//TOTPHeader.apiKeyPrefix['X-GITEA-OTP'] = "Token"

// Configure API key authorization: Token
var Token = defaultClient.authentications['Token'];
Token.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Token.apiKeyPrefix['token'] = "Token"

var api = new dcs.AdminApi()
var owner = "owner_example"; // {String} owner of the repo
var repo = "repo_example"; // {String} name of the repo

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.adminAdoptRepository(owner, repo, callback);

Documentation for API Endpoints

All URIs are relative to https://git.door43.org/api/v1

ClassMethodHTTP requestDescription
dcs.AdminApiadminAdoptRepositoryPOST /admin/unadopted/{owner}/{repo}Adopt unadopted files as a repository
dcs.AdminApiadminCreateOrgPOST /admin/users/{username}/orgsCreate an organization
dcs.AdminApiadminCreatePublicKeyPOST /admin/users/{username}/keysAdd a public key on behalf of a user
dcs.AdminApiadminCreateRepoPOST /admin/users/{username}/reposCreate a repository on behalf of a user
dcs.AdminApiadminCreateUserPOST /admin/usersCreate a user
dcs.AdminApiadminCronListGET /admin/cronList cron tasks
dcs.AdminApiadminCronRunPOST /admin/cron/{task}Run cron task
dcs.AdminApiadminDeleteUnadoptedRepositoryDELETE /admin/unadopted/{owner}/{repo}Delete unadopted files
dcs.AdminApiadminDeleteUserDELETE /admin/users/{username}Delete a user
dcs.AdminApiadminDeleteUserPublicKeyDELETE /admin/users/{username}/keys/{id}Delete a user's public key
dcs.AdminApiadminEditUserPATCH /admin/users/{username}Edit an existing user
dcs.AdminApiadminGetAllOrgsGET /admin/orgsList all organizations
dcs.AdminApiadminGetAllUsersGET /admin/usersList all users
dcs.AdminApiadminUnadoptedListGET /admin/unadoptedList unadopted repositories
dcs.IssueApiissueAddLabelPOST /repos/{owner}/{repo}/issues/{index}/labelsAdd a label to an issue
dcs.IssueApiissueAddSubscriptionPUT /repos/{owner}/{repo}/issues/{index}/subscriptions/{user}Subscribe user to issue
dcs.IssueApiissueAddTimePOST /repos/{owner}/{repo}/issues/{index}/timesAdd tracked time to a issue
dcs.IssueApiissueCheckSubscriptionGET /repos/{owner}/{repo}/issues/{index}/subscriptions/checkCheck if user is subscribed to an issue
dcs.IssueApiissueClearLabelsDELETE /repos/{owner}/{repo}/issues/{index}/labelsRemove all labels from an issue
dcs.IssueApiissueCreateCommentPOST /repos/{owner}/{repo}/issues/{index}/commentsAdd a comment to an issue
dcs.IssueApiissueCreateIssuePOST /repos/{owner}/{repo}/issuesCreate an issue. If using deadline only the date will be taken into account, and time of day ignored.
dcs.IssueApiissueCreateLabelPOST /repos/{owner}/{repo}/labelsCreate a label
dcs.IssueApiissueCreateMilestonePOST /repos/{owner}/{repo}/milestonesCreate a milestone
dcs.IssueApiissueDeleteCommentDELETE /repos/{owner}/{repo}/issues/comments/{id}Delete a comment
dcs.IssueApiissueDeleteCommentDeprecatedDELETE /repos/{owner}/{repo}/issues/{index}/comments/{id}Delete a comment
dcs.IssueApiissueDeleteLabelDELETE /repos/{owner}/{repo}/labels/{id}Delete a label
dcs.IssueApiissueDeleteMilestoneDELETE /repos/{owner}/{repo}/milestones/{id}Delete a milestone
dcs.IssueApiissueDeleteStopWatchDELETE /repos/{owner}/{repo}/issues/{index}/stopwatch/deleteDelete an issue's existing stopwatch.
dcs.IssueApiissueDeleteSubscriptionDELETE /repos/{owner}/{repo}/issues/{index}/subscriptions/{user}Unsubscribe user from issue
dcs.IssueApiissueDeleteTimeDELETE /repos/{owner}/{repo}/issues/{index}/times/{id}Delete specific tracked time
dcs.IssueApiissueEditCommentPATCH /repos/{owner}/{repo}/issues/comments/{id}Edit a comment
dcs.IssueApiissueEditCommentDeprecatedPATCH /repos/{owner}/{repo}/issues/{index}/comments/{id}Edit a comment
dcs.IssueApiissueEditIssuePATCH /repos/{owner}/{repo}/issues/{index}Edit an issue. If using deadline only the date will be taken into account, and time of day ignored.
dcs.IssueApiissueEditIssueDeadlinePOST /repos/{owner}/{repo}/issues/{index}/deadlineSet 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.
dcs.IssueApiissueEditLabelPATCH /repos/{owner}/{repo}/labels/{id}Update a label
dcs.IssueApiissueEditMilestonePATCH /repos/{owner}/{repo}/milestones/{id}Update a milestone
dcs.IssueApiissueGetCommentGET /repos/{owner}/{repo}/issues/comments/{id}Get a comment
dcs.IssueApiissueGetCommentReactionsGET /repos/{owner}/{repo}/issues/comments/{id}/reactionsGet a list of reactions from a comment of an issue
dcs.IssueApiissueGetCommentsGET /repos/{owner}/{repo}/issues/{index}/commentsList all comments on an issue
dcs.IssueApiissueGetIssueGET /repos/{owner}/{repo}/issues/{index}Get an issue
dcs.IssueApiissueGetIssueReactionsGET /repos/{owner}/{repo}/issues/{index}/reactionsGet a list reactions of an issue
dcs.IssueApiissueGetLabelGET /repos/{owner}/{repo}/labels/{id}Get a single label
dcs.IssueApiissueGetLabelsGET /repos/{owner}/{repo}/issues/{index}/labelsGet an issue's labels
dcs.IssueApiissueGetMilestoneGET /repos/{owner}/{repo}/milestones/{id}Get a milestone
dcs.IssueApiissueGetMilestonesListGET /repos/{owner}/{repo}/milestonesGet all of a repository's opened milestones
dcs.IssueApiissueGetRepoCommentsGET /repos/{owner}/{repo}/issues/commentsList all comments in a repository
dcs.IssueApiissueListIssuesGET /repos/{owner}/{repo}/issuesList a repository's issues
dcs.IssueApiissueListLabelsGET /repos/{owner}/{repo}/labelsGet all of a repository's labels
dcs.IssueApiissuePostCommentReactionPOST /repos/{owner}/{repo}/issues/comments/{id}/reactionsAdd a reaction to a comment of an issue
dcs.IssueApiissuePostIssueReactionPOST /repos/{owner}/{repo}/issues/{index}/reactionsAdd a reaction to an issue
dcs.IssueApiissueRemoveLabelDELETE /repos/{owner}/{repo}/issues/{index}/labels/{id}Remove a label from an issue
dcs.IssueApiissueReplaceLabelsPUT /repos/{owner}/{repo}/issues/{index}/labelsReplace an issue's labels
dcs.IssueApiissueResetTimeDELETE /repos/{owner}/{repo}/issues/{index}/timesReset a tracked time of an issue
dcs.IssueApiissueSearchIssuesGET /repos/issues/searchSearch for issues across the repositories that the user has access to
dcs.IssueApiissueStartStopWatchPOST /repos/{owner}/{repo}/issues/{index}/stopwatch/startStart stopwatch on an issue.
dcs.IssueApiissueStopStopWatchPOST /repos/{owner}/{repo}/issues/{index}/stopwatch/stopStop an issue's existing stopwatch.
dcs.IssueApiissueSubscriptionsGET /repos/{owner}/{repo}/issues/{index}/subscriptionsGet users who subscribed on an issue.
dcs.IssueApiissueTrackedTimesGET /repos/{owner}/{repo}/issues/{index}/timesList an issue's tracked times
dcs.MiscellaneousApigetSigningKeyGET /signing-key.gpgGet default signing-key.gpg
dcs.MiscellaneousApigetVersionGET /versionReturns the version of the Gitea application
dcs.MiscellaneousApirenderMarkdownPOST /markdownRender a markdown document as HTML
dcs.MiscellaneousApirenderMarkdownRawPOST /markdown/rawRender raw markdown as HTML
dcs.NotificationApinotifyGetListGET /notificationsList users's notification threads
dcs.NotificationApinotifyGetRepoListGET /repos/{owner}/{repo}/notificationsList users's notification threads on a specific repo
dcs.NotificationApinotifyGetThreadGET /notifications/threads/{id}Get notification thread by ID
dcs.NotificationApinotifyNewAvailableGET /notifications/newCheck if unread notifications exist
dcs.NotificationApinotifyReadListPUT /notificationsMark notification threads as read, pinned or unread
dcs.NotificationApinotifyReadRepoListPUT /repos/{owner}/{repo}/notificationsMark notification threads as read, pinned or unread on a specific repo
dcs.NotificationApinotifyReadThreadPATCH /notifications/threads/{id}Mark notification thread as read by ID
dcs.OrganizationApicreateOrgRepoPOST /orgs/{org}/reposCreate a repository in an organization
dcs.OrganizationApicreateOrgRepoDeprecatedPOST /org/{org}/reposCreate a repository in an organization
dcs.OrganizationApiorgAddTeamMemberPUT /teams/{id}/members/{username}Add a team member
dcs.OrganizationApiorgAddTeamRepositoryPUT /teams/{id}/repos/{org}/{repo}Add a repository to a team
dcs.OrganizationApiorgConcealMemberDELETE /orgs/{org}/public_members/{username}Conceal a user's membership
dcs.OrganizationApiorgCreatePOST /orgsCreate an organization
dcs.OrganizationApiorgCreateHookPOST /orgs/{org}/hooks/Create a hook
dcs.OrganizationApiorgCreateLabelPOST /orgs/{org}/labelsCreate a label for an organization
dcs.OrganizationApiorgCreateTeamPOST /orgs/{org}/teamsCreate a team
dcs.OrganizationApiorgDeleteDELETE /orgs/{org}Delete an organization
dcs.OrganizationApiorgDeleteHookDELETE /orgs/{org}/hooks/{id}Delete a hook
dcs.OrganizationApiorgDeleteLabelDELETE /orgs/{org}/labels/{id}Delete a label
dcs.OrganizationApiorgDeleteMemberDELETE /orgs/{org}/members/{username}Remove a member from an organization
dcs.OrganizationApiorgDeleteTeamDELETE /teams/{id}Delete a team
dcs.OrganizationApiorgEditPATCH /orgs/{org}Edit an organization
dcs.OrganizationApiorgEditHookPATCH /orgs/{org}/hooks/{id}Update a hook
dcs.OrganizationApiorgEditLabelPATCH /orgs/{org}/labels/{id}Update a label
dcs.OrganizationApiorgEditTeamPATCH /teams/{id}Edit a team
dcs.OrganizationApiorgGetGET /orgs/{org}Get an organization
dcs.OrganizationApiorgGetAllGET /orgsGet list of organizations
dcs.OrganizationApiorgGetHookGET /orgs/{org}/hooks/{id}Get a hook
dcs.OrganizationApiorgGetLabelGET /orgs/{org}/labels/{id}Get a single label
dcs.OrganizationApiorgGetTeamGET /teams/{id}Get a team
dcs.OrganizationApiorgIsMemberGET /orgs/{org}/members/{username}Check if a user is a member of an organization
dcs.OrganizationApiorgIsPublicMemberGET /orgs/{org}/public_members/{username}Check if a user is a public member of an organization
dcs.OrganizationApiorgListCurrentUserOrgsGET /user/orgsList the current user's organizations
dcs.OrganizationApiorgListHooksGET /orgs/{org}/hooksList an organization's webhooks
dcs.OrganizationApiorgListLabelsGET /orgs/{org}/labelsList an organization's labels
dcs.OrganizationApiorgListMembersGET /orgs/{org}/membersList an organization's members
dcs.OrganizationApiorgListPublicMembersGET /orgs/{org}/public_membersList an organization's public members
dcs.OrganizationApiorgListReposGET /orgs/{org}/reposList an organization's repos
dcs.OrganizationApiorgListTeamMemberGET /teams/{id}/members/{username}List a particular member of team
dcs.OrganizationApiorgListTeamMembersGET /teams/{id}/membersList a team's members
dcs.OrganizationApiorgListTeamReposGET /teams/{id}/reposList a team's repos
dcs.OrganizationApiorgListTeamsGET /orgs/{org}/teamsList an organization's teams
dcs.OrganizationApiorgListUserOrgsGET /users/{username}/orgsList a user's organizations
dcs.OrganizationApiorgPublicizeMemberPUT /orgs/{org}/public_members/{username}Publicize a user's membership
dcs.OrganizationApiorgRemoveTeamMemberDELETE /teams/{id}/members/{username}Remove a team member
dcs.OrganizationApiorgRemoveTeamRepositoryDELETE /teams/{id}/repos/{org}/{repo}Remove a repository from a team
dcs.OrganizationApiteamSearchGET /orgs/{org}/teams/searchSearch for teams within an organization
dcs.RepositoryApicreateCurrentUserRepoPOST /user/reposCreate a repository
dcs.RepositoryApicreateForkPOST /repos/{owner}/{repo}/forksFork a repository
dcs.RepositoryApigenerateRepoPOST /repos/{template_owner}/{template_repo}/generateCreate a repository using a template
dcs.RepositoryApigetAnnotatedTagGET /repos/{owner}/{repo}/git/tags/{sha}Gets the tag object of an annotated tag (not lightweight tags)
dcs.RepositoryApigetBlobGET /repos/{owner}/{repo}/git/blobs/{sha}Gets the blob of a repository.
dcs.RepositoryApigetTreeGET /repos/{owner}/{repo}/git/trees/{sha}Gets the tree of a repository.
dcs.RepositoryApilistForksGET /repos/{owner}/{repo}/forksList a repository's forks
dcs.RepositoryApirepoAddCollaboratorPUT /repos/{owner}/{repo}/collaborators/{collaborator}Add a collaborator to a repository
dcs.RepositoryApirepoAddTeamPUT /repos/{owner}/{repo}/teams/{team}Add a team to a repository
dcs.RepositoryApirepoAddTopcPUT /repos/{owner}/{repo}/topics/{topic}Add a topic to a repository
dcs.RepositoryApirepoCheckCollaboratorGET /repos/{owner}/{repo}/collaborators/{collaborator}Check if a user is a collaborator of a repository
dcs.RepositoryApirepoCheckTeamGET /repos/{owner}/{repo}/teams/{team}Check if a team is assigned to a repository
dcs.RepositoryApirepoCreateBranchPOST /repos/{owner}/{repo}/branchesCreate a branch
dcs.RepositoryApirepoCreateBranchProtectionPOST /repos/{owner}/{repo}/branch_protectionsCreate a branch protections for a repository
dcs.RepositoryApirepoCreateFilePOST /repos/{owner}/{repo}/contents/{filepath}Create a file in a repository
dcs.RepositoryApirepoCreateHookPOST /repos/{owner}/{repo}/hooksCreate a hook
dcs.RepositoryApirepoCreateKeyPOST /repos/{owner}/{repo}/keysAdd a key to a repository
dcs.RepositoryApirepoCreatePullRequestPOST /repos/{owner}/{repo}/pullsCreate a pull request
dcs.RepositoryApirepoCreatePullReviewPOST /repos/{owner}/{repo}/pulls/{index}/reviewsCreate a review to an pull request
dcs.RepositoryApirepoCreatePullReviewRequestsPOST /repos/{owner}/{repo}/pulls/{index}/requested_reviewerscreate review requests for a pull request
dcs.RepositoryApirepoCreateReleasePOST /repos/{owner}/{repo}/releasesCreate a release
dcs.RepositoryApirepoCreateReleaseAttachmentPOST /repos/{owner}/{repo}/releases/{id}/assetsCreate a release attachment
dcs.RepositoryApirepoCreateStatusPOST /repos/{owner}/{repo}/statuses/{sha}Create a commit status
dcs.RepositoryApirepoCreateTagPOST /repos/{owner}/{repo}/tagsCreate a new git tag in a repository
dcs.RepositoryApirepoDeleteDELETE /repos/{owner}/{repo}Delete a repository
dcs.RepositoryApirepoDeleteBranchDELETE /repos/{owner}/{repo}/branches/{branch}Delete a specific branch from a repository
dcs.RepositoryApirepoDeleteBranchProtectionDELETE /repos/{owner}/{repo}/branch_protections/{name}Delete a specific branch protection for the repository
dcs.RepositoryApirepoDeleteCollaboratorDELETE /repos/{owner}/{repo}/collaborators/{collaborator}Delete a collaborator from a repository
dcs.RepositoryApirepoDeleteGitHookDELETE /repos/{owner}/{repo}/hooks/git/{id}Delete a Git hook in a repository
dcs.RepositoryApirepoDeleteHookDELETE /repos/{owner}/{repo}/hooks/{id}Delete a hook in a repository
dcs.RepositoryApirepoDeleteKeyDELETE /repos/{owner}/{repo}/keys/{id}Delete a key from a repository
dcs.RepositoryApirepoDeletePullReviewDELETE /repos/{owner}/{repo}/pulls/{index}/reviews/{id}Delete a specific review from a pull request
dcs.RepositoryApirepoDeleteReleaseDELETE /repos/{owner}/{repo}/releases/{id}Delete a release
dcs.RepositoryApirepoDeleteReleaseAttachmentDELETE /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id}Delete a release attachment
dcs.RepositoryApirepoDeleteReleaseByTagDELETE /repos/{owner}/{repo}/releases/tags/{tag}Delete a release by tag name
dcs.RepositoryApirepoDeleteTagDELETE /repos/{owner}/{repo}/tags/{tag}Delete a repository's tag by name
dcs.RepositoryApirepoDeleteTeamDELETE /repos/{owner}/{repo}/teams/{team}Delete a team from a repository
dcs.RepositoryApirepoDeleteTopicDELETE /repos/{owner}/{repo}/topics/{topic}Delete a topic from a repository
dcs.RepositoryApirepoDismissPullReviewPOST /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/dismissalsDismiss a review for a pull request
dcs.RepositoryApirepoDownloadPullDiffGET /repos/{owner}/{repo}/pulls/{index}.diffGet a pull request diff
dcs.RepositoryApirepoDownloadPullPatchGET /repos/{owner}/{repo}/pulls/{index}.patchGet a pull request patch file
dcs.RepositoryApirepoEditPATCH /repos/{owner}/{repo}Edit a repository's properties. Only fields that are set will be changed.
dcs.RepositoryApirepoEditBranchProtectionPATCH /repos/{owner}/{repo}/branch_protections/{name}Edit a branch protections for a repository. Only fields that are set will be changed
dcs.RepositoryApirepoEditGitHookPATCH /repos/{owner}/{repo}/hooks/git/{id}Edit a Git hook in a repository
dcs.RepositoryApirepoEditHookPATCH /repos/{owner}/{repo}/hooks/{id}Edit a hook in a repository
dcs.RepositoryApirepoEditPullRequestPATCH /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.
dcs.RepositoryApirepoEditReleasePATCH /repos/{owner}/{repo}/releases/{id}Update a release
dcs.RepositoryApirepoEditReleaseAttachmentPATCH /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id}Edit a release attachment
dcs.RepositoryApirepoGetGET /repos/{owner}/{repo}Get a repository
dcs.RepositoryApirepoGetAllCommitsGET /repos/{owner}/{repo}/commitsGet a list of all commits from a repository
dcs.RepositoryApirepoGetArchiveGET /repos/{owner}/{repo}/archive/{archive}Get an archive of a repository
dcs.RepositoryApirepoGetAssigneesGET /repos/{owner}/{repo}/assigneesReturn all users that have write access and can be assigned to issues
dcs.RepositoryApirepoGetBranchGET /repos/{owner}/{repo}/branches/{branch}Retrieve a specific branch from a repository, including its effective branch protection
dcs.RepositoryApirepoGetBranchProtectionGET /repos/{owner}/{repo}/branch_protections/{name}Get a specific branch protection for the repository
dcs.RepositoryApirepoGetByIDGET /repositories/{id}Get a repository by id
dcs.RepositoryApirepoGetCombinedStatusByRefGET /repos/{owner}/{repo}/commits/{ref}/statusGet a commit's combined status, by branch/tag/commit reference
dcs.RepositoryApirepoGetContentsGET /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
dcs.RepositoryApirepoGetContentsListGET /repos/{owner}/{repo}/contentsGets the metadata of all the entries of the root dir
dcs.RepositoryApirepoGetEditorConfigGET /repos/{owner}/{repo}/editorconfig/{filepath}Get the EditorConfig definitions of a file in a repository
dcs.RepositoryApirepoGetGitHookGET /repos/{owner}/{repo}/hooks/git/{id}Get a Git hook
dcs.RepositoryApirepoGetHookGET /repos/{owner}/{repo}/hooks/{id}Get a hook
dcs.RepositoryApirepoGetIssueTemplatesGET /repos/{owner}/{repo}/issue_templatesGet available issue templates for a repository
dcs.RepositoryApirepoGetKeyGET /repos/{owner}/{repo}/keys/{id}Get a repository's key by id
dcs.RepositoryApirepoGetLanguagesGET /repos/{owner}/{repo}/languagesGet languages and number of bytes of code written
dcs.RepositoryApirepoGetPullRequestGET /repos/{owner}/{repo}/pulls/{index}Get a pull request
dcs.RepositoryApirepoGetPullRequestCommitsGET /repos/{owner}/{repo}/pulls/{index}/commitsGet commits for a pull request
dcs.RepositoryApirepoGetPullReviewGET /repos/{owner}/{repo}/pulls/{index}/reviews/{id}Get a specific review for a pull request
dcs.RepositoryApirepoGetPullReviewCommentsGET /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/commentsGet a specific review for a pull request
dcs.RepositoryApirepoGetRawFileGET /repos/{owner}/{repo}/raw/{filepath}Get a file from a repository
dcs.RepositoryApirepoGetReleaseGET /repos/{owner}/{repo}/releases/{id}Get a release
dcs.RepositoryApirepoGetReleaseAttachmentGET /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id}Get a release attachment
dcs.RepositoryApirepoGetReleaseByTagGET /repos/{owner}/{repo}/releases/tags/{tag}Get a release by tag name
dcs.RepositoryApirepoGetReviewersGET /repos/{owner}/{repo}/reviewersReturn all users that can be requested to review in this repo
dcs.RepositoryApirepoGetSingleCommitGET /repos/{owner}/{repo}/git/commits/{sha}Get a single commit from a repository
dcs.RepositoryApirepoGetTagGET /repos/{owner}/{repo}/tags/{tag}Get the tag of a repository by tag name
dcs.RepositoryApirepoListAllGitRefsGET /repos/{owner}/{repo}/git/refsGet specified ref or filtered repository's refs
dcs.RepositoryApirepoListBranchProtectionGET /repos/{owner}/{repo}/branch_protectionsList branch protections for a repository
dcs.RepositoryApirepoListBranchesGET /repos/{owner}/{repo}/branchesList a repository's branches
dcs.RepositoryApirepoListCollaboratorsGET /repos/{owner}/{repo}/collaboratorsList a repository's collaborators
dcs.RepositoryApirepoListGitHooksGET /repos/{owner}/{repo}/hooks/gitList the Git hooks in a repository
dcs.RepositoryApirepoListGitRefsGET /repos/{owner}/{repo}/git/refs/{ref}Get specified ref or filtered repository's refs
dcs.RepositoryApirepoListHooksGET /repos/{owner}/{repo}/hooksList the hooks in a repository
dcs.RepositoryApirepoListKeysGET /repos/{owner}/{repo}/keysList a repository's keys
dcs.RepositoryApirepoListPullRequestsGET /repos/{owner}/{repo}/pullsList a repo's pull requests
dcs.RepositoryApirepoListPullReviewsGET /repos/{owner}/{repo}/pulls/{index}/reviewsList all reviews for a pull request
dcs.RepositoryApirepoListReleaseAttachmentsGET /repos/{owner}/{repo}/releases/{id}/assetsList release's attachments
dcs.RepositoryApirepoListReleasesGET /repos/{owner}/{repo}/releasesList a repo's releases
dcs.RepositoryApirepoListStargazersGET /repos/{owner}/{repo}/stargazersList a repo's stargazers
dcs.RepositoryApirepoListStatusesGET /repos/{owner}/{repo}/statuses/{sha}Get a commit's statuses
dcs.RepositoryApirepoListStatusesByRefGET /repos/{owner}/{repo}/commits/{ref}/statusesGet a commit's statuses, by branch/tag/commit reference
dcs.RepositoryApirepoListSubscribersGET /repos/{owner}/{repo}/subscribersList a repo's watchers
dcs.RepositoryApirepoListTagsGET /repos/{owner}/{repo}/tagsList a repository's tags
dcs.RepositoryApirepoListTeamsGET /repos/{owner}/{repo}/teamsList a repository's teams
dcs.RepositoryApirepoListTopicsGET /repos/{owner}/{repo}/topicsGet list of topics that a repository has
dcs.RepositoryApirepoMergePullRequestPOST /repos/{owner}/{repo}/pulls/{index}/mergeMerge a pull request
dcs.RepositoryApirepoMigratePOST /repos/migrateMigrate a remote git repository
dcs.RepositoryApirepoMirrorSyncPOST /repos/{owner}/{repo}/mirror-syncSync a mirrored repository
dcs.RepositoryApirepoPullRequestIsMergedGET /repos/{owner}/{repo}/pulls/{index}/mergeCheck if a pull request has been merged
dcs.RepositoryApirepoSearchGET /repos/searchSearch for repositories
dcs.RepositoryApirepoSigningKeyGET /repos/{owner}/{repo}/signing-key.gpgGet signing-key.gpg for given repository
dcs.RepositoryApirepoSubmitPullReviewPOST /repos/{owner}/{repo}/pulls/{index}/reviews/{id}Submit a pending review to an pull request
dcs.RepositoryApirepoTestHookPOST /repos/{owner}/{repo}/hooks/{id}/testsTest a push webhook
dcs.RepositoryApirepoTrackedTimesGET /repos/{owner}/{repo}/timesList a repo's tracked times
dcs.RepositoryApirepoTransferPOST /repos/{owner}/{repo}/transferTransfer a repo ownership
dcs.RepositoryApirepoUnDismissPullReviewPOST /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/undismissalsCancel to dismiss a review for a pull request
dcs.RepositoryApirepoUpdateFilePUT /repos/{owner}/{repo}/contents/{filepath}Update a file in a repository
dcs.RepositoryApirepoUpdatePullRequestPOST /repos/{owner}/{repo}/pulls/{index}/updateMerge PR's baseBranch into headBranch
dcs.RepositoryApirepoUpdateTopicsPUT /repos/{owner}/{repo}/topicsReplace list of topics for a repository
dcs.RepositoryApitopicSearchGET /topics/searchsearch topics via keyword
dcs.RepositoryApiuserCurrentCheckSubscriptionGET /repos/{owner}/{repo}/subscriptionCheck if the current user is watching a repo
dcs.RepositoryApiuserCurrentDeleteSubscriptionDELETE /repos/{owner}/{repo}/subscriptionUnwatch a repo
dcs.RepositoryApiuserCurrentPutSubscriptionPUT /repos/{owner}/{repo}/subscriptionWatch a repo
dcs.RepositoryApiuserTrackedTimesGET /repos/{owner}/{repo}/times/{user}List a user's tracked times in a repo
dcs.SettingsApigetGeneralAPISettingsGET /settings/apiGet instance's global settings for api
dcs.SettingsApigetGeneralAttachmentSettingsGET /settings/attachmentGet instance's global settings for Attachment
dcs.SettingsApigetGeneralRepositorySettingsGET /settings/repositoryGet instance's global settings for repositories
dcs.SettingsApigetGeneralUISettingsGET /settings/uiGet instance's global settings for ui
dcs.UserApicreateCurrentUserRepoPOST /user/reposCreate a repository
dcs.UserApigetUserSettingsGET /user/settingsGet user settings
dcs.UserApigetVerificationTokenGET /user/gpg_key_tokenGet a Token to verify
dcs.UserApiupdateUserSettingsPATCH /user/settingsUpdate user settings
dcs.UserApiuserAddEmailPOST /user/emailsAdd email addresses
dcs.UserApiuserCheckFollowingGET /users/{follower}/following/{followee}Check if one user is following another user
dcs.UserApiuserCreateOAuth2ApplicationPOST /user/applications/oauth2creates a new OAuth2 application
dcs.UserApiuserCreateTokenPOST /users/{username}/tokensCreate an access token
dcs.UserApiuserCurrentCheckFollowingGET /user/following/{username}Check whether a user is followed by the authenticated user
dcs.UserApiuserCurrentCheckStarringGET /user/starred/{owner}/{repo}Whether the authenticated is starring the repo
dcs.UserApiuserCurrentDeleteFollowDELETE /user/following/{username}Unfollow a user
dcs.UserApiuserCurrentDeleteGPGKeyDELETE /user/gpg_keys/{id}Remove a GPG key
dcs.UserApiuserCurrentDeleteKeyDELETE /user/keys/{id}Delete a public key
dcs.UserApiuserCurrentDeleteStarDELETE /user/starred/{owner}/{repo}Unstar the given repo
dcs.UserApiuserCurrentGetGPGKeyGET /user/gpg_keys/{id}Get a GPG key
dcs.UserApiuserCurrentGetKeyGET /user/keys/{id}Get a public key
dcs.UserApiuserCurrentListFollowersGET /user/followersList the authenticated user's followers
dcs.UserApiuserCurrentListFollowingGET /user/followingList the users that the authenticated user is following
dcs.UserApiuserCurrentListGPGKeysGET /user/gpg_keysList the authenticated user's GPG keys
dcs.UserApiuserCurrentListKeysGET /user/keysList the authenticated user's public keys
dcs.UserApiuserCurrentListReposGET /user/reposList the repos that the authenticated user owns or has access to
dcs.UserApiuserCurrentListStarredGET /user/starredThe repos that the authenticated user has starred
dcs.UserApiuserCurrentListSubscriptionsGET /user/subscriptionsList repositories watched by the authenticated user
dcs.UserApiuserCurrentPostGPGKeyPOST /user/gpg_keysCreate a GPG key
dcs.UserApiuserCurrentPostKeyPOST /user/keysCreate a public key
dcs.UserApiuserCurrentPutFollowPUT /user/following/{username}Follow a user
dcs.UserApiuserCurrentPutStarPUT /user/starred/{owner}/{repo}Star the given repo
dcs.UserApiuserCurrentTrackedTimesGET /user/timesList the current user's tracked times
dcs.UserApiuserDeleteAccessTokenDELETE /users/{username}/tokens/{token}delete an access token
dcs.UserApiuserDeleteOAuth2ApplicationDELETE /user/applications/oauth2/{id}delete an OAuth2 Application
dcs.UserApiuserGetGET /users/{username}Get a user
dcs.UserApiuserGetCurrentGET /userGet the authenticated user
dcs.UserApiuserGetHeatmapDataGET /users/{username}/heatmapGet a user's heatmap
dcs.UserApiuserGetOAuth2ApplicationGET /user/applications/oauth2/{id}get an OAuth2 Application
dcs.UserApiuserGetOauth2ApplicationGET /user/applications/oauth2List the authenticated user's oauth2 applications
dcs.UserApiuserGetStopWatchesGET /user/stopwatchesGet list of all existing stopwatches
dcs.UserApiuserGetTokensGET /users/{username}/tokensList the authenticated user's access tokens
dcs.UserApiuserListEmailsGET /user/emailsList the authenticated user's email addresses
dcs.UserApiuserListFollowersGET /users/{username}/followersList the given user's followers
dcs.UserApiuserListFollowingGET /users/{username}/followingList the users that the given user is following
dcs.UserApiuserListGPGKeysGET /users/{username}/gpg_keysList the given user's GPG keys
dcs.UserApiuserListKeysGET /users/{username}/keysList the given user's public keys
dcs.UserApiuserListReposGET /users/{username}/reposList the repos owned by the given user
dcs.UserApiuserListStarredGET /users/{username}/starredThe repos that the given user has starred
dcs.UserApiuserListSubscriptionsGET /users/{username}/subscriptionsList the repositories watched by a user
dcs.UserApiuserListTeamsGET /user/teamsList all the teams a user belongs to
dcs.UserApiuserSearchGET /users/searchSearch for users
dcs.UserApiuserUpdateOAuth2ApplicationPATCH /user/applications/oauth2/{id}update an OAuth2 Application, this includes regenerating the client secret
dcs.UserApiuserVerifyGPGKeyPOST /user/gpg_key_verifyVerify a GPG key

Documentation for Models

Documentation for Authorization

AccessToken

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

AuthorizationHeaderToken

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

BasicAuth

  • Type: HTTP basic authentication

SudoHeader

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

SudoParam

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

TOTPHeader

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

Token

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

FAQs

Package last updated on 10 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc