Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
27 changes: 21 additions & 6 deletions C#/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This API provides a way to retrive & interact with data about DagsHub repositori

This C# SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: 1.0.2
- API version: 1.0.3
- SDK version: 1.0.3
- Build package: io.swagger.codegen.v3.generators.dotnet.CSharpClientCodegen

Expand Down Expand Up @@ -77,19 +77,21 @@ namespace Example
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("token", "Bearer");

var apiInstance = new BranchesApi();
var apiInstance = new AnnotationsApi();
var owner = owner_example; // string | owner of the repository
var repo = repo_example; // string | name of the repository
var branch = branch_example; // string | branch of the repository
var teamid = 789; // long? | Team ID
var projectId = 789; // long? | Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)

try
{
// Get Branch
apiInstance.GetBranch(owner, repo, branch);
// Get team access level for annotation projects
LabelStudioProjectAccess result = apiInstance.GetLabelStudioTeamAccess(owner, repo, teamid, projectId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling BranchesApi.GetBranch: " + e.Message );
Debug.Print("Exception when calling AnnotationsApi.GetLabelStudioTeamAccess: " + e.Message );
}
}
}
Expand All @@ -103,6 +105,14 @@ All URIs are relative to *https://dagshub.com/api/v1*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AnnotationsApi* | [**GetLabelStudioTeamAccess**](docs/AnnotationsApi.md#getlabelstudioteamaccess) | **GET** /repos/{owner}/{repo}/annotations/access/teams/{teamid} | Get team access level for annotation projects
*AnnotationsApi* | [**GetLabelStudioUserAccess**](docs/AnnotationsApi.md#getlabelstudiouseraccess) | **GET** /repos/{owner}/{repo}/annotations/access/users/{userid} | Get user access level for annotation projects
*AnnotationsApi* | [**GrantLabelStudioTeamAccess**](docs/AnnotationsApi.md#grantlabelstudioteamaccess) | **PUT** /repos/{owner}/{repo}/annotations/access/teams/{teamid} | Grant team access to annotation projects
*AnnotationsApi* | [**GrantLabelStudioUserAccess**](docs/AnnotationsApi.md#grantlabelstudiouseraccess) | **PUT** /repos/{owner}/{repo}/annotations/access/users/{userid} | Grant user access to annotation projects
*AnnotationsApi* | [**ListLabelStudioTeamAccess**](docs/AnnotationsApi.md#listlabelstudioteamaccess) | **GET** /repos/{owner}/{repo}/annotations/access/teams | List team access entries for annotation projects
*AnnotationsApi* | [**ListLabelStudioUserAccess**](docs/AnnotationsApi.md#listlabelstudiouseraccess) | **GET** /repos/{owner}/{repo}/annotations/access/users | List user access entries for annotation projects
*AnnotationsApi* | [**RevokeLabelStudioTeamAccess**](docs/AnnotationsApi.md#revokelabelstudioteamaccess) | **DELETE** /repos/{owner}/{repo}/annotations/access/teams/{teamid} | Revoke team access to annotation projects
*AnnotationsApi* | [**RevokeLabelStudioUserAccess**](docs/AnnotationsApi.md#revokelabelstudiouseraccess) | **DELETE** /repos/{owner}/{repo}/annotations/access/users/{userid} | Revoke user access to annotation projects
*BranchesApi* | [**GetBranch**](docs/BranchesApi.md#getbranch) | **GET** /repos/{owner}/{repo}/branches/{branch} | Get Branch
*BranchesApi* | [**ListBranches**](docs/BranchesApi.md#listbranches) | **GET** /repos/{owner}/{repo}/branches | List Branches
*CollaboratorsApi* | [**AddCollaborator**](docs/CollaboratorsApi.md#addcollaborator) | **PUT** /repos/{owner}/{repo}/collaborators/{collaborator} | Add user as a collaborator
Expand All @@ -123,6 +133,7 @@ Class | Method | HTTP request | Description
*IssuesApi* | [**EditIssue**](docs/IssuesApi.md#editissue) | **PATCH** /repos/{owner}/{repo}/issues | Edit an issue
*IssuesApi* | [**GetIssue**](docs/IssuesApi.md#getissue) | **GET** /repos/{owner}/{repo}/issues/{index} | Get a single issue
*IssuesApi* | [**ListRepoIssues**](docs/IssuesApi.md#listrepoissues) | **GET** /repos/{owner}/{repo}/issues | List issues for a repository
*OrganizationsApi* | [**CreateOrgTeam**](docs/OrganizationsApi.md#createorgteam) | **POST** /admin/orgs/{orgname}/teams | Create an organization team
*ReleasesApi* | [**ListReleases**](docs/ReleasesApi.md#listreleases) | **GET** /repos/{owner}/{repo}/releases | List Releases
*RepositoryApi* | [**CreateOrgRepo**](docs/RepositoryApi.md#createorgrepo) | **POST** /org/{orgname}/repos | Create in organization
*RepositoryApi* | [**CreateRepo**](docs/RepositoryApi.md#createrepo) | **POST** /user/repos | Create
Expand All @@ -146,20 +157,24 @@ Class | Method | HTTP request | Description
## Documentation for Models

- [Model.CollaboratorsCollaboratorBody](docs/CollaboratorsCollaboratorBody.md)
- [Model.CreateAnnotatorTeam](docs/CreateAnnotatorTeam.md)
- [Model.CreateRepo](docs/CreateRepo.md)
- [Model.EditExperimentPost](docs/EditExperimentPost.md)
- [Model.ExperimentKeys](docs/ExperimentKeys.md)
- [Model.File](docs/File.md)
- [Model.Files](docs/Files.md)
- [Model.Files1](docs/Files1.md)
- [Model.GrantLabelStudioAccess](docs/GrantLabelStudioAccess.md)
- [Model.HooksIdBody](docs/HooksIdBody.md)
- [Model.InlineResponse200](docs/InlineResponse200.md)
- [Model.Integration](docs/Integration.md)
- [Model.IntegrationInner](docs/IntegrationInner.md)
- [Model.Issue](docs/Issue.md)
- [Model.IssueAssignee](docs/IssueAssignee.md)
- [Model.IssueLabels](docs/IssueLabels.md)
- [Model.IssueMilestone](docs/IssueMilestone.md)
- [Model.Issues](docs/Issues.md)
- [Model.LabelStudioProjectAccess](docs/LabelStudioProjectAccess.md)
- [Model.Labels](docs/Labels.md)
- [Model.MigrateRepo](docs/MigrateRepo.md)
- [Model.PatchIssue](docs/PatchIssue.md)
Expand Down
10 changes: 5 additions & 5 deletions C#/dagshub_api.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
VisualStudioVersion = 12.0.0.0
MinimumVisualStudioVersion = 10.0.0.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dagshub_api", "src\dagshub_api\dagshub_api.csproj", "{BB7FDD9F-1657-4C83-B5E3-E416BEC4C698}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dagshub_api", "src\dagshub_api\dagshub_api.csproj", "{DC4E8379-1DB2-416F-B33C-82A82758E481}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dagshub_api.Test", "src\dagshub_api.Test\dagshub_api.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
Expand All @@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BB7FDD9F-1657-4C83-B5E3-E416BEC4C698}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BB7FDD9F-1657-4C83-B5E3-E416BEC4C698}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BB7FDD9F-1657-4C83-B5E3-E416BEC4C698}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BB7FDD9F-1657-4C83-B5E3-E416BEC4C698}.Release|Any CPU.Build.0 = Release|Any CPU
{DC4E8379-1DB2-416F-B33C-82A82758E481}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DC4E8379-1DB2-416F-B33C-82A82758E481}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DC4E8379-1DB2-416F-B33C-82A82758E481}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DC4E8379-1DB2-416F-B33C-82A82758E481}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
Loading