Rust API for Gitea, automatically generated https://git.exmods.org/swagger.v1.json
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

README.md 39KB

4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. # Rust API client for swagger
  2. This documentation describes the Gitea API.
  3. ## Overview
  4. This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client.
  5. - API version: 1.1.1
  6. - Package version: 1.0.0
  7. - Build package: io.swagger.codegen.languages.RustClientCodegen
  8. ## Installation
  9. Put the package under your project folder and add the following in import:
  10. ```
  11. "./swagger"
  12. ```
  13. ## Documentation for API Endpoints
  14. All URIs are relative to *http://localhost/api/v1*
  15. Class | Method | HTTP request | Description
  16. ------------ | ------------- | ------------- | -------------
  17. *AdminApi* | [**admin_create_org**](docs/AdminApi.md#admin_create_org) | **Post** /admin/users/{username}/orgs | Create an organization
  18. *AdminApi* | [**admin_create_public_key**](docs/AdminApi.md#admin_create_public_key) | **Post** /admin/users/{username}/keys | Add a public key on behalf of a user
  19. *AdminApi* | [**admin_create_repo**](docs/AdminApi.md#admin_create_repo) | **Post** /admin/users/{username}/repos | Create a repository on behalf a user
  20. *AdminApi* | [**admin_create_user**](docs/AdminApi.md#admin_create_user) | **Post** /admin/users | Create a user
  21. *AdminApi* | [**admin_delete_user**](docs/AdminApi.md#admin_delete_user) | **Delete** /admin/users/{username} | Delete a user
  22. *AdminApi* | [**admin_delete_user_public_key**](docs/AdminApi.md#admin_delete_user_public_key) | **Delete** /admin/users/{username}/keys/{id} | Delete a user's public key
  23. *AdminApi* | [**admin_edit_user**](docs/AdminApi.md#admin_edit_user) | **Patch** /admin/users/{username} | Edit an existing user
  24. *AdminApi* | [**admin_get_all_orgs**](docs/AdminApi.md#admin_get_all_orgs) | **Get** /admin/orgs | List all organizations
  25. *AdminApi* | [**admin_get_all_users**](docs/AdminApi.md#admin_get_all_users) | **Get** /admin/users | List all users
  26. *IssueApi* | [**issue_add_label**](docs/IssueApi.md#issue_add_label) | **Post** /repos/{owner}/{repo}/issues/{index}/labels | Add a label to an issue
  27. *IssueApi* | [**issue_add_subscription**](docs/IssueApi.md#issue_add_subscription) | **Put** /repos/{owner}/{repo}/issues/{index}/subscriptions/{user} | Subscribe user to issue
  28. *IssueApi* | [**issue_add_time**](docs/IssueApi.md#issue_add_time) | **Post** /repos/{owner}/{repo}/issues/{index}/times | Add tracked time to a issue
  29. *IssueApi* | [**issue_clear_labels**](docs/IssueApi.md#issue_clear_labels) | **Delete** /repos/{owner}/{repo}/issues/{index}/labels | Remove all labels from an issue
  30. *IssueApi* | [**issue_create_comment**](docs/IssueApi.md#issue_create_comment) | **Post** /repos/{owner}/{repo}/issues/{index}/comments | Add a comment to an issue
  31. *IssueApi* | [**issue_create_issue**](docs/IssueApi.md#issue_create_issue) | **Post** /repos/{owner}/{repo}/issues | Create an issue. If using deadline only the date will be taken into account, and time of day ignored.
  32. *IssueApi* | [**issue_create_label**](docs/IssueApi.md#issue_create_label) | **Post** /repos/{owner}/{repo}/labels | Create a label
  33. *IssueApi* | [**issue_create_milestone**](docs/IssueApi.md#issue_create_milestone) | **Post** /repos/{owner}/{repo}/milestones | Create a milestone
  34. *IssueApi* | [**issue_delete_comment**](docs/IssueApi.md#issue_delete_comment) | **Delete** /repos/{owner}/{repo}/issues/comments/{id} | Delete a comment
  35. *IssueApi* | [**issue_delete_comment_deprecated**](docs/IssueApi.md#issue_delete_comment_deprecated) | **Delete** /repos/{owner}/{repo}/issues/{index}/comments/{id} | Delete a comment
  36. *IssueApi* | [**issue_delete_comment_reaction**](docs/IssueApi.md#issue_delete_comment_reaction) | **Delete** /repos/{owner}/{repo}/issues/comments/{id}/reactions | Remove a reaction from a comment of an issue
  37. *IssueApi* | [**issue_delete_issue_reaction**](docs/IssueApi.md#issue_delete_issue_reaction) | **Delete** /repos/{owner}/{repo}/issues/{index}/reactions | Remove a reaction from an issue
  38. *IssueApi* | [**issue_delete_label**](docs/IssueApi.md#issue_delete_label) | **Delete** /repos/{owner}/{repo}/labels/{id} | Delete a label
  39. *IssueApi* | [**issue_delete_milestone**](docs/IssueApi.md#issue_delete_milestone) | **Delete** /repos/{owner}/{repo}/milestones/{id} | Delete a milestone
  40. *IssueApi* | [**issue_delete_stop_watch**](docs/IssueApi.md#issue_delete_stop_watch) | **Delete** /repos/{owner}/{repo}/issues/{index}/stopwatch/delete | Delete an issue's existing stopwatch.
  41. *IssueApi* | [**issue_delete_subscription**](docs/IssueApi.md#issue_delete_subscription) | **Delete** /repos/{owner}/{repo}/issues/{index}/subscriptions/{user} | Unsubscribe user from issue
  42. *IssueApi* | [**issue_delete_time**](docs/IssueApi.md#issue_delete_time) | **Delete** /repos/{owner}/{repo}/issues/{index}/times/{id} | Delete specific tracked time
  43. *IssueApi* | [**issue_edit_comment**](docs/IssueApi.md#issue_edit_comment) | **Patch** /repos/{owner}/{repo}/issues/comments/{id} | Edit a comment
  44. *IssueApi* | [**issue_edit_comment_deprecated**](docs/IssueApi.md#issue_edit_comment_deprecated) | **Patch** /repos/{owner}/{repo}/issues/{index}/comments/{id} | Edit a comment
  45. *IssueApi* | [**issue_edit_issue**](docs/IssueApi.md#issue_edit_issue) | **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.
  46. *IssueApi* | [**issue_edit_issue_deadline**](docs/IssueApi.md#issue_edit_issue_deadline) | **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.
  47. *IssueApi* | [**issue_edit_label**](docs/IssueApi.md#issue_edit_label) | **Patch** /repos/{owner}/{repo}/labels/{id} | Update a label
  48. *IssueApi* | [**issue_edit_milestone**](docs/IssueApi.md#issue_edit_milestone) | **Patch** /repos/{owner}/{repo}/milestones/{id} | Update a milestone
  49. *IssueApi* | [**issue_get_comment_reactions**](docs/IssueApi.md#issue_get_comment_reactions) | **Get** /repos/{owner}/{repo}/issues/comments/{id}/reactions | Get a list of reactions from a comment of an issue
  50. *IssueApi* | [**issue_get_comments**](docs/IssueApi.md#issue_get_comments) | **Get** /repos/{owner}/{repo}/issues/{index}/comments | List all comments on an issue
  51. *IssueApi* | [**issue_get_issue**](docs/IssueApi.md#issue_get_issue) | **Get** /repos/{owner}/{repo}/issues/{index} | Get an issue
  52. *IssueApi* | [**issue_get_issue_reactions**](docs/IssueApi.md#issue_get_issue_reactions) | **Get** /repos/{owner}/{repo}/issues/{index}/reactions | Get a list reactions of an issue
  53. *IssueApi* | [**issue_get_label**](docs/IssueApi.md#issue_get_label) | **Get** /repos/{owner}/{repo}/labels/{id} | Get a single label
  54. *IssueApi* | [**issue_get_labels**](docs/IssueApi.md#issue_get_labels) | **Get** /repos/{owner}/{repo}/issues/{index}/labels | Get an issue's labels
  55. *IssueApi* | [**issue_get_milestone**](docs/IssueApi.md#issue_get_milestone) | **Get** /repos/{owner}/{repo}/milestones/{id} | Get a milestone
  56. *IssueApi* | [**issue_get_milestones_list**](docs/IssueApi.md#issue_get_milestones_list) | **Get** /repos/{owner}/{repo}/milestones | Get all of a repository's opened milestones
  57. *IssueApi* | [**issue_get_repo_comments**](docs/IssueApi.md#issue_get_repo_comments) | **Get** /repos/{owner}/{repo}/issues/comments | List all comments in a repository
  58. *IssueApi* | [**issue_list_issues**](docs/IssueApi.md#issue_list_issues) | **Get** /repos/{owner}/{repo}/issues | List a repository's issues
  59. *IssueApi* | [**issue_list_labels**](docs/IssueApi.md#issue_list_labels) | **Get** /repos/{owner}/{repo}/labels | Get all of a repository's labels
  60. *IssueApi* | [**issue_post_comment_reaction**](docs/IssueApi.md#issue_post_comment_reaction) | **Post** /repos/{owner}/{repo}/issues/comments/{id}/reactions | Add a reaction to a comment of an issue
  61. *IssueApi* | [**issue_post_issue_reaction**](docs/IssueApi.md#issue_post_issue_reaction) | **Post** /repos/{owner}/{repo}/issues/{index}/reactions | Add a reaction to an issue
  62. *IssueApi* | [**issue_remove_label**](docs/IssueApi.md#issue_remove_label) | **Delete** /repos/{owner}/{repo}/issues/{index}/labels/{id} | Remove a label from an issue
  63. *IssueApi* | [**issue_replace_labels**](docs/IssueApi.md#issue_replace_labels) | **Put** /repos/{owner}/{repo}/issues/{index}/labels | Replace an issue's labels
  64. *IssueApi* | [**issue_reset_time**](docs/IssueApi.md#issue_reset_time) | **Delete** /repos/{owner}/{repo}/issues/{index}/times | Reset a tracked time of an issue
  65. *IssueApi* | [**issue_search_issues**](docs/IssueApi.md#issue_search_issues) | **Get** /repos/issues/search | Search for issues across the repositories that the user has access to
  66. *IssueApi* | [**issue_start_stop_watch**](docs/IssueApi.md#issue_start_stop_watch) | **Post** /repos/{owner}/{repo}/issues/{index}/stopwatch/start | Start stopwatch on an issue.
  67. *IssueApi* | [**issue_stop_stop_watch**](docs/IssueApi.md#issue_stop_stop_watch) | **Post** /repos/{owner}/{repo}/issues/{index}/stopwatch/stop | Stop an issue's existing stopwatch.
  68. *IssueApi* | [**issue_subscriptions**](docs/IssueApi.md#issue_subscriptions) | **Get** /repos/{owner}/{repo}/issues/{index}/subscriptions | Get users who subscribed on an issue.
  69. *IssueApi* | [**issue_tracked_times**](docs/IssueApi.md#issue_tracked_times) | **Get** /repos/{owner}/{repo}/issues/{index}/times | List an issue's tracked times
  70. *MiscellaneousApi* | [**get_signing_key**](docs/MiscellaneousApi.md#get_signing_key) | **Get** /signing-key.gpg | Get default signing-key.gpg
  71. *MiscellaneousApi* | [**get_version**](docs/MiscellaneousApi.md#get_version) | **Get** /version | Returns the version of the Gitea application
  72. *MiscellaneousApi* | [**render_markdown**](docs/MiscellaneousApi.md#render_markdown) | **Post** /markdown | Render a markdown document as HTML
  73. *MiscellaneousApi* | [**render_markdown_raw**](docs/MiscellaneousApi.md#render_markdown_raw) | **Post** /markdown/raw | Render raw markdown as HTML
  74. *OrganizationApi* | [**create_org_repo**](docs/OrganizationApi.md#create_org_repo) | **Post** /org/{org}/repos | Create a repository in an organization
  75. *OrganizationApi* | [**org_add_team_member**](docs/OrganizationApi.md#org_add_team_member) | **Put** /teams/{id}/members/{username} | Add a team member
  76. *OrganizationApi* | [**org_add_team_repository**](docs/OrganizationApi.md#org_add_team_repository) | **Put** /teams/{id}/repos/{org}/{repo} | Add a repository to a team
  77. *OrganizationApi* | [**org_conceal_member**](docs/OrganizationApi.md#org_conceal_member) | **Delete** /orgs/{org}/public_members/{username} | Conceal a user's membership
  78. *OrganizationApi* | [**org_create**](docs/OrganizationApi.md#org_create) | **Post** /orgs | Create an organization
  79. *OrganizationApi* | [**org_create_hook**](docs/OrganizationApi.md#org_create_hook) | **Post** /orgs/{org}/hooks/ | Create a hook
  80. *OrganizationApi* | [**org_create_team**](docs/OrganizationApi.md#org_create_team) | **Post** /orgs/{org}/teams | Create a team
  81. *OrganizationApi* | [**org_delete**](docs/OrganizationApi.md#org_delete) | **Delete** /orgs/{org} | Delete an organization
  82. *OrganizationApi* | [**org_delete_hook**](docs/OrganizationApi.md#org_delete_hook) | **Delete** /orgs/{org}/hooks/{id} | Delete a hook
  83. *OrganizationApi* | [**org_delete_member**](docs/OrganizationApi.md#org_delete_member) | **Delete** /orgs/{org}/members/{username} | Remove a member from an organization
  84. *OrganizationApi* | [**org_delete_team**](docs/OrganizationApi.md#org_delete_team) | **Delete** /teams/{id} | Delete a team
  85. *OrganizationApi* | [**org_edit**](docs/OrganizationApi.md#org_edit) | **Patch** /orgs/{org} | Edit an organization
  86. *OrganizationApi* | [**org_edit_hook**](docs/OrganizationApi.md#org_edit_hook) | **Patch** /orgs/{org}/hooks/{id} | Update a hook
  87. *OrganizationApi* | [**org_edit_team**](docs/OrganizationApi.md#org_edit_team) | **Patch** /teams/{id} | Edit a team
  88. *OrganizationApi* | [**org_get**](docs/OrganizationApi.md#org_get) | **Get** /orgs/{org} | Get an organization
  89. *OrganizationApi* | [**org_get_hook**](docs/OrganizationApi.md#org_get_hook) | **Get** /orgs/{org}/hooks/{id} | Get a hook
  90. *OrganizationApi* | [**org_get_team**](docs/OrganizationApi.md#org_get_team) | **Get** /teams/{id} | Get a team
  91. *OrganizationApi* | [**org_is_member**](docs/OrganizationApi.md#org_is_member) | **Get** /orgs/{org}/members/{username} | Check if a user is a member of an organization
  92. *OrganizationApi* | [**org_is_public_member**](docs/OrganizationApi.md#org_is_public_member) | **Get** /orgs/{org}/public_members/{username} | Check if a user is a public member of an organization
  93. *OrganizationApi* | [**org_list_current_user_orgs**](docs/OrganizationApi.md#org_list_current_user_orgs) | **Get** /user/orgs | List the current user's organizations
  94. *OrganizationApi* | [**org_list_hooks**](docs/OrganizationApi.md#org_list_hooks) | **Get** /orgs/{org}/hooks | List an organization's webhooks
  95. *OrganizationApi* | [**org_list_members**](docs/OrganizationApi.md#org_list_members) | **Get** /orgs/{org}/members | List an organization's members
  96. *OrganizationApi* | [**org_list_public_members**](docs/OrganizationApi.md#org_list_public_members) | **Get** /orgs/{org}/public_members | List an organization's public members
  97. *OrganizationApi* | [**org_list_repos**](docs/OrganizationApi.md#org_list_repos) | **Get** /orgs/{org}/repos | List an organization's repos
  98. *OrganizationApi* | [**org_list_team_member**](docs/OrganizationApi.md#org_list_team_member) | **Get** /teams/{id}/members/{username} | List a particular member of team
  99. *OrganizationApi* | [**org_list_team_members**](docs/OrganizationApi.md#org_list_team_members) | **Get** /teams/{id}/members | List a team's members
  100. *OrganizationApi* | [**org_list_team_repos**](docs/OrganizationApi.md#org_list_team_repos) | **Get** /teams/{id}/repos | List a team's repos
  101. *OrganizationApi* | [**org_list_teams**](docs/OrganizationApi.md#org_list_teams) | **Get** /orgs/{org}/teams | List an organization's teams
  102. *OrganizationApi* | [**org_list_user_orgs**](docs/OrganizationApi.md#org_list_user_orgs) | **Get** /users/{username}/orgs | List a user's organizations
  103. *OrganizationApi* | [**org_publicize_member**](docs/OrganizationApi.md#org_publicize_member) | **Put** /orgs/{org}/public_members/{username} | Publicize a user's membership
  104. *OrganizationApi* | [**org_remove_team_member**](docs/OrganizationApi.md#org_remove_team_member) | **Delete** /teams/{id}/members/{username} | Remove a team member
  105. *OrganizationApi* | [**org_remove_team_repository**](docs/OrganizationApi.md#org_remove_team_repository) | **Delete** /teams/{id}/repos/{org}/{repo} | Remove a repository from a team
  106. *OrganizationApi* | [**team_search**](docs/OrganizationApi.md#team_search) | **Get** /orgs/{org}/teams/search | Search for teams within an organization
  107. *RepositoryApi* | [**create_current_user_repo**](docs/RepositoryApi.md#create_current_user_repo) | **Post** /user/repos | Create a repository
  108. *RepositoryApi* | [**create_fork**](docs/RepositoryApi.md#create_fork) | **Post** /repos/{owner}/{repo}/forks | Fork a repository
  109. *RepositoryApi* | [**get_blob**](docs/RepositoryApi.md#get_blob) | **Get** /repos/{owner}/{repo}/git/blobs/{sha} | Gets the blob of a repository.
  110. *RepositoryApi* | [**get_tag**](docs/RepositoryApi.md#get_tag) | **Get** /repos/{owner}/{repo}/git/tags/{sha} | Gets the tag object of an annotated tag (not lightweight tags)
  111. *RepositoryApi* | [**get_tree**](docs/RepositoryApi.md#get_tree) | **Get** /repos/{owner}/{repo}/git/trees/{sha} | Gets the tree of a repository.
  112. *RepositoryApi* | [**list_forks**](docs/RepositoryApi.md#list_forks) | **Get** /repos/{owner}/{repo}/forks | List a repository's forks
  113. *RepositoryApi* | [**repo_add_collaborator**](docs/RepositoryApi.md#repo_add_collaborator) | **Put** /repos/{owner}/{repo}/collaborators/{collaborator} | Add a collaborator to a repository
  114. *RepositoryApi* | [**repo_add_topc**](docs/RepositoryApi.md#repo_add_topc) | **Put** /repos/{owner}/{repo}/topics/{topic} | Add a topic to a repository
  115. *RepositoryApi* | [**repo_check_collaborator**](docs/RepositoryApi.md#repo_check_collaborator) | **Get** /repos/{owner}/{repo}/collaborators/{collaborator} | Check if a user is a collaborator of a repository
  116. *RepositoryApi* | [**repo_create_file**](docs/RepositoryApi.md#repo_create_file) | **Post** /repos/{owner}/{repo}/contents/{filepath} | Create a file in a repository
  117. *RepositoryApi* | [**repo_create_hook**](docs/RepositoryApi.md#repo_create_hook) | **Post** /repos/{owner}/{repo}/hooks | Create a hook
  118. *RepositoryApi* | [**repo_create_key**](docs/RepositoryApi.md#repo_create_key) | **Post** /repos/{owner}/{repo}/keys | Add a key to a repository
  119. *RepositoryApi* | [**repo_create_pull_request**](docs/RepositoryApi.md#repo_create_pull_request) | **Post** /repos/{owner}/{repo}/pulls | Create a pull request
  120. *RepositoryApi* | [**repo_create_release**](docs/RepositoryApi.md#repo_create_release) | **Post** /repos/{owner}/{repo}/releases | Create a release
  121. *RepositoryApi* | [**repo_create_release_attachment**](docs/RepositoryApi.md#repo_create_release_attachment) | **Post** /repos/{owner}/{repo}/releases/{id}/assets | Create a release attachment
  122. *RepositoryApi* | [**repo_create_status**](docs/RepositoryApi.md#repo_create_status) | **Post** /repos/{owner}/{repo}/statuses/{sha} | Create a commit status
  123. *RepositoryApi* | [**repo_delete**](docs/RepositoryApi.md#repo_delete) | **Delete** /repos/{owner}/{repo} | Delete a repository
  124. *RepositoryApi* | [**repo_delete_collaborator**](docs/RepositoryApi.md#repo_delete_collaborator) | **Delete** /repos/{owner}/{repo}/collaborators/{collaborator} | Delete a collaborator from a repository
  125. *RepositoryApi* | [**repo_delete_file**](docs/RepositoryApi.md#repo_delete_file) | **Delete** /repos/{owner}/{repo}/contents/{filepath} | Delete a file in a repository
  126. *RepositoryApi* | [**repo_delete_git_hook**](docs/RepositoryApi.md#repo_delete_git_hook) | **Delete** /repos/{owner}/{repo}/hooks/git/{id} | Delete a Git hook in a repository
  127. *RepositoryApi* | [**repo_delete_hook**](docs/RepositoryApi.md#repo_delete_hook) | **Delete** /repos/{owner}/{repo}/hooks/{id} | Delete a hook in a repository
  128. *RepositoryApi* | [**repo_delete_key**](docs/RepositoryApi.md#repo_delete_key) | **Delete** /repos/{owner}/{repo}/keys/{id} | Delete a key from a repository
  129. *RepositoryApi* | [**repo_delete_release**](docs/RepositoryApi.md#repo_delete_release) | **Delete** /repos/{owner}/{repo}/releases/{id} | Delete a release
  130. *RepositoryApi* | [**repo_delete_release_attachment**](docs/RepositoryApi.md#repo_delete_release_attachment) | **Delete** /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Delete a release attachment
  131. *RepositoryApi* | [**repo_delete_topic**](docs/RepositoryApi.md#repo_delete_topic) | **Delete** /repos/{owner}/{repo}/topics/{topic} | Delete a topic from a repository
  132. *RepositoryApi* | [**repo_edit**](docs/RepositoryApi.md#repo_edit) | **Patch** /repos/{owner}/{repo} | Edit a repository's properties. Only fields that are set will be changed.
  133. *RepositoryApi* | [**repo_edit_git_hook**](docs/RepositoryApi.md#repo_edit_git_hook) | **Patch** /repos/{owner}/{repo}/hooks/git/{id} | Edit a Git hook in a repository
  134. *RepositoryApi* | [**repo_edit_hook**](docs/RepositoryApi.md#repo_edit_hook) | **Patch** /repos/{owner}/{repo}/hooks/{id} | Edit a hook in a repository
  135. *RepositoryApi* | [**repo_edit_pull_request**](docs/RepositoryApi.md#repo_edit_pull_request) | **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.
  136. *RepositoryApi* | [**repo_edit_release**](docs/RepositoryApi.md#repo_edit_release) | **Patch** /repos/{owner}/{repo}/releases/{id} | Update a release
  137. *RepositoryApi* | [**repo_edit_release_attachment**](docs/RepositoryApi.md#repo_edit_release_attachment) | **Patch** /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Edit a release attachment
  138. *RepositoryApi* | [**repo_get**](docs/RepositoryApi.md#repo_get) | **Get** /repos/{owner}/{repo} | Get a repository
  139. *RepositoryApi* | [**repo_get_all_commits**](docs/RepositoryApi.md#repo_get_all_commits) | **Get** /repos/{owner}/{repo}/commits | Get a list of all commits from a repository
  140. *RepositoryApi* | [**repo_get_archive**](docs/RepositoryApi.md#repo_get_archive) | **Get** /repos/{owner}/{repo}/archive/{archive} | Get an archive of a repository
  141. *RepositoryApi* | [**repo_get_branch**](docs/RepositoryApi.md#repo_get_branch) | **Get** /repos/{owner}/{repo}/branches/{branch} | Retrieve a specific branch from a repository, including its effective branch protection
  142. *RepositoryApi* | [**repo_get_by_id**](docs/RepositoryApi.md#repo_get_by_id) | **Get** /repositories/{id} | Get a repository by id
  143. *RepositoryApi* | [**repo_get_combined_status_by_ref**](docs/RepositoryApi.md#repo_get_combined_status_by_ref) | **Get** /repos/{owner}/{repo}/commits/{ref}/statuses | Get a commit's combined status, by branch/tag/commit reference
  144. *RepositoryApi* | [**repo_get_contents**](docs/RepositoryApi.md#repo_get_contents) | **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
  145. *RepositoryApi* | [**repo_get_contents_list**](docs/RepositoryApi.md#repo_get_contents_list) | **Get** /repos/{owner}/{repo}/contents | Gets the metadata of all the entries of the root dir
  146. *RepositoryApi* | [**repo_get_editor_config**](docs/RepositoryApi.md#repo_get_editor_config) | **Get** /repos/{owner}/{repo}/editorconfig/{filepath} | Get the EditorConfig definitions of a file in a repository
  147. *RepositoryApi* | [**repo_get_git_hook**](docs/RepositoryApi.md#repo_get_git_hook) | **Get** /repos/{owner}/{repo}/hooks/git/{id} | Get a Git hook
  148. *RepositoryApi* | [**repo_get_hook**](docs/RepositoryApi.md#repo_get_hook) | **Get** /repos/{owner}/{repo}/hooks/{id} | Get a hook
  149. *RepositoryApi* | [**repo_get_key**](docs/RepositoryApi.md#repo_get_key) | **Get** /repos/{owner}/{repo}/keys/{id} | Get a repository's key by id
  150. *RepositoryApi* | [**repo_get_pull_request**](docs/RepositoryApi.md#repo_get_pull_request) | **Get** /repos/{owner}/{repo}/pulls/{index} | Get a pull request
  151. *RepositoryApi* | [**repo_get_raw_file**](docs/RepositoryApi.md#repo_get_raw_file) | **Get** /repos/{owner}/{repo}/raw/{filepath} | Get a file from a repository
  152. *RepositoryApi* | [**repo_get_release**](docs/RepositoryApi.md#repo_get_release) | **Get** /repos/{owner}/{repo}/releases/{id} | Get a release
  153. *RepositoryApi* | [**repo_get_release_attachment**](docs/RepositoryApi.md#repo_get_release_attachment) | **Get** /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Get a release attachment
  154. *RepositoryApi* | [**repo_get_single_commit**](docs/RepositoryApi.md#repo_get_single_commit) | **Get** /repos/{owner}/{repo}/git/commits/{sha} | Get a single commit from a repository
  155. *RepositoryApi* | [**repo_list_all_git_refs**](docs/RepositoryApi.md#repo_list_all_git_refs) | **Get** /repos/{owner}/{repo}/git/refs | Get specified ref or filtered repository's refs
  156. *RepositoryApi* | [**repo_list_branches**](docs/RepositoryApi.md#repo_list_branches) | **Get** /repos/{owner}/{repo}/branches | List a repository's branches
  157. *RepositoryApi* | [**repo_list_collaborators**](docs/RepositoryApi.md#repo_list_collaborators) | **Get** /repos/{owner}/{repo}/collaborators | List a repository's collaborators
  158. *RepositoryApi* | [**repo_list_git_hooks**](docs/RepositoryApi.md#repo_list_git_hooks) | **Get** /repos/{owner}/{repo}/hooks/git | List the Git hooks in a repository
  159. *RepositoryApi* | [**repo_list_git_refs**](docs/RepositoryApi.md#repo_list_git_refs) | **Get** /repos/{owner}/{repo}/git/refs/{ref} | Get specified ref or filtered repository's refs
  160. *RepositoryApi* | [**repo_list_hooks**](docs/RepositoryApi.md#repo_list_hooks) | **Get** /repos/{owner}/{repo}/hooks | List the hooks in a repository
  161. *RepositoryApi* | [**repo_list_keys**](docs/RepositoryApi.md#repo_list_keys) | **Get** /repos/{owner}/{repo}/keys | List a repository's keys
  162. *RepositoryApi* | [**repo_list_pull_requests**](docs/RepositoryApi.md#repo_list_pull_requests) | **Get** /repos/{owner}/{repo}/pulls | List a repo's pull requests
  163. *RepositoryApi* | [**repo_list_release_attachments**](docs/RepositoryApi.md#repo_list_release_attachments) | **Get** /repos/{owner}/{repo}/releases/{id}/assets | List release's attachments
  164. *RepositoryApi* | [**repo_list_releases**](docs/RepositoryApi.md#repo_list_releases) | **Get** /repos/{owner}/{repo}/releases | List a repo's releases
  165. *RepositoryApi* | [**repo_list_stargazers**](docs/RepositoryApi.md#repo_list_stargazers) | **Get** /repos/{owner}/{repo}/stargazers | List a repo's stargazers
  166. *RepositoryApi* | [**repo_list_statuses**](docs/RepositoryApi.md#repo_list_statuses) | **Get** /repos/{owner}/{repo}/statuses/{sha} | Get a commit's statuses
  167. *RepositoryApi* | [**repo_list_subscribers**](docs/RepositoryApi.md#repo_list_subscribers) | **Get** /repos/{owner}/{repo}/subscribers | List a repo's watchers
  168. *RepositoryApi* | [**repo_list_tags**](docs/RepositoryApi.md#repo_list_tags) | **Get** /repos/{owner}/{repo}/tags | List a repository's tags
  169. *RepositoryApi* | [**repo_list_topics**](docs/RepositoryApi.md#repo_list_topics) | **Get** /repos/{owner}/{repo}/topics | Get list of topics that a repository has
  170. *RepositoryApi* | [**repo_merge_pull_request**](docs/RepositoryApi.md#repo_merge_pull_request) | **Post** /repos/{owner}/{repo}/pulls/{index}/merge | Merge a pull request
  171. *RepositoryApi* | [**repo_migrate**](docs/RepositoryApi.md#repo_migrate) | **Post** /repos/migrate | Migrate a remote git repository
  172. *RepositoryApi* | [**repo_mirror_sync**](docs/RepositoryApi.md#repo_mirror_sync) | **Post** /repos/{owner}/{repo}/mirror-sync | Sync a mirrored repository
  173. *RepositoryApi* | [**repo_pull_request_is_merged**](docs/RepositoryApi.md#repo_pull_request_is_merged) | **Get** /repos/{owner}/{repo}/pulls/{index}/merge | Check if a pull request has been merged
  174. *RepositoryApi* | [**repo_search**](docs/RepositoryApi.md#repo_search) | **Get** /repos/search | Search for repositories
  175. *RepositoryApi* | [**repo_signing_key**](docs/RepositoryApi.md#repo_signing_key) | **Get** /repos/{owner}/{repo}/signing-key.gpg | Get signing-key.gpg for given repository
  176. *RepositoryApi* | [**repo_test_hook**](docs/RepositoryApi.md#repo_test_hook) | **Post** /repos/{owner}/{repo}/hooks/{id}/tests | Test a push webhook
  177. *RepositoryApi* | [**repo_tracked_times**](docs/RepositoryApi.md#repo_tracked_times) | **Get** /repos/{owner}/{repo}/times | List a repo's tracked times
  178. *RepositoryApi* | [**repo_update_file**](docs/RepositoryApi.md#repo_update_file) | **Put** /repos/{owner}/{repo}/contents/{filepath} | Update a file in a repository
  179. *RepositoryApi* | [**repo_update_topics**](docs/RepositoryApi.md#repo_update_topics) | **Put** /repos/{owner}/{repo}/topics | Replace list of topics for a repository
  180. *RepositoryApi* | [**topic_search**](docs/RepositoryApi.md#topic_search) | **Get** /topics/search | search topics via keyword
  181. *RepositoryApi* | [**user_current_check_subscription**](docs/RepositoryApi.md#user_current_check_subscription) | **Get** /repos/{owner}/{repo}/subscription | Check if the current user is watching a repo
  182. *RepositoryApi* | [**user_current_delete_subscription**](docs/RepositoryApi.md#user_current_delete_subscription) | **Delete** /repos/{owner}/{repo}/subscription | Unwatch a repo
  183. *RepositoryApi* | [**user_current_put_subscription**](docs/RepositoryApi.md#user_current_put_subscription) | **Put** /repos/{owner}/{repo}/subscription | Watch a repo
  184. *UserApi* | [**create_current_user_repo**](docs/UserApi.md#create_current_user_repo) | **Post** /user/repos | Create a repository
  185. *UserApi* | [**user_add_email**](docs/UserApi.md#user_add_email) | **Post** /user/emails | Add email addresses
  186. *UserApi* | [**user_check_following**](docs/UserApi.md#user_check_following) | **Get** /users/{follower}/following/{followee} | Check if one user is following another user
  187. *UserApi* | [**user_create_token**](docs/UserApi.md#user_create_token) | **Post** /users/{username}/tokens | Create an access token
  188. *UserApi* | [**user_current_check_following**](docs/UserApi.md#user_current_check_following) | **Get** /user/following/{username} | Check whether a user is followed by the authenticated user
  189. *UserApi* | [**user_current_check_starring**](docs/UserApi.md#user_current_check_starring) | **Get** /user/starred/{owner}/{repo} | Whether the authenticated is starring the repo
  190. *UserApi* | [**user_current_delete_follow**](docs/UserApi.md#user_current_delete_follow) | **Delete** /user/following/{username} | Unfollow a user
  191. *UserApi* | [**user_current_delete_gpg_key**](docs/UserApi.md#user_current_delete_gpg_key) | **Delete** /user/gpg_keys/{id} | Remove a GPG key
  192. *UserApi* | [**user_current_delete_key**](docs/UserApi.md#user_current_delete_key) | **Delete** /user/keys/{id} | Delete a public key
  193. *UserApi* | [**user_current_delete_star**](docs/UserApi.md#user_current_delete_star) | **Delete** /user/starred/{owner}/{repo} | Unstar the given repo
  194. *UserApi* | [**user_current_get_gpg_key**](docs/UserApi.md#user_current_get_gpg_key) | **Get** /user/gpg_keys/{id} | Get a GPG key
  195. *UserApi* | [**user_current_get_key**](docs/UserApi.md#user_current_get_key) | **Get** /user/keys/{id} | Get a public key
  196. *UserApi* | [**user_current_list_followers**](docs/UserApi.md#user_current_list_followers) | **Get** /user/followers | List the authenticated user's followers
  197. *UserApi* | [**user_current_list_following**](docs/UserApi.md#user_current_list_following) | **Get** /user/following | List the users that the authenticated user is following
  198. *UserApi* | [**user_current_list_gpg_keys**](docs/UserApi.md#user_current_list_gpg_keys) | **Get** /user/gpg_keys | List the authenticated user's GPG keys
  199. *UserApi* | [**user_current_list_keys**](docs/UserApi.md#user_current_list_keys) | **Get** /user/keys | List the authenticated user's public keys
  200. *UserApi* | [**user_current_list_repos**](docs/UserApi.md#user_current_list_repos) | **Get** /user/repos | List the repos that the authenticated user owns or has access to
  201. *UserApi* | [**user_current_list_starred**](docs/UserApi.md#user_current_list_starred) | **Get** /user/starred | The repos that the authenticated user has starred
  202. *UserApi* | [**user_current_list_subscriptions**](docs/UserApi.md#user_current_list_subscriptions) | **Get** /user/subscriptions | List repositories watched by the authenticated user
  203. *UserApi* | [**user_current_post_gpg_key**](docs/UserApi.md#user_current_post_gpg_key) | **Post** /user/gpg_keys | Create a GPG key
  204. *UserApi* | [**user_current_post_key**](docs/UserApi.md#user_current_post_key) | **Post** /user/keys | Create a public key
  205. *UserApi* | [**user_current_put_follow**](docs/UserApi.md#user_current_put_follow) | **Put** /user/following/{username} | Follow a user
  206. *UserApi* | [**user_current_put_star**](docs/UserApi.md#user_current_put_star) | **Put** /user/starred/{owner}/{repo} | Star the given repo
  207. *UserApi* | [**user_current_tracked_times**](docs/UserApi.md#user_current_tracked_times) | **Get** /user/times | List the current user's tracked times
  208. *UserApi* | [**user_delete_access_token**](docs/UserApi.md#user_delete_access_token) | **Delete** /users/{username}/tokens/{token} | delete an access token
  209. *UserApi* | [**user_delete_email**](docs/UserApi.md#user_delete_email) | **Delete** /user/emails | Delete email addresses
  210. *UserApi* | [**user_get**](docs/UserApi.md#user_get) | **Get** /users/{username} | Get a user
  211. *UserApi* | [**user_get_current**](docs/UserApi.md#user_get_current) | **Get** /user | Get the authenticated user
  212. *UserApi* | [**user_get_heatmap_data**](docs/UserApi.md#user_get_heatmap_data) | **Get** /users/{username}/heatmap | Get a user's heatmap
  213. *UserApi* | [**user_get_stop_watches**](docs/UserApi.md#user_get_stop_watches) | **Get** /user/stopwatches | Get list of all existing stopwatches
  214. *UserApi* | [**user_get_tokens**](docs/UserApi.md#user_get_tokens) | **Get** /users/{username}/tokens | List the authenticated user's access tokens
  215. *UserApi* | [**user_list_emails**](docs/UserApi.md#user_list_emails) | **Get** /user/emails | List the authenticated user's email addresses
  216. *UserApi* | [**user_list_followers**](docs/UserApi.md#user_list_followers) | **Get** /users/{username}/followers | List the given user's followers
  217. *UserApi* | [**user_list_following**](docs/UserApi.md#user_list_following) | **Get** /users/{username}/following | List the users that the given user is following
  218. *UserApi* | [**user_list_gpg_keys**](docs/UserApi.md#user_list_gpg_keys) | **Get** /users/{username}/gpg_keys | List the given user's GPG keys
  219. *UserApi* | [**user_list_keys**](docs/UserApi.md#user_list_keys) | **Get** /users/{username}/keys | List the given user's public keys
  220. *UserApi* | [**user_list_repos**](docs/UserApi.md#user_list_repos) | **Get** /users/{username}/repos | List the repos owned by the given user
  221. *UserApi* | [**user_list_starred**](docs/UserApi.md#user_list_starred) | **Get** /users/{username}/starred | The repos that the given user has starred
  222. *UserApi* | [**user_list_subscriptions**](docs/UserApi.md#user_list_subscriptions) | **Get** /users/{username}/subscriptions | List the repositories watched by a user
  223. *UserApi* | [**user_list_teams**](docs/UserApi.md#user_list_teams) | **Get** /user/teams | List all the teams a user belongs to
  224. *UserApi* | [**user_search**](docs/UserApi.md#user_search) | **Get** /users/search | Search for users
  225. *UserApi* | [**user_tracked_times**](docs/UserApi.md#user_tracked_times) | **Get** /repos/{owner}/{repo}/times/{user} | List a user's tracked times in a repo
  226. ## Documentation For Models
  227. - [AccessToken](docs/AccessToken.md)
  228. - [AddCollaboratorOption](docs/AddCollaboratorOption.md)
  229. - [AddTimeOption](docs/AddTimeOption.md)
  230. - [AnnotatedTag](docs/AnnotatedTag.md)
  231. - [AnnotatedTagObject](docs/AnnotatedTagObject.md)
  232. - [ApiError](docs/ApiError.md)
  233. - [Attachment](docs/Attachment.md)
  234. - [Branch](docs/Branch.md)
  235. - [Comment](docs/Comment.md)
  236. - [Commit](docs/Commit.md)
  237. - [CommitDateOptions](docs/CommitDateOptions.md)
  238. - [CommitMeta](docs/CommitMeta.md)
  239. - [CommitUser](docs/CommitUser.md)
  240. - [ContentsResponse](docs/ContentsResponse.md)
  241. - [CreateEmailOption](docs/CreateEmailOption.md)
  242. - [CreateFileOptions](docs/CreateFileOptions.md)
  243. - [CreateForkOption](docs/CreateForkOption.md)
  244. - [CreateGpgKeyOption](docs/CreateGpgKeyOption.md)
  245. - [CreateHookOption](docs/CreateHookOption.md)
  246. - [CreateHookOptionConfig](docs/CreateHookOptionConfig.md)
  247. - [CreateIssueCommentOption](docs/CreateIssueCommentOption.md)
  248. - [CreateIssueOption](docs/CreateIssueOption.md)
  249. - [CreateKeyOption](docs/CreateKeyOption.md)
  250. - [CreateLabelOption](docs/CreateLabelOption.md)
  251. - [CreateMilestoneOption](docs/CreateMilestoneOption.md)
  252. - [CreateOrgOption](docs/CreateOrgOption.md)
  253. - [CreatePullRequestOption](docs/CreatePullRequestOption.md)
  254. - [CreateReleaseOption](docs/CreateReleaseOption.md)
  255. - [CreateRepoOption](docs/CreateRepoOption.md)
  256. - [CreateStatusOption](docs/CreateStatusOption.md)
  257. - [CreateTeamOption](docs/CreateTeamOption.md)
  258. - [CreateUserOption](docs/CreateUserOption.md)
  259. - [DeleteEmailOption](docs/DeleteEmailOption.md)
  260. - [DeleteFileOptions](docs/DeleteFileOptions.md)
  261. - [DeployKey](docs/DeployKey.md)
  262. - [EditAttachmentOptions](docs/EditAttachmentOptions.md)
  263. - [EditDeadlineOption](docs/EditDeadlineOption.md)
  264. - [EditGitHookOption](docs/EditGitHookOption.md)
  265. - [EditHookOption](docs/EditHookOption.md)
  266. - [EditIssueCommentOption](docs/EditIssueCommentOption.md)
  267. - [EditIssueOption](docs/EditIssueOption.md)
  268. - [EditLabelOption](docs/EditLabelOption.md)
  269. - [EditMilestoneOption](docs/EditMilestoneOption.md)
  270. - [EditOrgOption](docs/EditOrgOption.md)
  271. - [EditPullRequestOption](docs/EditPullRequestOption.md)
  272. - [EditReactionOption](docs/EditReactionOption.md)
  273. - [EditReleaseOption](docs/EditReleaseOption.md)
  274. - [EditRepoOption](docs/EditRepoOption.md)
  275. - [EditTeamOption](docs/EditTeamOption.md)
  276. - [EditUserOption](docs/EditUserOption.md)
  277. - [Email](docs/Email.md)
  278. - [ExternalTracker](docs/ExternalTracker.md)
  279. - [ExternalWiki](docs/ExternalWiki.md)
  280. - [FileCommitResponse](docs/FileCommitResponse.md)
  281. - [FileDeleteResponse](docs/FileDeleteResponse.md)
  282. - [FileLinksResponse](docs/FileLinksResponse.md)
  283. - [FileResponse](docs/FileResponse.md)
  284. - [GitBlobResponse](docs/GitBlobResponse.md)
  285. - [GitEntry](docs/GitEntry.md)
  286. - [GitHook](docs/GitHook.md)
  287. - [GitObject](docs/GitObject.md)
  288. - [GitTreeResponse](docs/GitTreeResponse.md)
  289. - [GpgKey](docs/GpgKey.md)
  290. - [GpgKeyEmail](docs/GpgKeyEmail.md)
  291. - [Hook](docs/Hook.md)
  292. - [Identity](docs/Identity.md)
  293. - [InlineResponse200](docs/InlineResponse200.md)
  294. - [InlineResponse2001](docs/InlineResponse2001.md)
  295. - [InternalTracker](docs/InternalTracker.md)
  296. - [Issue](docs/Issue.md)
  297. - [IssueDeadline](docs/IssueDeadline.md)
  298. - [IssueLabelsOption](docs/IssueLabelsOption.md)
  299. - [Label](docs/Label.md)
  300. - [MarkdownOption](docs/MarkdownOption.md)
  301. - [MergePullRequestOption](docs/MergePullRequestOption.md)
  302. - [MigrateRepoForm](docs/MigrateRepoForm.md)
  303. - [Milestone](docs/Milestone.md)
  304. - [Organization](docs/Organization.md)
  305. - [PayloadCommit](docs/PayloadCommit.md)
  306. - [PayloadCommitVerification](docs/PayloadCommitVerification.md)
  307. - [PayloadUser](docs/PayloadUser.md)
  308. - [Permission](docs/Permission.md)
  309. - [PrBranchInfo](docs/PrBranchInfo.md)
  310. - [PublicKey](docs/PublicKey.md)
  311. - [PullRequest](docs/PullRequest.md)
  312. - [PullRequestMeta](docs/PullRequestMeta.md)
  313. - [Reaction](docs/Reaction.md)
  314. - [Reference](docs/Reference.md)
  315. - [Release](docs/Release.md)
  316. - [RepoCommit](docs/RepoCommit.md)
  317. - [RepoTopicOptions](docs/RepoTopicOptions.md)
  318. - [Repository](docs/Repository.md)
  319. - [RepositoryMeta](docs/RepositoryMeta.md)
  320. - [SearchResults](docs/SearchResults.md)
  321. - [ServerVersion](docs/ServerVersion.md)
  322. - [StateType](docs/StateType.md)
  323. - [Status](docs/Status.md)
  324. - [StatusState](docs/StatusState.md)
  325. - [StopWatch](docs/StopWatch.md)
  326. - [Tag](docs/Tag.md)
  327. - [Team](docs/Team.md)
  328. - [TimeStamp](docs/TimeStamp.md)
  329. - [TopicName](docs/TopicName.md)
  330. - [TopicResponse](docs/TopicResponse.md)
  331. - [TrackedTime](docs/TrackedTime.md)
  332. - [UpdateFileOptions](docs/UpdateFileOptions.md)
  333. - [User](docs/User.md)
  334. - [UserHeatmapData](docs/UserHeatmapData.md)
  335. - [WatchInfo](docs/WatchInfo.md)
  336. ## Documentation For Authorization
  337. ## AccessToken
  338. - **Type**: API key
  339. Example
  340. ```
  341. auth := context.WithValue(context.TODO(), sw.ContextAPIKey, sw.APIKey{
  342. Key: "APIKEY",
  343. Prefix: "Bearer", // Omit if not necessary.
  344. })
  345. r, err := client.Service.Operation(auth, args)
  346. ```
  347. ## AuthorizationHeaderToken
  348. - **Type**: API key
  349. Example
  350. ```
  351. auth := context.WithValue(context.TODO(), sw.ContextAPIKey, sw.APIKey{
  352. Key: "APIKEY",
  353. Prefix: "Bearer", // Omit if not necessary.
  354. })
  355. r, err := client.Service.Operation(auth, args)
  356. ```
  357. ## BasicAuth
  358. - **Type**: HTTP basic authentication
  359. Example
  360. ```
  361. auth := context.WithValue(context.TODO(), sw.ContextBasicAuth, sw.BasicAuth{
  362. UserName: "username",
  363. Password: "password",
  364. })
  365. r, err := client.Service.Operation(auth, args)
  366. ```
  367. ## SudoHeader
  368. - **Type**: API key
  369. Example
  370. ```
  371. auth := context.WithValue(context.TODO(), sw.ContextAPIKey, sw.APIKey{
  372. Key: "APIKEY",
  373. Prefix: "Bearer", // Omit if not necessary.
  374. })
  375. r, err := client.Service.Operation(auth, args)
  376. ```
  377. ## SudoParam
  378. - **Type**: API key
  379. Example
  380. ```
  381. auth := context.WithValue(context.TODO(), sw.ContextAPIKey, sw.APIKey{
  382. Key: "APIKEY",
  383. Prefix: "Bearer", // Omit if not necessary.
  384. })
  385. r, err := client.Service.Operation(auth, args)
  386. ```
  387. ## Token
  388. - **Type**: API key
  389. Example
  390. ```
  391. auth := context.WithValue(context.TODO(), sw.ContextAPIKey, sw.APIKey{
  392. Key: "APIKEY",
  393. Prefix: "Bearer", // Omit if not necessary.
  394. })
  395. r, err := client.Service.Operation(auth, args)
  396. ```
  397. ## Author