You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

swagger.v1.json 186 kB

Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
7 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619
  1. {
  2. "consumes": [
  3. "application/json",
  4. "text/plain"
  5. ],
  6. "produces": [
  7. "application/json",
  8. "text/html"
  9. ],
  10. "schemes": [
  11. "http",
  12. "https"
  13. ],
  14. "swagger": "2.0",
  15. "info": {
  16. "description": "This documentation describes the Gitea API.",
  17. "title": "Gitea API.",
  18. "license": {
  19. "name": "MIT",
  20. "url": "http://opensource.org/licenses/MIT"
  21. },
  22. "version": "1.1.1"
  23. },
  24. "basePath": "/api/v1",
  25. "paths": {
  26. "/admin/users": {
  27. "post": {
  28. "consumes": [
  29. "application/json"
  30. ],
  31. "produces": [
  32. "application/json"
  33. ],
  34. "tags": [
  35. "admin"
  36. ],
  37. "summary": "Create a user",
  38. "operationId": "adminCreateUser",
  39. "parameters": [
  40. {
  41. "name": "body",
  42. "in": "body",
  43. "schema": {
  44. "$ref": "#/definitions/CreateUserOption"
  45. }
  46. }
  47. ],
  48. "responses": {
  49. "201": {
  50. "$ref": "#/responses/User"
  51. },
  52. "403": {
  53. "$ref": "#/responses/forbidden"
  54. },
  55. "422": {
  56. "$ref": "#/responses/validationError"
  57. }
  58. }
  59. }
  60. },
  61. "/admin/users/{username}": {
  62. "delete": {
  63. "produces": [
  64. "application/json"
  65. ],
  66. "tags": [
  67. "admin"
  68. ],
  69. "summary": "Delete a user",
  70. "operationId": "adminDeleteUser",
  71. "parameters": [
  72. {
  73. "type": "string",
  74. "description": "username of user to delete",
  75. "name": "username",
  76. "in": "path",
  77. "required": true
  78. }
  79. ],
  80. "responses": {
  81. "204": {
  82. "$ref": "#/responses/empty"
  83. },
  84. "403": {
  85. "$ref": "#/responses/forbidden"
  86. },
  87. "422": {
  88. "$ref": "#/responses/validationError"
  89. }
  90. }
  91. },
  92. "patch": {
  93. "consumes": [
  94. "application/json"
  95. ],
  96. "produces": [
  97. "application/json"
  98. ],
  99. "tags": [
  100. "admin"
  101. ],
  102. "summary": "Edit an existing user",
  103. "operationId": "adminEditUser",
  104. "parameters": [
  105. {
  106. "type": "string",
  107. "description": "username of user to edit",
  108. "name": "username",
  109. "in": "path",
  110. "required": true
  111. },
  112. {
  113. "name": "body",
  114. "in": "body",
  115. "schema": {
  116. "$ref": "#/definitions/EditUserOption"
  117. }
  118. }
  119. ],
  120. "responses": {
  121. "200": {
  122. "$ref": "#/responses/User"
  123. },
  124. "403": {
  125. "$ref": "#/responses/forbidden"
  126. },
  127. "422": {
  128. "$ref": "#/responses/validationError"
  129. }
  130. }
  131. }
  132. },
  133. "/admin/users/{username}/keys": {
  134. "post": {
  135. "consumes": [
  136. "application/json"
  137. ],
  138. "produces": [
  139. "application/json"
  140. ],
  141. "tags": [
  142. "admin"
  143. ],
  144. "summary": "Add a public key on behalf of a user",
  145. "operationId": "adminCreatePublicKey",
  146. "parameters": [
  147. {
  148. "type": "string",
  149. "description": "username of the user",
  150. "name": "username",
  151. "in": "path",
  152. "required": true
  153. }
  154. ],
  155. "responses": {
  156. "201": {
  157. "$ref": "#/responses/PublicKey"
  158. },
  159. "403": {
  160. "$ref": "#/responses/forbidden"
  161. },
  162. "422": {
  163. "$ref": "#/responses/validationError"
  164. }
  165. }
  166. }
  167. },
  168. "/admin/users/{username}/keys/{id}": {
  169. "delete": {
  170. "produces": [
  171. "application/json"
  172. ],
  173. "tags": [
  174. "admin"
  175. ],
  176. "summary": "Delete a user's public key",
  177. "operationId": "adminDeleteUserPublicKey",
  178. "parameters": [
  179. {
  180. "type": "string",
  181. "description": "username of user",
  182. "name": "username",
  183. "in": "path",
  184. "required": true
  185. },
  186. {
  187. "type": "integer",
  188. "description": "id of the key to delete",
  189. "name": "id",
  190. "in": "path",
  191. "required": true
  192. }
  193. ],
  194. "responses": {
  195. "204": {
  196. "$ref": "#/responses/empty"
  197. },
  198. "403": {
  199. "$ref": "#/responses/forbidden"
  200. },
  201. "404": {
  202. "$ref": "#/responses/notFound"
  203. }
  204. }
  205. }
  206. },
  207. "/admin/users/{username}/orgs": {
  208. "post": {
  209. "consumes": [
  210. "application/json"
  211. ],
  212. "produces": [
  213. "application/json"
  214. ],
  215. "tags": [
  216. "admin"
  217. ],
  218. "summary": "Create an organization",
  219. "operationId": "adminCreateOrg",
  220. "parameters": [
  221. {
  222. "type": "string",
  223. "description": "username of the user that will own the created organization",
  224. "name": "username",
  225. "in": "path",
  226. "required": true
  227. }
  228. ],
  229. "responses": {
  230. "201": {
  231. "$ref": "#/responses/Organization"
  232. },
  233. "403": {
  234. "$ref": "#/responses/forbidden"
  235. },
  236. "422": {
  237. "$ref": "#/responses/validationError"
  238. }
  239. }
  240. }
  241. },
  242. "/admin/users/{username}/repos": {
  243. "post": {
  244. "consumes": [
  245. "application/json"
  246. ],
  247. "produces": [
  248. "application/json"
  249. ],
  250. "tags": [
  251. "admin"
  252. ],
  253. "summary": "Create a repository on behalf a user",
  254. "operationId": "adminCreateRepo",
  255. "parameters": [
  256. {
  257. "type": "string",
  258. "description": "username of the user. This user will own the created repository",
  259. "name": "username",
  260. "in": "path",
  261. "required": true
  262. }
  263. ],
  264. "responses": {
  265. "201": {
  266. "$ref": "#/responses/Repository"
  267. },
  268. "403": {
  269. "$ref": "#/responses/forbidden"
  270. },
  271. "422": {
  272. "$ref": "#/responses/validationError"
  273. }
  274. }
  275. }
  276. },
  277. "/markdown": {
  278. "post": {
  279. "consumes": [
  280. "application/json"
  281. ],
  282. "produces": [
  283. "text/html"
  284. ],
  285. "tags": [
  286. "miscellaneous"
  287. ],
  288. "summary": "Render a markdown document as HTML",
  289. "operationId": "renderMarkdown",
  290. "parameters": [
  291. {
  292. "name": "body",
  293. "in": "body",
  294. "schema": {
  295. "$ref": "#/definitions/MarkdownOption"
  296. }
  297. }
  298. ],
  299. "responses": {
  300. "200": {
  301. "$ref": "#/responses/MarkdownRender"
  302. },
  303. "422": {
  304. "$ref": "#/responses/validationError"
  305. }
  306. }
  307. }
  308. },
  309. "/markdown/raw": {
  310. "post": {
  311. "consumes": [
  312. "text/plain"
  313. ],
  314. "produces": [
  315. "text/html"
  316. ],
  317. "tags": [
  318. "miscellaneous"
  319. ],
  320. "summary": "Render raw markdown as HTML",
  321. "operationId": "renderMarkdownRaw",
  322. "parameters": [
  323. {
  324. "type": "string",
  325. "name": "body",
  326. "in": "body"
  327. }
  328. ],
  329. "responses": {
  330. "200": {
  331. "$ref": "#/responses/MarkdownRender"
  332. },
  333. "422": {
  334. "$ref": "#/responses/validationError"
  335. }
  336. }
  337. }
  338. },
  339. "/org/{org}/repos": {
  340. "post": {
  341. "consumes": [
  342. "application/json"
  343. ],
  344. "produces": [
  345. "application/json"
  346. ],
  347. "tags": [
  348. "organization"
  349. ],
  350. "summary": "Create a repository in an organization",
  351. "operationId": "createOrgRepo",
  352. "parameters": [
  353. {
  354. "type": "string",
  355. "description": "name of organization",
  356. "name": "org",
  357. "in": "path",
  358. "required": true
  359. },
  360. {
  361. "name": "body",
  362. "in": "body",
  363. "schema": {
  364. "$ref": "#/definitions/CreateRepoOption"
  365. }
  366. }
  367. ],
  368. "responses": {
  369. "201": {
  370. "$ref": "#/responses/Repository"
  371. },
  372. "403": {
  373. "$ref": "#/responses/forbidden"
  374. },
  375. "422": {
  376. "$ref": "#/responses/validationError"
  377. }
  378. }
  379. }
  380. },
  381. "/orgs/{org}": {
  382. "get": {
  383. "produces": [
  384. "application/json"
  385. ],
  386. "tags": [
  387. "organization"
  388. ],
  389. "summary": "Get an organization",
  390. "operationId": "orgGet",
  391. "parameters": [
  392. {
  393. "type": "string",
  394. "description": "name of the organization to get",
  395. "name": "org",
  396. "in": "path",
  397. "required": true
  398. }
  399. ],
  400. "responses": {
  401. "200": {
  402. "$ref": "#/responses/Organization"
  403. }
  404. }
  405. },
  406. "patch": {
  407. "consumes": [
  408. "application/json"
  409. ],
  410. "produces": [
  411. "application/json"
  412. ],
  413. "tags": [
  414. "organization"
  415. ],
  416. "summary": "Edit an organization",
  417. "operationId": "orgEdit",
  418. "parameters": [
  419. {
  420. "type": "string",
  421. "description": "name of the organization to edit",
  422. "name": "org",
  423. "in": "path",
  424. "required": true
  425. },
  426. {
  427. "name": "body",
  428. "in": "body",
  429. "schema": {
  430. "$ref": "#/definitions/EditOrgOption"
  431. }
  432. }
  433. ],
  434. "responses": {
  435. "200": {
  436. "$ref": "#/responses/Organization"
  437. }
  438. }
  439. }
  440. },
  441. "/orgs/{org}/hooks": {
  442. "get": {
  443. "produces": [
  444. "application/json"
  445. ],
  446. "tags": [
  447. "organization"
  448. ],
  449. "summary": "List an organization's webhooks",
  450. "operationId": "orgListHooks",
  451. "responses": {
  452. "200": {
  453. "$ref": "#/responses/HookList"
  454. }
  455. }
  456. }
  457. },
  458. "/orgs/{org}/hooks/": {
  459. "post": {
  460. "consumes": [
  461. "application/json"
  462. ],
  463. "produces": [
  464. "application/json"
  465. ],
  466. "tags": [
  467. "organization"
  468. ],
  469. "summary": "Create a hook",
  470. "operationId": "orgCreateHook",
  471. "responses": {
  472. "201": {
  473. "$ref": "#/responses/Hook"
  474. }
  475. }
  476. }
  477. },
  478. "/orgs/{org}/hooks/{id}": {
  479. "get": {
  480. "produces": [
  481. "application/json"
  482. ],
  483. "tags": [
  484. "organization"
  485. ],
  486. "summary": "Get a hook",
  487. "operationId": "orgGetHook",
  488. "responses": {
  489. "200": {
  490. "$ref": "#/responses/Hook"
  491. }
  492. }
  493. },
  494. "delete": {
  495. "produces": [
  496. "application/json"
  497. ],
  498. "tags": [
  499. "organization"
  500. ],
  501. "summary": "Delete a hook",
  502. "operationId": "orgDeleteHook",
  503. "responses": {
  504. "204": {
  505. "$ref": "#/responses/empty"
  506. }
  507. }
  508. },
  509. "patch": {
  510. "consumes": [
  511. "application/json"
  512. ],
  513. "produces": [
  514. "application/json"
  515. ],
  516. "tags": [
  517. "organization"
  518. ],
  519. "summary": "Update a hook",
  520. "operationId": "orgEditHook",
  521. "responses": {
  522. "200": {
  523. "$ref": "#/responses/Hook"
  524. }
  525. }
  526. }
  527. },
  528. "/orgs/{org}/members": {
  529. "get": {
  530. "produces": [
  531. "application/json"
  532. ],
  533. "tags": [
  534. "organization"
  535. ],
  536. "summary": "List an organization's members",
  537. "operationId": "orgListMembers",
  538. "parameters": [
  539. {
  540. "type": "string",
  541. "description": "name of the organization",
  542. "name": "org",
  543. "in": "path",
  544. "required": true
  545. }
  546. ],
  547. "responses": {
  548. "200": {
  549. "$ref": "#/responses/UserList"
  550. }
  551. }
  552. }
  553. },
  554. "/orgs/{org}/members/{username}": {
  555. "get": {
  556. "tags": [
  557. "organization"
  558. ],
  559. "summary": "Check if a user is a member of an organization",
  560. "operationId": "orgIsMember",
  561. "parameters": [
  562. {
  563. "type": "string",
  564. "description": "name of the organization",
  565. "name": "org",
  566. "in": "path",
  567. "required": true
  568. },
  569. {
  570. "type": "string",
  571. "description": "username of the user",
  572. "name": "username",
  573. "in": "path",
  574. "required": true
  575. }
  576. ],
  577. "responses": {
  578. "204": {
  579. "description": "user is a member",
  580. "schema": {
  581. "$ref": "#/responses/empty"
  582. }
  583. },
  584. "404": {
  585. "description": "user is not a member",
  586. "schema": {
  587. "$ref": "#/responses/empty"
  588. }
  589. }
  590. }
  591. },
  592. "delete": {
  593. "produces": [
  594. "application/json"
  595. ],
  596. "tags": [
  597. "organization"
  598. ],
  599. "summary": "Remove a member from an organization",
  600. "operationId": "orgDeleteMember",
  601. "parameters": [
  602. {
  603. "type": "string",
  604. "description": "name of the organization",
  605. "name": "org",
  606. "in": "path",
  607. "required": true
  608. },
  609. {
  610. "type": "string",
  611. "description": "username of the user",
  612. "name": "username",
  613. "in": "path",
  614. "required": true
  615. }
  616. ],
  617. "responses": {
  618. "204": {
  619. "description": "member removed",
  620. "schema": {
  621. "$ref": "#/responses/empty"
  622. }
  623. }
  624. }
  625. }
  626. },
  627. "/orgs/{org}/public_members": {
  628. "get": {
  629. "produces": [
  630. "application/json"
  631. ],
  632. "tags": [
  633. "organization"
  634. ],
  635. "summary": "List an organization's public members",
  636. "operationId": "orgListPublicMembers",
  637. "parameters": [
  638. {
  639. "type": "string",
  640. "description": "name of the organization",
  641. "name": "org",
  642. "in": "path",
  643. "required": true
  644. }
  645. ],
  646. "responses": {
  647. "200": {
  648. "$ref": "#/responses/UserList"
  649. }
  650. }
  651. }
  652. },
  653. "/orgs/{org}/public_members/{username}": {
  654. "get": {
  655. "tags": [
  656. "organization"
  657. ],
  658. "summary": "Check if a user is a public member of an organization",
  659. "operationId": "orgIsPublicMember",
  660. "parameters": [
  661. {
  662. "type": "string",
  663. "description": "name of the organization",
  664. "name": "org",
  665. "in": "path",
  666. "required": true
  667. },
  668. {
  669. "type": "string",
  670. "description": "username of the user",
  671. "name": "username",
  672. "in": "path",
  673. "required": true
  674. }
  675. ],
  676. "responses": {
  677. "204": {
  678. "description": "user is a public member",
  679. "schema": {
  680. "$ref": "#/responses/empty"
  681. }
  682. },
  683. "404": {
  684. "description": "user is not a public member",
  685. "schema": {
  686. "$ref": "#/responses/empty"
  687. }
  688. }
  689. }
  690. },
  691. "put": {
  692. "produces": [
  693. "application/json"
  694. ],
  695. "tags": [
  696. "organization"
  697. ],
  698. "summary": "Publicize a user's membership",
  699. "operationId": "orgPublicizeMember",
  700. "parameters": [
  701. {
  702. "type": "string",
  703. "description": "name of the organization",
  704. "name": "org",
  705. "in": "path",
  706. "required": true
  707. },
  708. {
  709. "type": "string",
  710. "description": "username of the user",
  711. "name": "username",
  712. "in": "path",
  713. "required": true
  714. }
  715. ],
  716. "responses": {
  717. "204": {
  718. "description": "membership publicized",
  719. "schema": {
  720. "$ref": "#/responses/empty"
  721. }
  722. }
  723. }
  724. },
  725. "delete": {
  726. "produces": [
  727. "application/json"
  728. ],
  729. "tags": [
  730. "organization"
  731. ],
  732. "summary": "Conceal a user's membership",
  733. "operationId": "orgConcealMember",
  734. "parameters": [
  735. {
  736. "type": "string",
  737. "description": "name of the organization",
  738. "name": "org",
  739. "in": "path",
  740. "required": true
  741. },
  742. {
  743. "type": "string",
  744. "description": "username of the user",
  745. "name": "username",
  746. "in": "path",
  747. "required": true
  748. }
  749. ],
  750. "responses": {
  751. "204": {
  752. "$ref": "#/responses/empty"
  753. }
  754. }
  755. }
  756. },
  757. "/orgs/{org}/repos": {
  758. "get": {
  759. "produces": [
  760. "application/json"
  761. ],
  762. "tags": [
  763. "organization"
  764. ],
  765. "summary": "List an organization's repos",
  766. "operationId": "orgListRepos",
  767. "parameters": [
  768. {
  769. "type": "string",
  770. "description": "name of the organization",
  771. "name": "org",
  772. "in": "path",
  773. "required": true
  774. }
  775. ],
  776. "responses": {
  777. "200": {
  778. "$ref": "#/responses/RepositoryList"
  779. }
  780. }
  781. }
  782. },
  783. "/orgs/{org}/teams": {
  784. "get": {
  785. "produces": [
  786. "application/json"
  787. ],
  788. "tags": [
  789. "organization"
  790. ],
  791. "summary": "List an organization's teams",
  792. "operationId": "orgListTeams",
  793. "parameters": [
  794. {
  795. "type": "string",
  796. "description": "name of the organization",
  797. "name": "org",
  798. "in": "path",
  799. "required": true
  800. }
  801. ],
  802. "responses": {
  803. "200": {
  804. "$ref": "#/responses/TeamList"
  805. }
  806. }
  807. },
  808. "post": {
  809. "consumes": [
  810. "application/json"
  811. ],
  812. "produces": [
  813. "application/json"
  814. ],
  815. "tags": [
  816. "organization"
  817. ],
  818. "summary": "Create a team",
  819. "operationId": "orgCreateTeam",
  820. "parameters": [
  821. {
  822. "type": "string",
  823. "description": "name of the organization",
  824. "name": "org",
  825. "in": "path",
  826. "required": true
  827. },
  828. {
  829. "name": "body",
  830. "in": "body",
  831. "schema": {
  832. "$ref": "#/definitions/CreateTeamOption"
  833. }
  834. }
  835. ],
  836. "responses": {
  837. "201": {
  838. "$ref": "#/responses/Team"
  839. }
  840. }
  841. }
  842. },
  843. "/repos/migrate": {
  844. "post": {
  845. "consumes": [
  846. "application/json"
  847. ],
  848. "produces": [
  849. "application/json"
  850. ],
  851. "tags": [
  852. "repository"
  853. ],
  854. "summary": "Migrate a remote git repository",
  855. "operationId": "repoMigrate",
  856. "parameters": [
  857. {
  858. "name": "body",
  859. "in": "body",
  860. "schema": {
  861. "$ref": "#/definitions/MigrateRepoForm"
  862. }
  863. }
  864. ],
  865. "responses": {
  866. "201": {
  867. "$ref": "#/responses/Repository"
  868. }
  869. }
  870. }
  871. },
  872. "/repos/search": {
  873. "get": {
  874. "produces": [
  875. "application/json"
  876. ],
  877. "tags": [
  878. "repository"
  879. ],
  880. "summary": "Search for repositories",
  881. "operationId": "repoSearch",
  882. "parameters": [
  883. {
  884. "type": "string",
  885. "description": "keyword",
  886. "name": "q",
  887. "in": "query"
  888. },
  889. {
  890. "type": "integer",
  891. "description": "search only for repos that the user with the given id owns or contributes to",
  892. "name": "uid",
  893. "in": "query"
  894. },
  895. {
  896. "type": "integer",
  897. "description": "page number of results to return (1-based)",
  898. "name": "page",
  899. "in": "query"
  900. },
  901. {
  902. "type": "integer",
  903. "description": "page size of results, maximum page size is 50",
  904. "name": "limit",
  905. "in": "query"
  906. },
  907. {
  908. "type": "string",
  909. "description": "type of repository to search for. Supported values are \"fork\", \"source\", \"mirror\" and \"collaborative\"",
  910. "name": "mode",
  911. "in": "query"
  912. },
  913. {
  914. "type": "boolean",
  915. "description": "if `uid` is given, search only for repos that the user owns",
  916. "name": "exclusive",
  917. "in": "query"
  918. }
  919. ],
  920. "responses": {
  921. "200": {
  922. "$ref": "#/responses/SearchResults"
  923. },
  924. "422": {
  925. "$ref": "#/responses/validationError"
  926. }
  927. }
  928. }
  929. },
  930. "/repos/{owner}/{repo}": {
  931. "get": {
  932. "produces": [
  933. "application/json"
  934. ],
  935. "tags": [
  936. "repository"
  937. ],
  938. "summary": "Get a repository",
  939. "operationId": "repoGet",
  940. "parameters": [
  941. {
  942. "type": "string",
  943. "description": "owner of the repo",
  944. "name": "owner",
  945. "in": "path",
  946. "required": true
  947. },
  948. {
  949. "type": "string",
  950. "description": "name of the repo",
  951. "name": "repo",
  952. "in": "path",
  953. "required": true
  954. }
  955. ],
  956. "responses": {
  957. "200": {
  958. "$ref": "#/responses/Repository"
  959. }
  960. }
  961. },
  962. "delete": {
  963. "produces": [
  964. "application/json"
  965. ],
  966. "tags": [
  967. "repository"
  968. ],
  969. "summary": "Delete a repository",
  970. "operationId": "repoDelete",
  971. "parameters": [
  972. {
  973. "type": "string",
  974. "description": "owner of the repo to delete",
  975. "name": "owner",
  976. "in": "path",
  977. "required": true
  978. },
  979. {
  980. "type": "string",
  981. "description": "name of the repo to delete",
  982. "name": "repo",
  983. "in": "path",
  984. "required": true
  985. }
  986. ],
  987. "responses": {
  988. "204": {
  989. "$ref": "#/responses/empty"
  990. },
  991. "403": {
  992. "$ref": "#/responses/forbidden"
  993. }
  994. }
  995. }
  996. },
  997. "/repos/{owner}/{repo}/archive/{filepath}": {
  998. "get": {
  999. "produces": [
  1000. "application/json"
  1001. ],
  1002. "tags": [
  1003. "repository"
  1004. ],
  1005. "summary": "Get an archive of a repository",
  1006. "operationId": "repoGetArchive",
  1007. "parameters": [
  1008. {
  1009. "type": "string",
  1010. "description": "owner of the repo",
  1011. "name": "owner",
  1012. "in": "path",
  1013. "required": true
  1014. },
  1015. {
  1016. "type": "string",
  1017. "description": "name of the repo",
  1018. "name": "repo",
  1019. "in": "path",
  1020. "required": true
  1021. },
  1022. {
  1023. "type": "string",
  1024. "description": "archive to download, consisting of a git reference and archive",
  1025. "name": "archive",
  1026. "in": "path",
  1027. "required": true
  1028. }
  1029. ],
  1030. "responses": {
  1031. "200": {}
  1032. }
  1033. }
  1034. },
  1035. "/repos/{owner}/{repo}/branches": {
  1036. "get": {
  1037. "produces": [
  1038. "application/json"
  1039. ],
  1040. "tags": [
  1041. "repository"
  1042. ],
  1043. "summary": "List a repository's branches",
  1044. "operationId": "repoListBranches",
  1045. "parameters": [
  1046. {
  1047. "type": "string",
  1048. "description": "owner of the repo",
  1049. "name": "owner",
  1050. "in": "path",
  1051. "required": true
  1052. },
  1053. {
  1054. "type": "string",
  1055. "description": "name of the repo",
  1056. "name": "repo",
  1057. "in": "path",
  1058. "required": true
  1059. }
  1060. ],
  1061. "responses": {
  1062. "200": {
  1063. "$ref": "#/responses/BranchList"
  1064. }
  1065. }
  1066. }
  1067. },
  1068. "/repos/{owner}/{repo}/branches/{branch}": {
  1069. "get": {
  1070. "produces": [
  1071. "application/json"
  1072. ],
  1073. "tags": [
  1074. "repository"
  1075. ],
  1076. "summary": "List a repository's branches",
  1077. "operationId": "repoGetBranch",
  1078. "parameters": [
  1079. {
  1080. "type": "string",
  1081. "description": "owner of the repo",
  1082. "name": "owner",
  1083. "in": "path",
  1084. "required": true
  1085. },
  1086. {
  1087. "type": "string",
  1088. "description": "name of the repo",
  1089. "name": "repo",
  1090. "in": "path",
  1091. "required": true
  1092. },
  1093. {
  1094. "type": "string",
  1095. "description": "branch to get",
  1096. "name": "branch",
  1097. "in": "path",
  1098. "required": true
  1099. }
  1100. ],
  1101. "responses": {
  1102. "200": {
  1103. "$ref": "#/responses/Branch"
  1104. }
  1105. }
  1106. }
  1107. },
  1108. "/repos/{owner}/{repo}/collaborators": {
  1109. "get": {
  1110. "produces": [
  1111. "application/json"
  1112. ],
  1113. "tags": [
  1114. "repository"
  1115. ],
  1116. "summary": "List a repository's collaborators",
  1117. "operationId": "repoListCollaborators",
  1118. "parameters": [
  1119. {
  1120. "type": "string",
  1121. "description": "owner of the repo",
  1122. "name": "owner",
  1123. "in": "path",
  1124. "required": true
  1125. },
  1126. {
  1127. "type": "string",
  1128. "description": "name of the repo",
  1129. "name": "repo",
  1130. "in": "path",
  1131. "required": true
  1132. }
  1133. ],
  1134. "responses": {
  1135. "200": {
  1136. "$ref": "#/responses/UserList"
  1137. }
  1138. }
  1139. }
  1140. },
  1141. "/repos/{owner}/{repo}/collaborators/{collaborator}": {
  1142. "get": {
  1143. "produces": [
  1144. "application/json"
  1145. ],
  1146. "tags": [
  1147. "repository"
  1148. ],
  1149. "summary": "Check if a user is a collaborator of a repository",
  1150. "operationId": "repoCheckCollaborator",
  1151. "parameters": [
  1152. {
  1153. "type": "string",
  1154. "description": "owner of the repo",
  1155. "name": "owner",
  1156. "in": "path",
  1157. "required": true
  1158. },
  1159. {
  1160. "type": "string",
  1161. "description": "name of the repo",
  1162. "name": "repo",
  1163. "in": "path",
  1164. "required": true
  1165. },
  1166. {
  1167. "type": "string",
  1168. "description": "username of the collaborator",
  1169. "name": "collaborator",
  1170. "in": "path",
  1171. "required": true
  1172. }
  1173. ],
  1174. "responses": {
  1175. "204": {
  1176. "$ref": "#/responses/empty"
  1177. },
  1178. "404": {
  1179. "$ref": "#/responses/empty"
  1180. }
  1181. }
  1182. },
  1183. "put": {
  1184. "produces": [
  1185. "application/json"
  1186. ],
  1187. "tags": [
  1188. "repository"
  1189. ],
  1190. "summary": "Add a collaborator to a repository",
  1191. "operationId": "repoAddCollaborator",
  1192. "parameters": [
  1193. {
  1194. "type": "string",
  1195. "description": "owner of the repo",
  1196. "name": "owner",
  1197. "in": "path",
  1198. "required": true
  1199. },
  1200. {
  1201. "type": "string",
  1202. "description": "name of the repo",
  1203. "name": "repo",
  1204. "in": "path",
  1205. "required": true
  1206. },
  1207. {
  1208. "type": "string",
  1209. "description": "username of the collaborator to add",
  1210. "name": "collaborator",
  1211. "in": "path",
  1212. "required": true
  1213. },
  1214. {
  1215. "name": "body",
  1216. "in": "body",
  1217. "schema": {
  1218. "$ref": "#/definitions/AddCollaboratorOption"
  1219. }
  1220. }
  1221. ],
  1222. "responses": {
  1223. "204": {
  1224. "$ref": "#/responses/empty"
  1225. }
  1226. }
  1227. },
  1228. "delete": {
  1229. "produces": [
  1230. "application/json"
  1231. ],
  1232. "tags": [
  1233. "repository"
  1234. ],
  1235. "summary": "Delete a collaborator from a repository",
  1236. "operationId": "repoDeleteCollaborator",
  1237. "parameters": [
  1238. {
  1239. "type": "string",
  1240. "description": "owner of the repo",
  1241. "name": "owner",
  1242. "in": "path",
  1243. "required": true
  1244. },
  1245. {
  1246. "type": "string",
  1247. "description": "name of the repo",
  1248. "name": "repo",
  1249. "in": "path",
  1250. "required": true
  1251. },
  1252. {
  1253. "type": "string",
  1254. "description": "username of the collaborator to delete",
  1255. "name": "collaborator",
  1256. "in": "path",
  1257. "required": true
  1258. }
  1259. ],
  1260. "responses": {
  1261. "204": {
  1262. "$ref": "#/responses/empty"
  1263. }
  1264. }
  1265. }
  1266. },
  1267. "/repos/{owner}/{repo}/commits/{ref}/statuses": {
  1268. "get": {
  1269. "produces": [
  1270. "application/json"
  1271. ],
  1272. "tags": [
  1273. "repository"
  1274. ],
  1275. "summary": "Get a commit's combined status, by branch/tag/commit reference",
  1276. "operationId": "repoGetCombinedStatusByRef",
  1277. "parameters": [
  1278. {
  1279. "type": "string",
  1280. "description": "owner of the repo",
  1281. "name": "owner",
  1282. "in": "path",
  1283. "required": true
  1284. },
  1285. {
  1286. "type": "string",
  1287. "description": "name of the repo",
  1288. "name": "repo",
  1289. "in": "path",
  1290. "required": true
  1291. },
  1292. {
  1293. "type": "string",
  1294. "description": "name of branch/tag/commit",
  1295. "name": "ref",
  1296. "in": "path",
  1297. "required": true
  1298. }
  1299. ],
  1300. "responses": {
  1301. "200": {
  1302. "$ref": "#/responses/Status"
  1303. }
  1304. }
  1305. }
  1306. },
  1307. "/repos/{owner}/{repo}/editorconfig/{filepath}": {
  1308. "get": {
  1309. "produces": [
  1310. "application/json"
  1311. ],
  1312. "tags": [
  1313. "repository"
  1314. ],
  1315. "summary": "Get the EditorConfig definitions of a file in a repository",
  1316. "operationId": "repoGetEditorConfig",
  1317. "parameters": [
  1318. {
  1319. "type": "string",
  1320. "description": "owner of the repo",
  1321. "name": "owner",
  1322. "in": "path",
  1323. "required": true
  1324. },
  1325. {
  1326. "type": "string",
  1327. "description": "name of the repo",
  1328. "name": "repo",
  1329. "in": "path",
  1330. "required": true
  1331. },
  1332. {
  1333. "type": "string",
  1334. "description": "filepath of file to get",
  1335. "name": "filepath",
  1336. "in": "path",
  1337. "required": true
  1338. }
  1339. ],
  1340. "responses": {
  1341. "200": {}
  1342. }
  1343. }
  1344. },
  1345. "/repos/{owner}/{repo}/forks": {
  1346. "get": {
  1347. "produces": [
  1348. "application/json"
  1349. ],
  1350. "tags": [
  1351. "repository"
  1352. ],
  1353. "summary": "List a repository's forks",
  1354. "operationId": "listForks",
  1355. "parameters": [
  1356. {
  1357. "type": "string",
  1358. "description": "owner of the repo",
  1359. "name": "owner",
  1360. "in": "path",
  1361. "required": true
  1362. },
  1363. {
  1364. "type": "string",
  1365. "description": "name of the repo",
  1366. "name": "repo",
  1367. "in": "path",
  1368. "required": true
  1369. }
  1370. ],
  1371. "responses": {
  1372. "200": {
  1373. "$ref": "#/responses/RepositoryList"
  1374. }
  1375. }
  1376. },
  1377. "post": {
  1378. "produces": [
  1379. "application/json"
  1380. ],
  1381. "tags": [
  1382. "repository"
  1383. ],
  1384. "summary": "Fork a repository",
  1385. "operationId": "createFork",
  1386. "parameters": [
  1387. {
  1388. "type": "string",
  1389. "description": "owner of the repo to fork",
  1390. "name": "owner",
  1391. "in": "path",
  1392. "required": true
  1393. },
  1394. {
  1395. "type": "string",
  1396. "description": "name of the repo to fork",
  1397. "name": "repo",
  1398. "in": "path",
  1399. "required": true
  1400. },
  1401. {
  1402. "name": "body",
  1403. "in": "body",
  1404. "schema": {
  1405. "$ref": "#/definitions/CreateForkOption"
  1406. }
  1407. }
  1408. ],
  1409. "responses": {
  1410. "202": {
  1411. "$ref": "#/responses/Repository"
  1412. }
  1413. }
  1414. }
  1415. },
  1416. "/repos/{owner}/{repo}/hooks": {
  1417. "get": {
  1418. "produces": [
  1419. "application/json"
  1420. ],
  1421. "tags": [
  1422. "repository"
  1423. ],
  1424. "summary": "List the hooks in a repository",
  1425. "operationId": "repoListHooks",
  1426. "parameters": [
  1427. {
  1428. "type": "string",
  1429. "description": "owner of the repo",
  1430. "name": "owner",
  1431. "in": "path",
  1432. "required": true
  1433. },
  1434. {
  1435. "type": "string",
  1436. "description": "name of the repo",
  1437. "name": "repo",
  1438. "in": "path",
  1439. "required": true
  1440. }
  1441. ],
  1442. "responses": {
  1443. "200": {
  1444. "$ref": "#/responses/HookList"
  1445. }
  1446. }
  1447. },
  1448. "post": {
  1449. "consumes": [
  1450. "application/json"
  1451. ],
  1452. "produces": [
  1453. "application/json"
  1454. ],
  1455. "tags": [
  1456. "repository"
  1457. ],
  1458. "summary": "Create a hook",
  1459. "operationId": "repoCreateHook",
  1460. "parameters": [
  1461. {
  1462. "type": "string",
  1463. "description": "owner of the repo",
  1464. "name": "owner",
  1465. "in": "path",
  1466. "required": true
  1467. },
  1468. {
  1469. "type": "string",
  1470. "description": "name of the repo",
  1471. "name": "repo",
  1472. "in": "path",
  1473. "required": true
  1474. },
  1475. {
  1476. "name": "body",
  1477. "in": "body",
  1478. "schema": {
  1479. "$ref": "#/definitions/CreateHookOption"
  1480. }
  1481. }
  1482. ],
  1483. "responses": {
  1484. "201": {
  1485. "$ref": "#/responses/Hook"
  1486. }
  1487. }
  1488. }
  1489. },
  1490. "/repos/{owner}/{repo}/hooks/{id}": {
  1491. "get": {
  1492. "produces": [
  1493. "application/json"
  1494. ],
  1495. "tags": [
  1496. "repository"
  1497. ],
  1498. "summary": "Get a hook",
  1499. "operationId": "repoGetHook",
  1500. "parameters": [
  1501. {
  1502. "type": "string",
  1503. "description": "owner of the repo",
  1504. "name": "owner",
  1505. "in": "path",
  1506. "required": true
  1507. },
  1508. {
  1509. "type": "string",
  1510. "description": "name of the repo",
  1511. "name": "repo",
  1512. "in": "path",
  1513. "required": true
  1514. },
  1515. {
  1516. "type": "integer",
  1517. "description": "id of the hook to get",
  1518. "name": "id",
  1519. "in": "path",
  1520. "required": true
  1521. }
  1522. ],
  1523. "responses": {
  1524. "200": {
  1525. "$ref": "#/responses/Hook"
  1526. }
  1527. }
  1528. },
  1529. "patch": {
  1530. "produces": [
  1531. "application/json"
  1532. ],
  1533. "tags": [
  1534. "repository"
  1535. ],
  1536. "summary": "Edit a hook in a repository",
  1537. "operationId": "repoEditHook",
  1538. "parameters": [
  1539. {
  1540. "type": "string",
  1541. "description": "owner of the repo",
  1542. "name": "owner",
  1543. "in": "path",
  1544. "required": true
  1545. },
  1546. {
  1547. "type": "string",
  1548. "description": "name of the repo",
  1549. "name": "repo",
  1550. "in": "path",
  1551. "required": true
  1552. },
  1553. {
  1554. "name": "body",
  1555. "in": "body",
  1556. "schema": {
  1557. "$ref": "#/definitions/EditHookOption"
  1558. }
  1559. }
  1560. ],
  1561. "responses": {
  1562. "200": {
  1563. "$ref": "#/responses/Hook"
  1564. }
  1565. }
  1566. }
  1567. },
  1568. "/repos/{owner}/{repo}/issue/{index}/comments": {
  1569. "get": {
  1570. "produces": [
  1571. "application/json"
  1572. ],
  1573. "tags": [
  1574. "issue"
  1575. ],
  1576. "summary": "List all comments on an issue",
  1577. "operationId": "issueGetComments",
  1578. "parameters": [
  1579. {
  1580. "type": "string",
  1581. "description": "owner of the repo",
  1582. "name": "owner",
  1583. "in": "path",
  1584. "required": true
  1585. },
  1586. {
  1587. "type": "string",
  1588. "description": "name of the repo",
  1589. "name": "repo",
  1590. "in": "path",
  1591. "required": true
  1592. },
  1593. {
  1594. "type": "integer",
  1595. "description": "index of the issue",
  1596. "name": "id",
  1597. "in": "path",
  1598. "required": true
  1599. },
  1600. {
  1601. "type": "string",
  1602. "description": "if provided, only comments updated since the specified time are returned.",
  1603. "name": "string",
  1604. "in": "query"
  1605. }
  1606. ],
  1607. "responses": {
  1608. "200": {
  1609. "$ref": "#/responses/CommentList"
  1610. }
  1611. }
  1612. }
  1613. },
  1614. "/repos/{owner}/{repo}/issue/{index}/labels": {
  1615. "put": {
  1616. "consumes": [
  1617. "application/json"
  1618. ],
  1619. "produces": [
  1620. "application/json"
  1621. ],
  1622. "tags": [
  1623. "issue"
  1624. ],
  1625. "summary": "Replace an issue's labels",
  1626. "operationId": "issueReplaceLabels",
  1627. "parameters": [
  1628. {
  1629. "type": "string",
  1630. "description": "owner of the repo",
  1631. "name": "owner",
  1632. "in": "path",
  1633. "required": true
  1634. },
  1635. {
  1636. "type": "string",
  1637. "description": "name of the repo",
  1638. "name": "repo",
  1639. "in": "path",
  1640. "required": true
  1641. },
  1642. {
  1643. "type": "integer",
  1644. "description": "index of the issue",
  1645. "name": "index",
  1646. "in": "path",
  1647. "required": true
  1648. },
  1649. {
  1650. "name": "body",
  1651. "in": "body",
  1652. "schema": {
  1653. "$ref": "#/definitions/IssueLabelsOption"
  1654. }
  1655. }
  1656. ],
  1657. "responses": {
  1658. "200": {
  1659. "$ref": "#/responses/LabelList"
  1660. }
  1661. }
  1662. },
  1663. "post": {
  1664. "consumes": [
  1665. "application/json"
  1666. ],
  1667. "produces": [
  1668. "application/json"
  1669. ],
  1670. "tags": [
  1671. "issue"
  1672. ],
  1673. "summary": "Add a label to an issue",
  1674. "operationId": "issueAddLabel",
  1675. "parameters": [
  1676. {
  1677. "type": "string",
  1678. "description": "owner of the repo",
  1679. "name": "owner",
  1680. "in": "path",
  1681. "required": true
  1682. },
  1683. {
  1684. "type": "string",
  1685. "description": "name of the repo",
  1686. "name": "repo",
  1687. "in": "path",
  1688. "required": true
  1689. },
  1690. {
  1691. "type": "integer",
  1692. "description": "index of the issue",
  1693. "name": "index",
  1694. "in": "path",
  1695. "required": true
  1696. },
  1697. {
  1698. "name": "body",
  1699. "in": "body",
  1700. "schema": {
  1701. "$ref": "#/definitions/IssueLabelsOption"
  1702. }
  1703. }
  1704. ],
  1705. "responses": {
  1706. "200": {
  1707. "$ref": "#/responses/LabelList"
  1708. }
  1709. }
  1710. },
  1711. "delete": {
  1712. "produces": [
  1713. "application/json"
  1714. ],
  1715. "tags": [
  1716. "issue"
  1717. ],
  1718. "summary": "Remove all labels from an issue",
  1719. "operationId": "issueClearLabels",
  1720. "parameters": [
  1721. {
  1722. "type": "string",
  1723. "description": "owner of the repo",
  1724. "name": "owner",
  1725. "in": "path",
  1726. "required": true
  1727. },
  1728. {
  1729. "type": "string",
  1730. "description": "name of the repo",
  1731. "name": "repo",
  1732. "in": "path",
  1733. "required": true
  1734. },
  1735. {
  1736. "type": "integer",
  1737. "description": "index of the issue",
  1738. "name": "index",
  1739. "in": "path",
  1740. "required": true
  1741. }
  1742. ],
  1743. "responses": {
  1744. "204": {
  1745. "$ref": "#/responses/empty"
  1746. }
  1747. }
  1748. }
  1749. },
  1750. "/repos/{owner}/{repo}/issue/{index}/labels/{id}": {
  1751. "delete": {
  1752. "produces": [
  1753. "application/json"
  1754. ],
  1755. "tags": [
  1756. "issue"
  1757. ],
  1758. "summary": "Remove a label from an issue",
  1759. "operationId": "issueRemoveLabel",
  1760. "parameters": [
  1761. {
  1762. "type": "string",
  1763. "description": "owner of the repo",
  1764. "name": "owner",
  1765. "in": "path",
  1766. "required": true
  1767. },
  1768. {
  1769. "type": "string",
  1770. "description": "name of the repo",
  1771. "name": "repo",
  1772. "in": "path",
  1773. "required": true
  1774. },
  1775. {
  1776. "type": "integer",
  1777. "description": "index of the issue",
  1778. "name": "index",
  1779. "in": "path",
  1780. "required": true
  1781. },
  1782. {
  1783. "type": "integer",
  1784. "description": "id of the label to remove",
  1785. "name": "id",
  1786. "in": "path",
  1787. "required": true
  1788. }
  1789. ],
  1790. "responses": {
  1791. "204": {
  1792. "$ref": "#/responses/empty"
  1793. }
  1794. }
  1795. }
  1796. },
  1797. "/repos/{owner}/{repo}/issues": {
  1798. "get": {
  1799. "produces": [
  1800. "application/json"
  1801. ],
  1802. "tags": [
  1803. "issue"
  1804. ],
  1805. "summary": "List a repository's issues",
  1806. "operationId": "issueListIssues",
  1807. "parameters": [
  1808. {
  1809. "type": "string",
  1810. "description": "owner of the repo",
  1811. "name": "owner",
  1812. "in": "path",
  1813. "required": true
  1814. },
  1815. {
  1816. "type": "string",
  1817. "description": "name of the repo",
  1818. "name": "repo",
  1819. "in": "path",
  1820. "required": true
  1821. },
  1822. {
  1823. "type": "string",
  1824. "description": "whether issue is open or closed",
  1825. "name": "state",
  1826. "in": "query"
  1827. },
  1828. {
  1829. "type": "integer",
  1830. "description": "page number of requested issues",
  1831. "name": "page",
  1832. "in": "query"
  1833. },
  1834. {
  1835. "type": "string",
  1836. "description": "search string",
  1837. "name": "q",
  1838. "in": "query"
  1839. }
  1840. ],
  1841. "responses": {
  1842. "200": {
  1843. "$ref": "#/responses/IssueList"
  1844. }
  1845. }
  1846. },
  1847. "post": {
  1848. "consumes": [
  1849. "application/json"
  1850. ],
  1851. "produces": [
  1852. "application/json"
  1853. ],
  1854. "tags": [
  1855. "issue"
  1856. ],
  1857. "summary": "Create an issue",
  1858. "operationId": "issueCreateIssue",
  1859. "parameters": [
  1860. {
  1861. "type": "string",
  1862. "description": "owner of the repo",
  1863. "name": "owner",
  1864. "in": "path",
  1865. "required": true
  1866. },
  1867. {
  1868. "type": "string",
  1869. "description": "name of the repo",
  1870. "name": "repo",
  1871. "in": "path",
  1872. "required": true
  1873. },
  1874. {
  1875. "name": "body",
  1876. "in": "body",
  1877. "schema": {
  1878. "$ref": "#/definitions/CreateIssueOption"
  1879. }
  1880. }
  1881. ],
  1882. "responses": {
  1883. "201": {
  1884. "$ref": "#/responses/Issue"
  1885. }
  1886. }
  1887. }
  1888. },
  1889. "/repos/{owner}/{repo}/issues/comments": {
  1890. "get": {
  1891. "produces": [
  1892. "application/json"
  1893. ],
  1894. "tags": [
  1895. "issue"
  1896. ],
  1897. "summary": "List all comments in a repository",
  1898. "operationId": "issueGetRepoComments",
  1899. "parameters": [
  1900. {
  1901. "type": "string",
  1902. "description": "owner of the repo",
  1903. "name": "owner",
  1904. "in": "path",
  1905. "required": true
  1906. },
  1907. {
  1908. "type": "string",
  1909. "description": "name of the repo",
  1910. "name": "repo",
  1911. "in": "path",
  1912. "required": true
  1913. },
  1914. {
  1915. "type": "string",
  1916. "description": "if provided, only comments updated since the provided time are returned.",
  1917. "name": "string",
  1918. "in": "query"
  1919. }
  1920. ],
  1921. "responses": {
  1922. "200": {
  1923. "$ref": "#/responses/CommentList"
  1924. }
  1925. }
  1926. }
  1927. },
  1928. "/repos/{owner}/{repo}/issues/comments/{id}": {
  1929. "delete": {
  1930. "tags": [
  1931. "issue"
  1932. ],
  1933. "summary": "Delete a comment",
  1934. "operationId": "issueDeleteComment",
  1935. "parameters": [
  1936. {
  1937. "type": "string",
  1938. "description": "owner of the repo",
  1939. "name": "owner",
  1940. "in": "path",
  1941. "required": true
  1942. },
  1943. {
  1944. "type": "string",
  1945. "description": "name of the repo",
  1946. "name": "repo",
  1947. "in": "path",
  1948. "required": true
  1949. },
  1950. {
  1951. "type": "integer",
  1952. "description": "id of comment to delete",
  1953. "name": "id",
  1954. "in": "path",
  1955. "required": true
  1956. }
  1957. ],
  1958. "responses": {
  1959. "204": {
  1960. "$ref": "#/responses/empty"
  1961. }
  1962. }
  1963. },
  1964. "patch": {
  1965. "consumes": [
  1966. "application/json"
  1967. ],
  1968. "produces": [
  1969. "application/json"
  1970. ],
  1971. "tags": [
  1972. "issue"
  1973. ],
  1974. "summary": "Edit a comment",
  1975. "operationId": "issueEditComment",
  1976. "parameters": [
  1977. {
  1978. "type": "string",
  1979. "description": "owner of the repo",
  1980. "name": "owner",
  1981. "in": "path",
  1982. "required": true
  1983. },
  1984. {
  1985. "type": "string",
  1986. "description": "name of the repo",
  1987. "name": "repo",
  1988. "in": "path",
  1989. "required": true
  1990. },
  1991. {
  1992. "type": "integer",
  1993. "description": "id of the comment to edit",
  1994. "name": "id",
  1995. "in": "path",
  1996. "required": true
  1997. },
  1998. {
  1999. "name": "body",
  2000. "in": "body",
  2001. "schema": {
  2002. "$ref": "#/definitions/EditIssueCommentOption"
  2003. }
  2004. }
  2005. ],
  2006. "responses": {
  2007. "200": {
  2008. "$ref": "#/responses/Comment"
  2009. }
  2010. }
  2011. }
  2012. },
  2013. "/repos/{owner}/{repo}/issues/{index}": {
  2014. "get": {
  2015. "produces": [
  2016. "application/json"
  2017. ],
  2018. "tags": [
  2019. "issue"
  2020. ],
  2021. "summary": "Get an issue",
  2022. "operationId": "issueGetIssue",
  2023. "parameters": [
  2024. {
  2025. "type": "string",
  2026. "description": "owner of the repo",
  2027. "name": "owner",
  2028. "in": "path",
  2029. "required": true
  2030. },
  2031. {
  2032. "type": "string",
  2033. "description": "name of the repo",
  2034. "name": "repo",
  2035. "in": "path",
  2036. "required": true
  2037. },
  2038. {
  2039. "type": "integer",
  2040. "description": "index of the issue to get",
  2041. "name": "index",
  2042. "in": "path",
  2043. "required": true
  2044. }
  2045. ],
  2046. "responses": {
  2047. "200": {
  2048. "$ref": "#/responses/Issue"
  2049. }
  2050. }
  2051. },
  2052. "patch": {
  2053. "consumes": [
  2054. "application/json"
  2055. ],
  2056. "produces": [
  2057. "application/json"
  2058. ],
  2059. "tags": [
  2060. "issue"
  2061. ],
  2062. "summary": "Edit an issue",
  2063. "operationId": "issueEditIssue",
  2064. "parameters": [
  2065. {
  2066. "type": "string",
  2067. "description": "owner of the repo",
  2068. "name": "owner",
  2069. "in": "path",
  2070. "required": true
  2071. },
  2072. {
  2073. "type": "string",
  2074. "description": "name of the repo",
  2075. "name": "repo",
  2076. "in": "path",
  2077. "required": true
  2078. },
  2079. {
  2080. "type": "integer",
  2081. "description": "index of the issue to edit",
  2082. "name": "index",
  2083. "in": "path",
  2084. "required": true
  2085. },
  2086. {
  2087. "name": "body",
  2088. "in": "body",
  2089. "schema": {
  2090. "$ref": "#/definitions/EditIssueOption"
  2091. }
  2092. }
  2093. ],
  2094. "responses": {
  2095. "201": {
  2096. "$ref": "#/responses/Issue"
  2097. }
  2098. }
  2099. }
  2100. },
  2101. "/repos/{owner}/{repo}/issues/{index}/comments": {
  2102. "post": {
  2103. "consumes": [
  2104. "application/json"
  2105. ],
  2106. "produces": [
  2107. "application/json"
  2108. ],
  2109. "tags": [
  2110. "issue"
  2111. ],
  2112. "summary": "Add a comment to an issue",
  2113. "operationId": "issueCreateComment",
  2114. "parameters": [
  2115. {
  2116. "type": "string",
  2117. "description": "owner of the repo",
  2118. "name": "owner",
  2119. "in": "path",
  2120. "required": true
  2121. },
  2122. {
  2123. "type": "string",
  2124. "description": "name of the repo",
  2125. "name": "repo",
  2126. "in": "path",
  2127. "required": true
  2128. },
  2129. {
  2130. "type": "integer",
  2131. "description": "index of the issue",
  2132. "name": "id",
  2133. "in": "path",
  2134. "required": true
  2135. },
  2136. {
  2137. "name": "body",
  2138. "in": "body",
  2139. "schema": {
  2140. "$ref": "#/definitions/CreateIssueOption"
  2141. }
  2142. }
  2143. ],
  2144. "responses": {
  2145. "201": {
  2146. "$ref": "#/responses/Comment"
  2147. }
  2148. }
  2149. }
  2150. },
  2151. "/repos/{owner}/{repo}/issues/{index}/comments/{id}": {
  2152. "delete": {
  2153. "tags": [
  2154. "issue"
  2155. ],
  2156. "summary": "Delete a comment",
  2157. "operationId": "issueDeleteCommentDeprecated",
  2158. "deprecated": true,
  2159. "parameters": [
  2160. {
  2161. "type": "string",
  2162. "description": "owner of the repo",
  2163. "name": "owner",
  2164. "in": "path",
  2165. "required": true
  2166. },
  2167. {
  2168. "type": "string",
  2169. "description": "name of the repo",
  2170. "name": "repo",
  2171. "in": "path",
  2172. "required": true
  2173. },
  2174. {
  2175. "type": "integer",
  2176. "description": "this parameter is ignored",
  2177. "name": "index",
  2178. "in": "path",
  2179. "required": true
  2180. },
  2181. {
  2182. "type": "integer",
  2183. "description": "id of comment to delete",
  2184. "name": "id",
  2185. "in": "path",
  2186. "required": true
  2187. }
  2188. ],
  2189. "responses": {
  2190. "204": {
  2191. "$ref": "#/responses/empty"
  2192. }
  2193. }
  2194. },
  2195. "patch": {
  2196. "consumes": [
  2197. "application/json"
  2198. ],
  2199. "produces": [
  2200. "application/json"
  2201. ],
  2202. "tags": [
  2203. "issue"
  2204. ],
  2205. "summary": "Edit a comment",
  2206. "operationId": "issueEditCommentDeprecated",
  2207. "deprecated": true,
  2208. "parameters": [
  2209. {
  2210. "type": "string",
  2211. "description": "owner of the repo",
  2212. "name": "owner",
  2213. "in": "path",
  2214. "required": true
  2215. },
  2216. {
  2217. "type": "string",
  2218. "description": "name of the repo",
  2219. "name": "repo",
  2220. "in": "path",
  2221. "required": true
  2222. },
  2223. {
  2224. "type": "integer",
  2225. "description": "this parameter is ignored",
  2226. "name": "index",
  2227. "in": "path",
  2228. "required": true
  2229. },
  2230. {
  2231. "type": "integer",
  2232. "description": "id of the comment to edit",
  2233. "name": "id",
  2234. "in": "path",
  2235. "required": true
  2236. },
  2237. {
  2238. "name": "body",
  2239. "in": "body",
  2240. "schema": {
  2241. "$ref": "#/definitions/EditIssueCommentOption"
  2242. }
  2243. }
  2244. ],
  2245. "responses": {
  2246. "200": {
  2247. "$ref": "#/responses/Comment"
  2248. }
  2249. }
  2250. }
  2251. },
  2252. "/repos/{owner}/{repo}/issues/{index}/labels": {
  2253. "get": {
  2254. "produces": [
  2255. "application/json"
  2256. ],
  2257. "tags": [
  2258. "issue"
  2259. ],
  2260. "summary": "Get an issue's labels",
  2261. "operationId": "issueGetLabels",
  2262. "parameters": [
  2263. {
  2264. "type": "string",
  2265. "description": "owner of the repo",
  2266. "name": "owner",
  2267. "in": "path",
  2268. "required": true
  2269. },
  2270. {
  2271. "type": "string",
  2272. "description": "name of the repo",
  2273. "name": "repo",
  2274. "in": "path",
  2275. "required": true
  2276. },
  2277. {
  2278. "type": "integer",
  2279. "description": "index of the issue",
  2280. "name": "index",
  2281. "in": "path",
  2282. "required": true
  2283. }
  2284. ],
  2285. "responses": {
  2286. "200": {
  2287. "$ref": "#/responses/LabelList"
  2288. },
  2289. "404": {
  2290. "$ref": "#/responses/notFound"
  2291. }
  2292. }
  2293. }
  2294. },
  2295. "/repos/{owner}/{repo}/issues/{index}/times": {
  2296. "get": {
  2297. "produces": [
  2298. "application/json"
  2299. ],
  2300. "tags": [
  2301. "issue"
  2302. ],
  2303. "summary": "List an issue's tracked times",
  2304. "operationId": "issueTrackedTimes",
  2305. "parameters": [
  2306. {
  2307. "type": "string",
  2308. "description": "owner of the repo",
  2309. "name": "owner",
  2310. "in": "path",
  2311. "required": true
  2312. },
  2313. {
  2314. "type": "string",
  2315. "description": "name of the repo",
  2316. "name": "repo",
  2317. "in": "path",
  2318. "required": true
  2319. },
  2320. {
  2321. "type": "integer",
  2322. "description": "index of the issue",
  2323. "name": "repo",
  2324. "in": "path",
  2325. "required": true
  2326. }
  2327. ],
  2328. "responses": {
  2329. "200": {
  2330. "$ref": "#/responses/TrackedTimeList"
  2331. }
  2332. }
  2333. },
  2334. "post": {
  2335. "consumes": [
  2336. "application/json"
  2337. ],
  2338. "produces": [
  2339. "application/json"
  2340. ],
  2341. "tags": [
  2342. "issue"
  2343. ],
  2344. "summary": "Add a tracked time to a issue",
  2345. "operationId": "issueAddTime",
  2346. "parameters": [
  2347. {
  2348. "type": "string",
  2349. "description": "owner of the repo",
  2350. "name": "owner",
  2351. "in": "path",
  2352. "required": true
  2353. },
  2354. {
  2355. "type": "string",
  2356. "description": "name of the repo",
  2357. "name": "repo",
  2358. "in": "path",
  2359. "required": true
  2360. },
  2361. {
  2362. "type": "integer",
  2363. "description": "index of the issue to add tracked time to",
  2364. "name": "id",
  2365. "in": "path",
  2366. "required": true
  2367. },
  2368. {
  2369. "name": "body",
  2370. "in": "body",
  2371. "schema": {
  2372. "$ref": "#/definitions/AddTimeOption"
  2373. }
  2374. }
  2375. ],
  2376. "responses": {
  2377. "200": {
  2378. "$ref": "#/responses/TrackedTime"
  2379. },
  2380. "400": {
  2381. "$ref": "#/responses/error"
  2382. },
  2383. "403": {
  2384. "$ref": "#/responses/error"
  2385. }
  2386. }
  2387. }
  2388. },
  2389. "/repos/{owner}/{repo}/keys": {
  2390. "get": {
  2391. "produces": [
  2392. "application/json"
  2393. ],
  2394. "tags": [
  2395. "repository"
  2396. ],
  2397. "summary": "List a repository's keys",
  2398. "operationId": "repoListKeys",
  2399. "parameters": [
  2400. {
  2401. "type": "string",
  2402. "description": "owner of the repo",
  2403. "name": "owner",
  2404. "in": "path",
  2405. "required": true
  2406. },
  2407. {
  2408. "type": "string",
  2409. "description": "name of the repo",
  2410. "name": "repo",
  2411. "in": "path",
  2412. "required": true
  2413. }
  2414. ],
  2415. "responses": {
  2416. "200": {
  2417. "$ref": "#/responses/DeployKeyList"
  2418. }
  2419. }
  2420. },
  2421. "post": {
  2422. "consumes": [
  2423. "application/json"
  2424. ],
  2425. "produces": [
  2426. "application/json"
  2427. ],
  2428. "tags": [
  2429. "repository"
  2430. ],
  2431. "summary": "Add a key to a repository",
  2432. "operationId": "repoCreateKey",
  2433. "parameters": [
  2434. {
  2435. "type": "string",
  2436. "description": "owner of the repo",
  2437. "name": "owner",
  2438. "in": "path",
  2439. "required": true
  2440. },
  2441. {
  2442. "type": "string",
  2443. "description": "name of the repo",
  2444. "name": "repo",
  2445. "in": "path",
  2446. "required": true
  2447. },
  2448. {
  2449. "name": "body",
  2450. "in": "body",
  2451. "schema": {
  2452. "$ref": "#/definitions/CreateKeyOption"
  2453. }
  2454. }
  2455. ],
  2456. "responses": {
  2457. "201": {
  2458. "$ref": "#/responses/DeployKey"
  2459. }
  2460. }
  2461. }
  2462. },
  2463. "/repos/{owner}/{repo}/keys/{id}": {
  2464. "get": {
  2465. "produces": [
  2466. "application/json"
  2467. ],
  2468. "tags": [
  2469. "repository"
  2470. ],
  2471. "summary": "Get a repository's key by id",
  2472. "operationId": "repoGetKey",
  2473. "parameters": [
  2474. {
  2475. "type": "string",
  2476. "description": "owner of the repo",
  2477. "name": "owner",
  2478. "in": "path",
  2479. "required": true
  2480. },
  2481. {
  2482. "type": "string",
  2483. "description": "name of the repo",
  2484. "name": "repo",
  2485. "in": "path",
  2486. "required": true
  2487. },
  2488. {
  2489. "type": "integer",
  2490. "description": "id of the key to get",
  2491. "name": "id",
  2492. "in": "path",
  2493. "required": true
  2494. }
  2495. ],
  2496. "responses": {
  2497. "200": {
  2498. "$ref": "#/responses/DeployKey"
  2499. }
  2500. }
  2501. },
  2502. "delete": {
  2503. "tags": [
  2504. "repository"
  2505. ],
  2506. "summary": "Delete a key from a repository",
  2507. "operationId": "repoDeleteKey",
  2508. "parameters": [
  2509. {
  2510. "type": "string",
  2511. "description": "owner of the repo",
  2512. "name": "owner",
  2513. "in": "path",
  2514. "required": true
  2515. },
  2516. {
  2517. "type": "string",
  2518. "description": "name of the repo",
  2519. "name": "repo",
  2520. "in": "path",
  2521. "required": true
  2522. },
  2523. {
  2524. "type": "integer",
  2525. "description": "id of the key to delete",
  2526. "name": "id",
  2527. "in": "path",
  2528. "required": true
  2529. }
  2530. ],
  2531. "responses": {
  2532. "204": {
  2533. "$ref": "#/responses/empty"
  2534. }
  2535. }
  2536. }
  2537. },
  2538. "/repos/{owner}/{repo}/labels": {
  2539. "get": {
  2540. "produces": [
  2541. "application/json"
  2542. ],
  2543. "tags": [
  2544. "issue"
  2545. ],
  2546. "summary": "Get all of a repository's labels",
  2547. "operationId": "issueListLabels",
  2548. "parameters": [
  2549. {
  2550. "type": "string",
  2551. "description": "owner of the repo",
  2552. "name": "owner",
  2553. "in": "path",
  2554. "required": true
  2555. },
  2556. {
  2557. "type": "string",
  2558. "description": "name of the repo",
  2559. "name": "repo",
  2560. "in": "path",
  2561. "required": true
  2562. }
  2563. ],
  2564. "responses": {
  2565. "200": {
  2566. "$ref": "#/responses/LabelList"
  2567. }
  2568. }
  2569. },
  2570. "post": {
  2571. "consumes": [
  2572. "application/json"
  2573. ],
  2574. "produces": [
  2575. "application/json"
  2576. ],
  2577. "tags": [
  2578. "issue"
  2579. ],
  2580. "summary": "Create a label",
  2581. "operationId": "issueCreateLabel",
  2582. "parameters": [
  2583. {
  2584. "type": "string",
  2585. "description": "owner of the repo",
  2586. "name": "owner",
  2587. "in": "path",
  2588. "required": true
  2589. },
  2590. {
  2591. "type": "string",
  2592. "description": "name of the repo",
  2593. "name": "repo",
  2594. "in": "path",
  2595. "required": true
  2596. },
  2597. {
  2598. "name": "body",
  2599. "in": "body",
  2600. "schema": {
  2601. "$ref": "#/definitions/CreateLabelOption"
  2602. }
  2603. }
  2604. ],
  2605. "responses": {
  2606. "201": {
  2607. "$ref": "#/responses/Label"
  2608. }
  2609. }
  2610. }
  2611. },
  2612. "/repos/{owner}/{repo}/labels/{id}": {
  2613. "get": {
  2614. "produces": [
  2615. "application/json"
  2616. ],
  2617. "tags": [
  2618. "issue"
  2619. ],
  2620. "summary": "Get a single label",
  2621. "operationId": "issueGetLabel",
  2622. "parameters": [
  2623. {
  2624. "type": "string",
  2625. "description": "owner of the repo",
  2626. "name": "owner",
  2627. "in": "path",
  2628. "required": true
  2629. },
  2630. {
  2631. "type": "string",
  2632. "description": "name of the repo",
  2633. "name": "repo",
  2634. "in": "path",
  2635. "required": true
  2636. },
  2637. {
  2638. "type": "integer",
  2639. "description": "id of the label to get",
  2640. "name": "id",
  2641. "in": "path",
  2642. "required": true
  2643. }
  2644. ],
  2645. "responses": {
  2646. "200": {
  2647. "$ref": "#/responses/Label"
  2648. }
  2649. }
  2650. },
  2651. "delete": {
  2652. "tags": [
  2653. "issue"
  2654. ],
  2655. "summary": "Delete a label",
  2656. "operationId": "issueDeleteLabel",
  2657. "parameters": [
  2658. {
  2659. "type": "string",
  2660. "description": "owner of the repo",
  2661. "name": "owner",
  2662. "in": "path",
  2663. "required": true
  2664. },
  2665. {
  2666. "type": "string",
  2667. "description": "name of the repo",
  2668. "name": "repo",
  2669. "in": "path",
  2670. "required": true
  2671. },
  2672. {
  2673. "type": "integer",
  2674. "description": "id of the label to delete",
  2675. "name": "id",
  2676. "in": "path",
  2677. "required": true
  2678. }
  2679. ],
  2680. "responses": {
  2681. "204": {
  2682. "$ref": "#/responses/empty"
  2683. }
  2684. }
  2685. },
  2686. "patch": {
  2687. "consumes": [
  2688. "application/json"
  2689. ],
  2690. "produces": [
  2691. "application/json"
  2692. ],
  2693. "tags": [
  2694. "issue"
  2695. ],
  2696. "summary": "Update a label",
  2697. "operationId": "issueEditLabel",
  2698. "parameters": [
  2699. {
  2700. "type": "string",
  2701. "description": "owner of the repo",
  2702. "name": "owner",
  2703. "in": "path",
  2704. "required": true
  2705. },
  2706. {
  2707. "type": "string",
  2708. "description": "name of the repo",
  2709. "name": "repo",
  2710. "in": "path",
  2711. "required": true
  2712. },
  2713. {
  2714. "type": "integer",
  2715. "description": "id of the label to edit",
  2716. "name": "id",
  2717. "in": "path",
  2718. "required": true
  2719. },
  2720. {
  2721. "name": "body",
  2722. "in": "body",
  2723. "schema": {
  2724. "$ref": "#/definitions/EditLabelOption"
  2725. }
  2726. }
  2727. ],
  2728. "responses": {
  2729. "200": {
  2730. "$ref": "#/responses/Label"
  2731. }
  2732. }
  2733. }
  2734. },
  2735. "/repos/{owner}/{repo}/milestones": {
  2736. "get": {
  2737. "produces": [
  2738. "application/json"
  2739. ],
  2740. "tags": [
  2741. "issue"
  2742. ],
  2743. "summary": "Get all of a repository's milestones",
  2744. "operationId": "issueGetMilestones",
  2745. "parameters": [
  2746. {
  2747. "type": "string",
  2748. "description": "owner of the repo",
  2749. "name": "owner",
  2750. "in": "path",
  2751. "required": true
  2752. },
  2753. {
  2754. "type": "string",
  2755. "description": "name of the repo",
  2756. "name": "repo",
  2757. "in": "path",
  2758. "required": true
  2759. },
  2760. {
  2761. "type": "integer",
  2762. "description": "id of the milestone to get",
  2763. "name": "id",
  2764. "in": "path",
  2765. "required": true
  2766. }
  2767. ],
  2768. "responses": {
  2769. "200": {
  2770. "$ref": "#/responses/MilestoneList"
  2771. }
  2772. }
  2773. },
  2774. "post": {
  2775. "consumes": [
  2776. "application/json"
  2777. ],
  2778. "produces": [
  2779. "application/json"
  2780. ],
  2781. "tags": [
  2782. "issue"
  2783. ],
  2784. "summary": "Create a milestone",
  2785. "operationId": "issueCreateMilestone",
  2786. "parameters": [
  2787. {
  2788. "type": "string",
  2789. "description": "owner of the repo",
  2790. "name": "owner",
  2791. "in": "path",
  2792. "required": true
  2793. },
  2794. {
  2795. "type": "string",
  2796. "description": "name of the repo",
  2797. "name": "repo",
  2798. "in": "path",
  2799. "required": true
  2800. },
  2801. {
  2802. "name": "body",
  2803. "in": "body",
  2804. "schema": {
  2805. "$ref": "#/definitions/CreateMilestoneOption"
  2806. }
  2807. }
  2808. ],
  2809. "responses": {
  2810. "201": {
  2811. "$ref": "#/responses/Milestone"
  2812. }
  2813. }
  2814. }
  2815. },
  2816. "/repos/{owner}/{repo}/milestones/{id}": {
  2817. "get": {
  2818. "produces": [
  2819. "application/json"
  2820. ],
  2821. "tags": [
  2822. "issue"
  2823. ],
  2824. "summary": "Get a milestone",
  2825. "operationId": "issueGetMilestone",
  2826. "responses": {
  2827. "200": {
  2828. "$ref": "#/responses/Milestone"
  2829. }
  2830. }
  2831. },
  2832. "delete": {
  2833. "tags": [
  2834. "issue"
  2835. ],
  2836. "summary": "Delete a milestone",
  2837. "operationId": "issueDeleteMilestone",
  2838. "parameters": [
  2839. {
  2840. "type": "string",
  2841. "description": "owner of the repo",
  2842. "name": "owner",
  2843. "in": "path",
  2844. "required": true
  2845. },
  2846. {
  2847. "type": "string",
  2848. "description": "name of the repo",
  2849. "name": "repo",
  2850. "in": "path",
  2851. "required": true
  2852. },
  2853. {
  2854. "type": "integer",
  2855. "description": "id of the milestone to delete",
  2856. "name": "body",
  2857. "in": "path",
  2858. "required": true
  2859. }
  2860. ],
  2861. "responses": {
  2862. "204": {
  2863. "$ref": "#/responses/empty"
  2864. }
  2865. }
  2866. },
  2867. "patch": {
  2868. "consumes": [
  2869. "application/json"
  2870. ],
  2871. "produces": [
  2872. "application/json"
  2873. ],
  2874. "tags": [
  2875. "issue"
  2876. ],
  2877. "summary": "Update a milestone",
  2878. "operationId": "issueEditMilestone",
  2879. "parameters": [
  2880. {
  2881. "type": "string",
  2882. "description": "owner of the repo",
  2883. "name": "owner",
  2884. "in": "path",
  2885. "required": true
  2886. },
  2887. {
  2888. "type": "string",
  2889. "description": "name of the repo",
  2890. "name": "repo",
  2891. "in": "path",
  2892. "required": true
  2893. },
  2894. {
  2895. "name": "body",
  2896. "in": "body",
  2897. "schema": {
  2898. "$ref": "#/definitions/EditMilestoneOption"
  2899. }
  2900. }
  2901. ],
  2902. "responses": {
  2903. "200": {
  2904. "$ref": "#/responses/Milestone"
  2905. }
  2906. }
  2907. }
  2908. },
  2909. "/repos/{owner}/{repo}/mirror-sync": {
  2910. "post": {
  2911. "produces": [
  2912. "application/json"
  2913. ],
  2914. "tags": [
  2915. "repository"
  2916. ],
  2917. "summary": "Sync a mirrored repository",
  2918. "operationId": "repoMirrorSync",
  2919. "parameters": [
  2920. {
  2921. "type": "string",
  2922. "description": "owner of the repo to sync",
  2923. "name": "owner",
  2924. "in": "path",
  2925. "required": true
  2926. },
  2927. {
  2928. "type": "string",
  2929. "description": "name of the repo to sync",
  2930. "name": "repo",
  2931. "in": "path",
  2932. "required": true
  2933. }
  2934. ],
  2935. "responses": {
  2936. "200": {
  2937. "$ref": "#/responses/empty"
  2938. }
  2939. }
  2940. }
  2941. },
  2942. "/repos/{owner}/{repo}/pulls": {
  2943. "get": {
  2944. "produces": [
  2945. "application/json"
  2946. ],
  2947. "tags": [
  2948. "repository"
  2949. ],
  2950. "summary": "List a repo's pull requests",
  2951. "operationId": "repoListPullRequests",
  2952. "parameters": [
  2953. {
  2954. "type": "string",
  2955. "description": "owner of the repo",
  2956. "name": "owner",
  2957. "in": "path",
  2958. "required": true
  2959. },
  2960. {
  2961. "type": "string",
  2962. "description": "name of the repo",
  2963. "name": "repo",
  2964. "in": "path",
  2965. "required": true
  2966. }
  2967. ],
  2968. "responses": {
  2969. "200": {
  2970. "$ref": "#/responses/PullRequestList"
  2971. }
  2972. }
  2973. },
  2974. "post": {
  2975. "consumes": [
  2976. "application/json"
  2977. ],
  2978. "produces": [
  2979. "application/json"
  2980. ],
  2981. "tags": [
  2982. "repository"
  2983. ],
  2984. "summary": "Create a pull request",
  2985. "operationId": "repoCreatePullRequest",
  2986. "parameters": [
  2987. {
  2988. "type": "string",
  2989. "description": "owner of the repo",
  2990. "name": "owner",
  2991. "in": "path",
  2992. "required": true
  2993. },
  2994. {
  2995. "type": "string",
  2996. "description": "name of the repo",
  2997. "name": "repo",
  2998. "in": "path",
  2999. "required": true
  3000. },
  3001. {
  3002. "name": "body",
  3003. "in": "body",
  3004. "schema": {
  3005. "$ref": "#/definitions/CreatePullRequestOption"
  3006. }
  3007. }
  3008. ],
  3009. "responses": {
  3010. "201": {
  3011. "$ref": "#/responses/PullRequest"
  3012. }
  3013. }
  3014. }
  3015. },
  3016. "/repos/{owner}/{repo}/pulls/{index}": {
  3017. "get": {
  3018. "produces": [
  3019. "application/json"
  3020. ],
  3021. "tags": [
  3022. "repository"
  3023. ],
  3024. "summary": "Get a pull request",
  3025. "operationId": "repoGetPullRequest",
  3026. "parameters": [
  3027. {
  3028. "type": "string",
  3029. "description": "owner of the repo",
  3030. "name": "owner",
  3031. "in": "path",
  3032. "required": true
  3033. },
  3034. {
  3035. "type": "string",
  3036. "description": "name of the repo",
  3037. "name": "repo",
  3038. "in": "path",
  3039. "required": true
  3040. },
  3041. {
  3042. "type": "integer",
  3043. "description": "index of the pull request to get",
  3044. "name": "index",
  3045. "in": "path",
  3046. "required": true
  3047. }
  3048. ],
  3049. "responses": {
  3050. "200": {
  3051. "$ref": "#/responses/PullRequest"
  3052. }
  3053. }
  3054. },
  3055. "patch": {
  3056. "consumes": [
  3057. "application/json"
  3058. ],
  3059. "produces": [
  3060. "application/json"
  3061. ],
  3062. "tags": [
  3063. "repository"
  3064. ],
  3065. "summary": "Update a pull request",
  3066. "operationId": "repoEditPullRequest",
  3067. "parameters": [
  3068. {
  3069. "type": "string",
  3070. "description": "owner of the repo",
  3071. "name": "owner",
  3072. "in": "path",
  3073. "required": true
  3074. },
  3075. {
  3076. "type": "string",
  3077. "description": "name of the repo",
  3078. "name": "repo",
  3079. "in": "path",
  3080. "required": true
  3081. },
  3082. {
  3083. "type": "integer",
  3084. "description": "index of the pull request to edit",
  3085. "name": "index",
  3086. "in": "path",
  3087. "required": true
  3088. },
  3089. {
  3090. "name": "body",
  3091. "in": "body",
  3092. "schema": {
  3093. "$ref": "#/definitions/EditPullRequestOption"
  3094. }
  3095. }
  3096. ],
  3097. "responses": {
  3098. "201": {
  3099. "$ref": "#/responses/PullRequest"
  3100. }
  3101. }
  3102. }
  3103. },
  3104. "/repos/{owner}/{repo}/pulls/{index}/merge": {
  3105. "get": {
  3106. "produces": [
  3107. "application/json"
  3108. ],
  3109. "tags": [
  3110. "repository"
  3111. ],
  3112. "summary": "Check if a pull request has been merged",
  3113. "operationId": "repoPullRequestIsMerged",
  3114. "parameters": [
  3115. {
  3116. "type": "string",
  3117. "description": "owner of the repo",
  3118. "name": "owner",
  3119. "in": "path",
  3120. "required": true
  3121. },
  3122. {
  3123. "type": "string",
  3124. "description": "name of the repo",
  3125. "name": "repo",
  3126. "in": "path",
  3127. "required": true
  3128. },
  3129. {
  3130. "type": "integer",
  3131. "description": "index of the pull request",
  3132. "name": "index",
  3133. "in": "path",
  3134. "required": true
  3135. }
  3136. ],
  3137. "responses": {
  3138. "204": {
  3139. "description": "pull request has been merged",
  3140. "schema": {
  3141. "$ref": "#/responses/empty"
  3142. }
  3143. },
  3144. "404": {
  3145. "description": "pull request has not been merged",
  3146. "schema": {
  3147. "$ref": "#/responses/empty"
  3148. }
  3149. }
  3150. }
  3151. },
  3152. "post": {
  3153. "produces": [
  3154. "application/json"
  3155. ],
  3156. "tags": [
  3157. "repository"
  3158. ],
  3159. "summary": "Merge a pull request",
  3160. "operationId": "repoMergePullRequest",
  3161. "parameters": [
  3162. {
  3163. "type": "string",
  3164. "description": "owner of the repo",
  3165. "name": "owner",
  3166. "in": "path",
  3167. "required": true
  3168. },
  3169. {
  3170. "type": "string",
  3171. "description": "name of the repo",
  3172. "name": "repo",
  3173. "in": "path",
  3174. "required": true
  3175. },
  3176. {
  3177. "type": "integer",
  3178. "description": "index of the pull request to merge",
  3179. "name": "index",
  3180. "in": "path",
  3181. "required": true
  3182. }
  3183. ],
  3184. "responses": {
  3185. "200": {
  3186. "$ref": "#/responses/empty"
  3187. },
  3188. "405": {
  3189. "$ref": "#/responses/empty"
  3190. }
  3191. }
  3192. }
  3193. },
  3194. "/repos/{owner}/{repo}/raw/{filepath}": {
  3195. "get": {
  3196. "produces": [
  3197. "application/json"
  3198. ],
  3199. "tags": [
  3200. "repository"
  3201. ],
  3202. "summary": "Get a file from a repository",
  3203. "operationId": "repoGetRawFile",
  3204. "parameters": [
  3205. {
  3206. "type": "string",
  3207. "description": "owner of the repo",
  3208. "name": "owner",
  3209. "in": "path",
  3210. "required": true
  3211. },
  3212. {
  3213. "type": "string",
  3214. "description": "name of the repo",
  3215. "name": "repo",
  3216. "in": "path",
  3217. "required": true
  3218. },
  3219. {
  3220. "type": "string",
  3221. "description": "filepath of the file to get",
  3222. "name": "filepath",
  3223. "in": "path",
  3224. "required": true
  3225. }
  3226. ],
  3227. "responses": {
  3228. "200": {}
  3229. }
  3230. }
  3231. },
  3232. "/repos/{owner}/{repo}/releases": {
  3233. "get": {
  3234. "produces": [
  3235. "application/json"
  3236. ],
  3237. "tags": [
  3238. "repository"
  3239. ],
  3240. "summary": "List a repo's releases",
  3241. "operationId": "repoListReleases",
  3242. "parameters": [
  3243. {
  3244. "type": "string",
  3245. "description": "owner of the repo",
  3246. "name": "owner",
  3247. "in": "path",
  3248. "required": true
  3249. },
  3250. {
  3251. "type": "string",
  3252. "description": "name of the repo",
  3253. "name": "repo",
  3254. "in": "path",
  3255. "required": true
  3256. }
  3257. ],
  3258. "responses": {
  3259. "200": {
  3260. "$ref": "#/responses/ReleaseList"
  3261. }
  3262. }
  3263. },
  3264. "post": {
  3265. "consumes": [
  3266. "application/json"
  3267. ],
  3268. "produces": [
  3269. "application/json"
  3270. ],
  3271. "tags": [
  3272. "repository"
  3273. ],
  3274. "summary": "Create a release",
  3275. "operationId": "repoCreateRelease",
  3276. "parameters": [
  3277. {
  3278. "type": "string",
  3279. "description": "owner of the repo",
  3280. "name": "owner",
  3281. "in": "path",
  3282. "required": true
  3283. },
  3284. {
  3285. "type": "string",
  3286. "description": "name of the repo",
  3287. "name": "repo",
  3288. "in": "path",
  3289. "required": true
  3290. },
  3291. {
  3292. "name": "body",
  3293. "in": "body",
  3294. "schema": {
  3295. "$ref": "#/definitions/CreateReleaseOption"
  3296. }
  3297. }
  3298. ],
  3299. "responses": {
  3300. "201": {
  3301. "$ref": "#/responses/Release"
  3302. }
  3303. }
  3304. }
  3305. },
  3306. "/repos/{owner}/{repo}/releases/{id}": {
  3307. "get": {
  3308. "produces": [
  3309. "application/json"
  3310. ],
  3311. "tags": [
  3312. "repository"
  3313. ],
  3314. "summary": "Get a release",
  3315. "operationId": "repoGetRelease",
  3316. "parameters": [
  3317. {
  3318. "type": "string",
  3319. "description": "owner of the repo",
  3320. "name": "owner",
  3321. "in": "path",
  3322. "required": true
  3323. },
  3324. {
  3325. "type": "string",
  3326. "description": "name of the repo",
  3327. "name": "repo",
  3328. "in": "path",
  3329. "required": true
  3330. },
  3331. {
  3332. "type": "integer",
  3333. "description": "id of the release to get",
  3334. "name": "id",
  3335. "in": "path",
  3336. "required": true
  3337. }
  3338. ],
  3339. "responses": {
  3340. "200": {
  3341. "$ref": "#/responses/Release"
  3342. }
  3343. }
  3344. },
  3345. "delete": {
  3346. "tags": [
  3347. "repository"
  3348. ],
  3349. "summary": "Delete a release",
  3350. "operationId": "repoDeleteRelease",
  3351. "parameters": [
  3352. {
  3353. "type": "string",
  3354. "description": "owner of the repo",
  3355. "name": "owner",
  3356. "in": "path",
  3357. "required": true
  3358. },
  3359. {
  3360. "type": "string",
  3361. "description": "name of the repo",
  3362. "name": "repo",
  3363. "in": "path",
  3364. "required": true
  3365. },
  3366. {
  3367. "type": "integer",
  3368. "description": "id of the release to delete",
  3369. "name": "id",
  3370. "in": "path",
  3371. "required": true
  3372. }
  3373. ],
  3374. "responses": {
  3375. "204": {
  3376. "$ref": "#/responses/empty"
  3377. }
  3378. }
  3379. },
  3380. "patch": {
  3381. "consumes": [
  3382. "application/json"
  3383. ],
  3384. "produces": [
  3385. "application/json"
  3386. ],
  3387. "tags": [
  3388. "repository"
  3389. ],
  3390. "summary": "Update a release",
  3391. "operationId": "repoEditRelease",
  3392. "parameters": [
  3393. {
  3394. "type": "string",
  3395. "description": "owner of the repo",
  3396. "name": "owner",
  3397. "in": "path",
  3398. "required": true
  3399. },
  3400. {
  3401. "type": "string",
  3402. "description": "name of the repo",
  3403. "name": "repo",
  3404. "in": "path",
  3405. "required": true
  3406. },
  3407. {
  3408. "type": "integer",
  3409. "description": "id of the release to edit",
  3410. "name": "id",
  3411. "in": "path",
  3412. "required": true
  3413. },
  3414. {
  3415. "name": "body",
  3416. "in": "body",
  3417. "schema": {
  3418. "$ref": "#/definitions/EditReleaseOption"
  3419. }
  3420. }
  3421. ],
  3422. "responses": {
  3423. "200": {
  3424. "$ref": "#/responses/Release"
  3425. }
  3426. }
  3427. }
  3428. },
  3429. "/repos/{owner}/{repo}/releases/{id}/assets": {
  3430. "get": {
  3431. "produces": [
  3432. "application/json"
  3433. ],
  3434. "tags": [
  3435. "repository"
  3436. ],
  3437. "summary": "List release's attachments",
  3438. "operationId": "repoListReleaseAttachments",
  3439. "parameters": [
  3440. {
  3441. "type": "string",
  3442. "description": "owner of the repo",
  3443. "name": "owner",
  3444. "in": "path",
  3445. "required": true
  3446. },
  3447. {
  3448. "type": "string",
  3449. "description": "name of the repo",
  3450. "name": "repo",
  3451. "in": "path",
  3452. "required": true
  3453. },
  3454. {
  3455. "type": "integer",
  3456. "description": "id of the release",
  3457. "name": "id",
  3458. "in": "path",
  3459. "required": true
  3460. }
  3461. ],
  3462. "responses": {
  3463. "200": {
  3464. "$ref": "#/responses/AttachmentList"
  3465. }
  3466. }
  3467. },
  3468. "post": {
  3469. "consumes": [
  3470. "multipart/form-data"
  3471. ],
  3472. "produces": [
  3473. "application/json"
  3474. ],
  3475. "tags": [
  3476. "repository"
  3477. ],
  3478. "summary": "Create a release attachment",
  3479. "operationId": "repoCreateReleaseAttachment",
  3480. "parameters": [
  3481. {
  3482. "type": "string",
  3483. "description": "owner of the repo",
  3484. "name": "owner",
  3485. "in": "path",
  3486. "required": true
  3487. },
  3488. {
  3489. "type": "string",
  3490. "description": "name of the repo",
  3491. "name": "repo",
  3492. "in": "path",
  3493. "required": true
  3494. },
  3495. {
  3496. "type": "integer",
  3497. "description": "id of the release",
  3498. "name": "id",
  3499. "in": "path",
  3500. "required": true
  3501. },
  3502. {
  3503. "type": "string",
  3504. "description": "name of the attachment",
  3505. "name": "name",
  3506. "in": "query"
  3507. },
  3508. {
  3509. "type": "file",
  3510. "description": "attachment to upload",
  3511. "name": "attachment",
  3512. "in": "formData",
  3513. "required": true
  3514. }
  3515. ],
  3516. "responses": {
  3517. "201": {
  3518. "$ref": "#/responses/Attachment"
  3519. }
  3520. }
  3521. }
  3522. },
  3523. "/repos/{owner}/{repo}/releases/{id}/assets/{attachment_id}": {
  3524. "get": {
  3525. "produces": [
  3526. "application/json"
  3527. ],
  3528. "tags": [
  3529. "repository"
  3530. ],
  3531. "summary": "Get a release attachment",
  3532. "operationId": "repoGetReleaseAttachment",
  3533. "parameters": [
  3534. {
  3535. "type": "string",
  3536. "description": "owner of the repo",
  3537. "name": "owner",
  3538. "in": "path",
  3539. "required": true
  3540. },
  3541. {
  3542. "type": "string",
  3543. "description": "name of the repo",
  3544. "name": "repo",
  3545. "in": "path",
  3546. "required": true
  3547. },
  3548. {
  3549. "type": "integer",
  3550. "description": "id of the release",
  3551. "name": "id",
  3552. "in": "path",
  3553. "required": true
  3554. },
  3555. {
  3556. "type": "integer",
  3557. "description": "id of the attachment to get",
  3558. "name": "attachment_id",
  3559. "in": "path",
  3560. "required": true
  3561. }
  3562. ],
  3563. "responses": {
  3564. "200": {
  3565. "$ref": "#/responses/Attachment"
  3566. }
  3567. }
  3568. },
  3569. "delete": {
  3570. "produces": [
  3571. "application/json"
  3572. ],
  3573. "tags": [
  3574. "repository"
  3575. ],
  3576. "summary": "Delete a release attachment",
  3577. "operationId": "repoDeleteReleaseAttachment",
  3578. "parameters": [
  3579. {
  3580. "type": "string",
  3581. "description": "owner of the repo",
  3582. "name": "owner",
  3583. "in": "path",
  3584. "required": true
  3585. },
  3586. {
  3587. "type": "string",
  3588. "description": "name of the repo",
  3589. "name": "repo",
  3590. "in": "path",
  3591. "required": true
  3592. },
  3593. {
  3594. "type": "integer",
  3595. "description": "id of the release",
  3596. "name": "id",
  3597. "in": "path",
  3598. "required": true
  3599. },
  3600. {
  3601. "type": "integer",
  3602. "description": "id of the attachment to delete",
  3603. "name": "attachment_id",
  3604. "in": "path",
  3605. "required": true
  3606. }
  3607. ],
  3608. "responses": {
  3609. "204": {
  3610. "$ref": "#/responses/empty"
  3611. }
  3612. }
  3613. },
  3614. "patch": {
  3615. "consumes": [
  3616. "application/json"
  3617. ],
  3618. "produces": [
  3619. "application/json"
  3620. ],
  3621. "tags": [
  3622. "repository"
  3623. ],
  3624. "summary": "Edit a release attachment",
  3625. "operationId": "repoEditReleaseAttachment",
  3626. "parameters": [
  3627. {
  3628. "type": "string",
  3629. "description": "owner of the repo",
  3630. "name": "owner",
  3631. "in": "path",
  3632. "required": true
  3633. },
  3634. {
  3635. "type": "string",
  3636. "description": "name of the repo",
  3637. "name": "repo",
  3638. "in": "path",
  3639. "required": true
  3640. },
  3641. {
  3642. "type": "integer",
  3643. "description": "id of the release",
  3644. "name": "id",
  3645. "in": "path",
  3646. "required": true
  3647. },
  3648. {
  3649. "type": "integer",
  3650. "description": "id of the attachment to edit",
  3651. "name": "attachment_id",
  3652. "in": "path",
  3653. "required": true
  3654. },
  3655. {
  3656. "name": "body",
  3657. "in": "body",
  3658. "schema": {
  3659. "$ref": "#/definitions/EditAttachmentOptions"
  3660. }
  3661. }
  3662. ],
  3663. "responses": {
  3664. "201": {
  3665. "$ref": "#/responses/Attachment"
  3666. }
  3667. }
  3668. }
  3669. },
  3670. "/repos/{owner}/{repo}/stargazers": {
  3671. "get": {
  3672. "produces": [
  3673. "application/json"
  3674. ],
  3675. "tags": [
  3676. "repository"
  3677. ],
  3678. "summary": "List a repo's stargazers",
  3679. "operationId": "repoListStargazers",
  3680. "parameters": [
  3681. {
  3682. "type": "string",
  3683. "description": "owner of the repo",
  3684. "name": "owner",
  3685. "in": "path",
  3686. "required": true
  3687. },
  3688. {
  3689. "type": "string",
  3690. "description": "name of the repo",
  3691. "name": "repo",
  3692. "in": "path",
  3693. "required": true
  3694. }
  3695. ],
  3696. "responses": {
  3697. "200": {
  3698. "$ref": "#/responses/UserList"
  3699. }
  3700. }
  3701. }
  3702. },
  3703. "/repos/{owner}/{repo}/statuses/{sha}": {
  3704. "get": {
  3705. "produces": [
  3706. "application/json"
  3707. ],
  3708. "tags": [
  3709. "repository"
  3710. ],
  3711. "summary": "Get a commit's statuses",
  3712. "operationId": "repoListStatuses",
  3713. "parameters": [
  3714. {
  3715. "type": "string",
  3716. "description": "owner of the repo",
  3717. "name": "owner",
  3718. "in": "path",
  3719. "required": true
  3720. },
  3721. {
  3722. "type": "string",
  3723. "description": "name of the repo",
  3724. "name": "repo",
  3725. "in": "path",
  3726. "required": true
  3727. },
  3728. {
  3729. "type": "string",
  3730. "description": "sha of the commit",
  3731. "name": "sha",
  3732. "in": "path",
  3733. "required": true
  3734. }
  3735. ],
  3736. "responses": {
  3737. "200": {
  3738. "$ref": "#/responses/StatusList"
  3739. }
  3740. }
  3741. },
  3742. "post": {
  3743. "produces": [
  3744. "application/json"
  3745. ],
  3746. "tags": [
  3747. "repository"
  3748. ],
  3749. "summary": "Create a commit status",
  3750. "operationId": "repoCreateStatus",
  3751. "parameters": [
  3752. {
  3753. "type": "string",
  3754. "description": "owner of the repo",
  3755. "name": "owner",
  3756. "in": "path",
  3757. "required": true
  3758. },
  3759. {
  3760. "type": "string",
  3761. "description": "name of the repo",
  3762. "name": "repo",
  3763. "in": "path",
  3764. "required": true
  3765. },
  3766. {
  3767. "type": "string",
  3768. "description": "sha of the commit",
  3769. "name": "sha",
  3770. "in": "path",
  3771. "required": true
  3772. },
  3773. {
  3774. "name": "body",
  3775. "in": "body",
  3776. "schema": {
  3777. "$ref": "#/definitions/CreateStatusOption"
  3778. }
  3779. }
  3780. ],
  3781. "responses": {
  3782. "200": {
  3783. "$ref": "#/responses/StatusList"
  3784. }
  3785. }
  3786. }
  3787. },
  3788. "/repos/{owner}/{repo}/subscribers": {
  3789. "get": {
  3790. "produces": [
  3791. "application/json"
  3792. ],
  3793. "tags": [
  3794. "repository"
  3795. ],
  3796. "summary": "List a repo's watchers",
  3797. "operationId": "repoListSubscribers",
  3798. "parameters": [
  3799. {
  3800. "type": "string",
  3801. "description": "owner of the repo",
  3802. "name": "owner",
  3803. "in": "path",
  3804. "required": true
  3805. },
  3806. {
  3807. "type": "string",
  3808. "description": "name of the repo",
  3809. "name": "repo",
  3810. "in": "path",
  3811. "required": true
  3812. }
  3813. ],
  3814. "responses": {
  3815. "200": {
  3816. "$ref": "#/responses/UserList"
  3817. }
  3818. }
  3819. }
  3820. },
  3821. "/repos/{owner}/{repo}/subscription": {
  3822. "get": {
  3823. "tags": [
  3824. "repository"
  3825. ],
  3826. "summary": "Check if the current user is watching a repo",
  3827. "operationId": "userCurrentCheckSubscription",
  3828. "parameters": [
  3829. {
  3830. "type": "string",
  3831. "description": "owner of the repo",
  3832. "name": "owner",
  3833. "in": "path",
  3834. "required": true
  3835. },
  3836. {
  3837. "type": "string",
  3838. "description": "name of the repo",
  3839. "name": "repo",
  3840. "in": "path",
  3841. "required": true
  3842. }
  3843. ],
  3844. "responses": {
  3845. "200": {
  3846. "$ref": "#/responses/WatchInfo"
  3847. }
  3848. }
  3849. },
  3850. "put": {
  3851. "tags": [
  3852. "repository"
  3853. ],
  3854. "summary": "Watch a repo",
  3855. "operationId": "userCurrentPutSubscription",
  3856. "parameters": [
  3857. {
  3858. "type": "string",
  3859. "description": "owner of the repo",
  3860. "name": "owner",
  3861. "in": "path",
  3862. "required": true
  3863. },
  3864. {
  3865. "type": "string",
  3866. "description": "name of the repo",
  3867. "name": "repo",
  3868. "in": "path",
  3869. "required": true
  3870. }
  3871. ],
  3872. "responses": {
  3873. "200": {
  3874. "$ref": "#/responses/WatchInfo"
  3875. }
  3876. }
  3877. },
  3878. "delete": {
  3879. "tags": [
  3880. "repository"
  3881. ],
  3882. "summary": "Unwatch a repo",
  3883. "operationId": "userCurrentDeleteSubscription",
  3884. "parameters": [
  3885. {
  3886. "type": "string",
  3887. "description": "owner of the repo",
  3888. "name": "owner",
  3889. "in": "path",
  3890. "required": true
  3891. },
  3892. {
  3893. "type": "string",
  3894. "description": "name of the repo",
  3895. "name": "repo",
  3896. "in": "path",
  3897. "required": true
  3898. }
  3899. ],
  3900. "responses": {
  3901. "204": {
  3902. "$ref": "#/responses/empty"
  3903. }
  3904. }
  3905. }
  3906. },
  3907. "/repos/{owner}/{repo}/times": {
  3908. "get": {
  3909. "produces": [
  3910. "application/json"
  3911. ],
  3912. "tags": [
  3913. "repository"
  3914. ],
  3915. "summary": "List a repo's tracked times",
  3916. "operationId": "repoTrackedTimes",
  3917. "parameters": [
  3918. {
  3919. "type": "string",
  3920. "description": "owner of the repo",
  3921. "name": "owner",
  3922. "in": "path",
  3923. "required": true
  3924. },
  3925. {
  3926. "type": "string",
  3927. "description": "name of the repo",
  3928. "name": "repo",
  3929. "in": "path",
  3930. "required": true
  3931. }
  3932. ],
  3933. "responses": {
  3934. "200": {
  3935. "$ref": "#/responses/TrackedTimeList"
  3936. }
  3937. }
  3938. }
  3939. },
  3940. "/repos/{owner}/{repo}/times/{tracker}": {
  3941. "get": {
  3942. "produces": [
  3943. "application/json"
  3944. ],
  3945. "tags": [
  3946. "user"
  3947. ],
  3948. "summary": "List a user's tracked times in a repo",
  3949. "operationId": "userTrackedTimes",
  3950. "parameters": [
  3951. {
  3952. "type": "string",
  3953. "description": "owner of the repo",
  3954. "name": "owner",
  3955. "in": "path",
  3956. "required": true
  3957. },
  3958. {
  3959. "type": "string",
  3960. "description": "name of the repo",
  3961. "name": "repo",
  3962. "in": "path",
  3963. "required": true
  3964. },
  3965. {
  3966. "type": "string",
  3967. "description": "username of user",
  3968. "name": "user",
  3969. "in": "path",
  3970. "required": true
  3971. }
  3972. ],
  3973. "responses": {
  3974. "200": {
  3975. "$ref": "#/responses/TrackedTimeList"
  3976. }
  3977. }
  3978. }
  3979. },
  3980. "/repos/{user}/{repo}/hooks/{id}": {
  3981. "delete": {
  3982. "produces": [
  3983. "application/json"
  3984. ],
  3985. "tags": [
  3986. "repository"
  3987. ],
  3988. "summary": "Delete a hook in a repository",
  3989. "operationId": "repoDeleteHook",
  3990. "parameters": [
  3991. {
  3992. "type": "string",
  3993. "description": "owner of the repo",
  3994. "name": "owner",
  3995. "in": "path",
  3996. "required": true
  3997. },
  3998. {
  3999. "type": "string",
  4000. "description": "name of the repo",
  4001. "name": "repo",
  4002. "in": "path",
  4003. "required": true
  4004. },
  4005. {
  4006. "type": "integer",
  4007. "description": "id of the hook to delete",
  4008. "name": "id",
  4009. "in": "path",
  4010. "required": true
  4011. }
  4012. ],
  4013. "responses": {
  4014. "204": {
  4015. "$ref": "#/responses/empty"
  4016. },
  4017. "404": {
  4018. "$ref": "#/responses/notFound"
  4019. }
  4020. }
  4021. }
  4022. },
  4023. "/repositories/{id}": {
  4024. "get": {
  4025. "produces": [
  4026. "application/json"
  4027. ],
  4028. "tags": [
  4029. "repository"
  4030. ],
  4031. "summary": "Get a repository by id",
  4032. "operationId": "repoGetByID",
  4033. "parameters": [
  4034. {
  4035. "type": "integer",
  4036. "description": "id of the repo to get",
  4037. "name": "id",
  4038. "in": "path",
  4039. "required": true
  4040. }
  4041. ],
  4042. "responses": {
  4043. "200": {
  4044. "$ref": "#/responses/Repository"
  4045. }
  4046. }
  4047. }
  4048. },
  4049. "/teams/{id}": {
  4050. "get": {
  4051. "produces": [
  4052. "application/json"
  4053. ],
  4054. "tags": [
  4055. "organization"
  4056. ],
  4057. "summary": "Get a team",
  4058. "operationId": "orgGetTeam",
  4059. "parameters": [
  4060. {
  4061. "type": "integer",
  4062. "description": "id of the team to get",
  4063. "name": "id",
  4064. "in": "path",
  4065. "required": true
  4066. }
  4067. ],
  4068. "responses": {
  4069. "200": {
  4070. "$ref": "#/responses/Team"
  4071. }
  4072. }
  4073. },
  4074. "delete": {
  4075. "tags": [
  4076. "organization"
  4077. ],
  4078. "summary": "Delete a team",
  4079. "operationId": "orgDeleteTeam",
  4080. "parameters": [
  4081. {
  4082. "type": "integer",
  4083. "description": "id of the team to delete",
  4084. "name": "id",
  4085. "in": "path",
  4086. "required": true
  4087. }
  4088. ],
  4089. "responses": {
  4090. "204": {
  4091. "description": "team deleted",
  4092. "schema": {
  4093. "$ref": "#/responses/empty"
  4094. }
  4095. }
  4096. }
  4097. },
  4098. "patch": {
  4099. "consumes": [
  4100. "application/json"
  4101. ],
  4102. "produces": [
  4103. "application/json"
  4104. ],
  4105. "tags": [
  4106. "organization"
  4107. ],
  4108. "summary": "Edit a team",
  4109. "operationId": "orgEditTeam",
  4110. "parameters": [
  4111. {
  4112. "type": "integer",
  4113. "description": "id of the team to edit",
  4114. "name": "id",
  4115. "in": "path",
  4116. "required": true
  4117. },
  4118. {
  4119. "name": "body",
  4120. "in": "body",
  4121. "schema": {
  4122. "$ref": "#/definitions/EditTeamOption"
  4123. }
  4124. }
  4125. ],
  4126. "responses": {
  4127. "200": {
  4128. "$ref": "#/responses/Team"
  4129. }
  4130. }
  4131. }
  4132. },
  4133. "/teams/{id}/members": {
  4134. "get": {
  4135. "produces": [
  4136. "application/json"
  4137. ],
  4138. "tags": [
  4139. "organization"
  4140. ],
  4141. "summary": "List a team's members",
  4142. "operationId": "orgListTeamMembers",
  4143. "parameters": [
  4144. {
  4145. "type": "integer",
  4146. "description": "id of the team",
  4147. "name": "id",
  4148. "in": "path",
  4149. "required": true
  4150. }
  4151. ],
  4152. "responses": {
  4153. "200": {
  4154. "$ref": "#/responses/UserList"
  4155. }
  4156. }
  4157. }
  4158. },
  4159. "/teams/{id}/members/{username}": {
  4160. "put": {
  4161. "produces": [
  4162. "application/json"
  4163. ],
  4164. "tags": [
  4165. "organization"
  4166. ],
  4167. "summary": "Add a team member",
  4168. "operationId": "orgAddTeamMember",
  4169. "parameters": [
  4170. {
  4171. "type": "integer",
  4172. "description": "id of the team",
  4173. "name": "id",
  4174. "in": "path",
  4175. "required": true
  4176. },
  4177. {
  4178. "type": "string",
  4179. "description": "username of the user to add",
  4180. "name": "username",
  4181. "in": "path",
  4182. "required": true
  4183. }
  4184. ],
  4185. "responses": {
  4186. "204": {
  4187. "$ref": "#/responses/empty"
  4188. }
  4189. }
  4190. },
  4191. "delete": {
  4192. "produces": [
  4193. "application/json"
  4194. ],
  4195. "tags": [
  4196. "organization"
  4197. ],
  4198. "summary": "Remove a team member",
  4199. "operationId": "orgAddTeamMember",
  4200. "parameters": [
  4201. {
  4202. "type": "integer",
  4203. "description": "id of the team",
  4204. "name": "id",
  4205. "in": "path",
  4206. "required": true
  4207. },
  4208. {
  4209. "type": "string",
  4210. "description": "username of the user to remove",
  4211. "name": "username",
  4212. "in": "path",
  4213. "required": true
  4214. }
  4215. ],
  4216. "responses": {
  4217. "204": {
  4218. "$ref": "#/responses/empty"
  4219. }
  4220. }
  4221. }
  4222. },
  4223. "/teams/{id}/repos": {
  4224. "get": {
  4225. "produces": [
  4226. "application/json"
  4227. ],
  4228. "tags": [
  4229. "organization"
  4230. ],
  4231. "summary": "List a team's repos",
  4232. "operationId": "orgListTeamRepos",
  4233. "parameters": [
  4234. {
  4235. "type": "integer",
  4236. "description": "id of the team",
  4237. "name": "id",
  4238. "in": "path",
  4239. "required": true
  4240. }
  4241. ],
  4242. "responses": {
  4243. "200": {
  4244. "$ref": "#/responses/RepositoryList"
  4245. }
  4246. }
  4247. }
  4248. },
  4249. "/teams/{id}/repos/{org}/{repo}": {
  4250. "put": {
  4251. "produces": [
  4252. "application/json"
  4253. ],
  4254. "tags": [
  4255. "organization"
  4256. ],
  4257. "summary": "Add a repository to a team",
  4258. "operationId": "orgAddTeamMember",
  4259. "parameters": [
  4260. {
  4261. "type": "integer",
  4262. "description": "id of the team",
  4263. "name": "id",
  4264. "in": "path",
  4265. "required": true
  4266. },
  4267. {
  4268. "type": "string",
  4269. "description": "organization that owns the repo to add",
  4270. "name": "org",
  4271. "in": "path",
  4272. "required": true
  4273. },
  4274. {
  4275. "type": "string",
  4276. "description": "name of the repo to add",
  4277. "name": "repo",
  4278. "in": "path",
  4279. "required": true
  4280. }
  4281. ],
  4282. "responses": {
  4283. "204": {
  4284. "$ref": "#/responses/empty"
  4285. }
  4286. }
  4287. },
  4288. "delete": {
  4289. "description": "This does not delete the repository, it only removes the repository from the team.",
  4290. "produces": [
  4291. "application/json"
  4292. ],
  4293. "tags": [
  4294. "organization"
  4295. ],
  4296. "summary": "Remove a repository from a team",
  4297. "operationId": "orgAddTeamMember",
  4298. "parameters": [
  4299. {
  4300. "type": "integer",
  4301. "description": "id of the team",
  4302. "name": "id",
  4303. "in": "path",
  4304. "required": true
  4305. },
  4306. {
  4307. "type": "string",
  4308. "description": "organization that owns the repo to remove",
  4309. "name": "org",
  4310. "in": "path",
  4311. "required": true
  4312. },
  4313. {
  4314. "type": "string",
  4315. "description": "name of the repo to remove",
  4316. "name": "repo",
  4317. "in": "path",
  4318. "required": true
  4319. }
  4320. ],
  4321. "responses": {
  4322. "204": {
  4323. "$ref": "#/responses/empty"
  4324. }
  4325. }
  4326. }
  4327. },
  4328. "/user": {
  4329. "get": {
  4330. "produces": [
  4331. "application/json"
  4332. ],
  4333. "tags": [
  4334. "user"
  4335. ],
  4336. "summary": "Get the authenticated user",
  4337. "operationId": "userGetCurrent",
  4338. "responses": {
  4339. "200": {
  4340. "$ref": "#/responses/User"
  4341. }
  4342. }
  4343. }
  4344. },
  4345. "/user/emails": {
  4346. "get": {
  4347. "produces": [
  4348. "application/json"
  4349. ],
  4350. "tags": [
  4351. "user"
  4352. ],
  4353. "summary": "List the authenticated user's email addresses",
  4354. "operationId": "userListEmails",
  4355. "responses": {
  4356. "200": {
  4357. "$ref": "#/responses/EmailList"
  4358. }
  4359. }
  4360. },
  4361. "post": {
  4362. "produces": [
  4363. "application/json"
  4364. ],
  4365. "tags": [
  4366. "user"
  4367. ],
  4368. "summary": "Add email addresses",
  4369. "operationId": "userAddEmail",
  4370. "parameters": [
  4371. {
  4372. "name": "body",
  4373. "in": "body",
  4374. "schema": {
  4375. "$ref": "#/definitions/CreateEmailOption"
  4376. }
  4377. }
  4378. ],
  4379. "responses": {
  4380. "201": {
  4381. "$ref": "#/responses/EmailList"
  4382. }
  4383. }
  4384. },
  4385. "delete": {
  4386. "produces": [
  4387. "application/json"
  4388. ],
  4389. "tags": [
  4390. "user"
  4391. ],
  4392. "summary": "Delete email addresses",
  4393. "operationId": "userDeleteEmail",
  4394. "parameters": [
  4395. {
  4396. "name": "body",
  4397. "in": "body",
  4398. "schema": {
  4399. "$ref": "#/definitions/DeleteEmailOption"
  4400. }
  4401. }
  4402. ],
  4403. "responses": {
  4404. "204": {
  4405. "$ref": "#/responses/empty"
  4406. }
  4407. }
  4408. }
  4409. },
  4410. "/user/followers": {
  4411. "get": {
  4412. "produces": [
  4413. "application/json"
  4414. ],
  4415. "tags": [
  4416. "user"
  4417. ],
  4418. "summary": "List the authenticated user's followers",
  4419. "operationId": "userCurrentListFollowers",
  4420. "responses": {
  4421. "200": {
  4422. "$ref": "#/responses/UserList"
  4423. }
  4424. }
  4425. }
  4426. },
  4427. "/user/following": {
  4428. "get": {
  4429. "produces": [
  4430. "application/json"
  4431. ],
  4432. "tags": [
  4433. "user"
  4434. ],
  4435. "summary": "List the users that the authenticated user is following",
  4436. "operationId": "userCurrentListFollowing",
  4437. "responses": {
  4438. "200": {
  4439. "$ref": "#/responses/UserList"
  4440. }
  4441. }
  4442. }
  4443. },
  4444. "/user/following/{followee}": {
  4445. "get": {
  4446. "tags": [
  4447. "user"
  4448. ],
  4449. "summary": "Check whether a user is followed by the authenticated user",
  4450. "operationId": "userCurrentCheckFollowing",
  4451. "parameters": [
  4452. {
  4453. "type": "string",
  4454. "description": "username of followed user",
  4455. "name": "followee",
  4456. "in": "path",
  4457. "required": true
  4458. }
  4459. ],
  4460. "responses": {
  4461. "204": {
  4462. "$ref": "#/responses/empty"
  4463. },
  4464. "404": {
  4465. "$ref": "#/responses/notFound"
  4466. }
  4467. }
  4468. }
  4469. },
  4470. "/user/following/{username}": {
  4471. "put": {
  4472. "tags": [
  4473. "user"
  4474. ],
  4475. "summary": "Follow a user",
  4476. "operationId": "userCurrentPutFollow",
  4477. "parameters": [
  4478. {
  4479. "type": "string",
  4480. "description": "username of user to follow",
  4481. "name": "username",
  4482. "in": "path",
  4483. "required": true
  4484. }
  4485. ],
  4486. "responses": {
  4487. "204": {
  4488. "$ref": "#/responses/empty"
  4489. }
  4490. }
  4491. },
  4492. "delete": {
  4493. "tags": [
  4494. "user"
  4495. ],
  4496. "summary": "Unfollow a user",
  4497. "operationId": "userCurrentDeleteFollow",
  4498. "parameters": [
  4499. {
  4500. "type": "string",
  4501. "description": "username of user to unfollow",
  4502. "name": "username",
  4503. "in": "path",
  4504. "required": true
  4505. }
  4506. ],
  4507. "responses": {
  4508. "204": {
  4509. "$ref": "#/responses/empty"
  4510. }
  4511. }
  4512. }
  4513. },
  4514. "/user/gpg_keys": {
  4515. "get": {
  4516. "produces": [
  4517. "application/json"
  4518. ],
  4519. "tags": [
  4520. "user"
  4521. ],
  4522. "summary": "List the authenticated user's GPG keys",
  4523. "operationId": "userCurrentListGPGKeys",
  4524. "responses": {
  4525. "200": {
  4526. "$ref": "#/responses/GPGKeyList"
  4527. }
  4528. }
  4529. },
  4530. "post": {
  4531. "consumes": [
  4532. "application/json"
  4533. ],
  4534. "produces": [
  4535. "application/json"
  4536. ],
  4537. "tags": [
  4538. "user"
  4539. ],
  4540. "summary": "Create a GPG key",
  4541. "operationId": "userCurrentPostGPGKey",
  4542. "parameters": [
  4543. {
  4544. "name": "Form",
  4545. "in": "body",
  4546. "schema": {
  4547. "$ref": "#/definitions/CreateGPGKeyOption"
  4548. }
  4549. }
  4550. ],
  4551. "responses": {
  4552. "201": {
  4553. "$ref": "#/responses/GPGKey"
  4554. },
  4555. "422": {
  4556. "$ref": "#/responses/validationError"
  4557. }
  4558. }
  4559. }
  4560. },
  4561. "/user/gpg_keys/{id}": {
  4562. "get": {
  4563. "produces": [
  4564. "application/json"
  4565. ],
  4566. "tags": [
  4567. "user"
  4568. ],
  4569. "summary": "Get a GPG key",
  4570. "operationId": "userCurrentGetGPGKey",
  4571. "parameters": [
  4572. {
  4573. "type": "integer",
  4574. "description": "id of key to get",
  4575. "name": "id",
  4576. "in": "path",
  4577. "required": true
  4578. }
  4579. ],
  4580. "responses": {
  4581. "200": {
  4582. "$ref": "#/responses/GPGKey"
  4583. },
  4584. "404": {
  4585. "$ref": "#/responses/notFound"
  4586. }
  4587. }
  4588. },
  4589. "delete": {
  4590. "produces": [
  4591. "application/json"
  4592. ],
  4593. "tags": [
  4594. "user"
  4595. ],
  4596. "summary": "Remove a GPG key",
  4597. "operationId": "userCurrentDeleteGPGKey",
  4598. "parameters": [
  4599. {
  4600. "type": "integer",
  4601. "description": "id of key to delete",
  4602. "name": "id",
  4603. "in": "path",
  4604. "required": true
  4605. }
  4606. ],
  4607. "responses": {
  4608. "204": {
  4609. "$ref": "#/responses/empty"
  4610. },
  4611. "403": {
  4612. "$ref": "#/responses/forbidden"
  4613. }
  4614. }
  4615. }
  4616. },
  4617. "/user/keys": {
  4618. "get": {
  4619. "produces": [
  4620. "application/json"
  4621. ],
  4622. "tags": [
  4623. "user"
  4624. ],
  4625. "summary": "List the authenticated user's public keys",
  4626. "operationId": "userCurrentListKeys",
  4627. "responses": {
  4628. "200": {
  4629. "$ref": "#/responses/PublicKeyList"
  4630. }
  4631. }
  4632. },
  4633. "post": {
  4634. "consumes": [
  4635. "application/json"
  4636. ],
  4637. "produces": [
  4638. "application/json"
  4639. ],
  4640. "tags": [
  4641. "user"
  4642. ],
  4643. "summary": "Create a public key",
  4644. "operationId": "userCurrentPostKey",
  4645. "parameters": [
  4646. {
  4647. "name": "body",
  4648. "in": "body",
  4649. "schema": {
  4650. "$ref": "#/definitions/CreateKeyOption"
  4651. }
  4652. }
  4653. ],
  4654. "responses": {
  4655. "201": {
  4656. "$ref": "#/responses/PublicKey"
  4657. },
  4658. "422": {
  4659. "$ref": "#/responses/validationError"
  4660. }
  4661. }
  4662. }
  4663. },
  4664. "/user/keys/{id}": {
  4665. "get": {
  4666. "produces": [
  4667. "application/json"
  4668. ],
  4669. "tags": [
  4670. "user"
  4671. ],
  4672. "summary": "Get a public key",
  4673. "operationId": "userCurrentGetKey",
  4674. "parameters": [
  4675. {
  4676. "type": "integer",
  4677. "description": "id of key to get",
  4678. "name": "id",
  4679. "in": "path",
  4680. "required": true
  4681. }
  4682. ],
  4683. "responses": {
  4684. "200": {
  4685. "$ref": "#/responses/PublicKey"
  4686. },
  4687. "404": {
  4688. "$ref": "#/responses/notFound"
  4689. }
  4690. }
  4691. },
  4692. "delete": {
  4693. "produces": [
  4694. "application/json"
  4695. ],
  4696. "tags": [
  4697. "user"
  4698. ],
  4699. "summary": "Delete a public key",
  4700. "operationId": "userCurrentDeleteKey",
  4701. "parameters": [
  4702. {
  4703. "type": "integer",
  4704. "description": "id of key to delete",
  4705. "name": "id",
  4706. "in": "path",
  4707. "required": true
  4708. }
  4709. ],
  4710. "responses": {
  4711. "204": {
  4712. "$ref": "#/responses/empty"
  4713. },
  4714. "403": {
  4715. "$ref": "#/responses/forbidden"
  4716. },
  4717. "404": {
  4718. "$ref": "#/responses/notFound"
  4719. }
  4720. }
  4721. }
  4722. },
  4723. "/user/orgs": {
  4724. "get": {
  4725. "produces": [
  4726. "application/json"
  4727. ],
  4728. "tags": [
  4729. "organization"
  4730. ],
  4731. "summary": "List the current user's organizations",
  4732. "operationId": "orgListCurrentUserOrgs",
  4733. "responses": {
  4734. "200": {
  4735. "$ref": "#/responses/OrganizationList"
  4736. }
  4737. }
  4738. }
  4739. },
  4740. "/user/repos": {
  4741. "get": {
  4742. "produces": [
  4743. "application/json"
  4744. ],
  4745. "tags": [
  4746. "user"
  4747. ],
  4748. "summary": "List the repos that the authenticated user owns or has access to",
  4749. "operationId": "userCurrentListRepos",
  4750. "responses": {
  4751. "200": {
  4752. "$ref": "#/responses/RepositoryList"
  4753. }
  4754. }
  4755. },
  4756. "post": {
  4757. "consumes": [
  4758. "application/json"
  4759. ],
  4760. "produces": [
  4761. "application/json"
  4762. ],
  4763. "tags": [
  4764. "repository",
  4765. "user"
  4766. ],
  4767. "summary": "Create a repository",
  4768. "operationId": "createCurrentUserRepo",
  4769. "parameters": [
  4770. {
  4771. "name": "body",
  4772. "in": "body",
  4773. "schema": {
  4774. "$ref": "#/definitions/CreateRepoOption"
  4775. }
  4776. }
  4777. ],
  4778. "responses": {
  4779. "201": {
  4780. "$ref": "#/responses/Repository"
  4781. }
  4782. }
  4783. }
  4784. },
  4785. "/user/starred": {
  4786. "get": {
  4787. "produces": [
  4788. "application/json"
  4789. ],
  4790. "tags": [
  4791. "user"
  4792. ],
  4793. "summary": "The repos that the authenticated user has starred",
  4794. "operationId": "userCurrentListStarred",
  4795. "responses": {
  4796. "200": {
  4797. "$ref": "#/responses/RepositoryList"
  4798. }
  4799. }
  4800. }
  4801. },
  4802. "/user/starred/{owner}/{repo}": {
  4803. "get": {
  4804. "tags": [
  4805. "user"
  4806. ],
  4807. "summary": "Whether the authenticated is starring the repo",
  4808. "operationId": "userCurrentCheckStarring",
  4809. "parameters": [
  4810. {
  4811. "type": "string",
  4812. "description": "owner of the repo",
  4813. "name": "owner",
  4814. "in": "path",
  4815. "required": true
  4816. },
  4817. {
  4818. "type": "string",
  4819. "description": "name of the repo",
  4820. "name": "repo",
  4821. "in": "path",
  4822. "required": true
  4823. }
  4824. ],
  4825. "responses": {
  4826. "204": {
  4827. "$ref": "#/responses/empty"
  4828. },
  4829. "404": {
  4830. "$ref": "#/responses/notFound"
  4831. }
  4832. }
  4833. },
  4834. "put": {
  4835. "tags": [
  4836. "user"
  4837. ],
  4838. "summary": "Star the given repo",
  4839. "operationId": "userCurrentPutStar",
  4840. "parameters": [
  4841. {
  4842. "type": "string",
  4843. "description": "owner of the repo to star",
  4844. "name": "owner",
  4845. "in": "path",
  4846. "required": true
  4847. },
  4848. {
  4849. "type": "string",
  4850. "description": "name of the repo to star",
  4851. "name": "repo",
  4852. "in": "path",
  4853. "required": true
  4854. }
  4855. ],
  4856. "responses": {
  4857. "204": {
  4858. "$ref": "#/responses/empty"
  4859. }
  4860. }
  4861. },
  4862. "delete": {
  4863. "tags": [
  4864. "user"
  4865. ],
  4866. "summary": "Unstar the given repo",
  4867. "operationId": "userCurrentDeleteStar",
  4868. "parameters": [
  4869. {
  4870. "type": "string",
  4871. "description": "owner of the repo to unstar",
  4872. "name": "owner",
  4873. "in": "path",
  4874. "required": true
  4875. },
  4876. {
  4877. "type": "string",
  4878. "description": "name of the repo to unstar",
  4879. "name": "repo",
  4880. "in": "path",
  4881. "required": true
  4882. }
  4883. ],
  4884. "responses": {
  4885. "204": {
  4886. "$ref": "#/responses/empty"
  4887. }
  4888. }
  4889. }
  4890. },
  4891. "/user/subscriptions": {
  4892. "get": {
  4893. "produces": [
  4894. "application/json"
  4895. ],
  4896. "tags": [
  4897. "user"
  4898. ],
  4899. "summary": "List repositories watched by the authenticated user",
  4900. "operationId": "userCurrentListSubscriptions",
  4901. "responses": {
  4902. "200": {
  4903. "$ref": "#/responses/RepositoryList"
  4904. }
  4905. }
  4906. }
  4907. },
  4908. "/user/times": {
  4909. "get": {
  4910. "produces": [
  4911. "application/json"
  4912. ],
  4913. "tags": [
  4914. "user"
  4915. ],
  4916. "summary": "List the current user's tracked times",
  4917. "operationId": "userCurrentTrackedTimes",
  4918. "responses": {
  4919. "200": {
  4920. "$ref": "#/responses/TrackedTimeList"
  4921. }
  4922. }
  4923. }
  4924. },
  4925. "/user/{username}/orgs": {
  4926. "get": {
  4927. "produces": [
  4928. "application/json"
  4929. ],
  4930. "tags": [
  4931. "organization"
  4932. ],
  4933. "summary": "List a user's organizations",
  4934. "operationId": "orgListUserOrgs",
  4935. "parameters": [
  4936. {
  4937. "type": "string",
  4938. "description": "username of user",
  4939. "name": "username",
  4940. "in": "path"
  4941. }
  4942. ],
  4943. "responses": {
  4944. "200": {
  4945. "$ref": "#/responses/OrganizationList"
  4946. }
  4947. }
  4948. }
  4949. },
  4950. "/users/search": {
  4951. "get": {
  4952. "produces": [
  4953. "application/json"
  4954. ],
  4955. "tags": [
  4956. "user"
  4957. ],
  4958. "summary": "Search for users",
  4959. "operationId": "userSearch",
  4960. "parameters": [
  4961. {
  4962. "type": "string",
  4963. "description": "keyword",
  4964. "name": "q",
  4965. "in": "query"
  4966. },
  4967. {
  4968. "type": "integer",
  4969. "description": "maximum number of users to return",
  4970. "name": "limit",
  4971. "in": "query"
  4972. }
  4973. ],
  4974. "responses": {
  4975. "200": {
  4976. "$ref": "#/responses/UserList"
  4977. }
  4978. }
  4979. }
  4980. },
  4981. "/users/{follower}/following/{followee}": {
  4982. "get": {
  4983. "tags": [
  4984. "user"
  4985. ],
  4986. "summary": "Check if one user is following another user",
  4987. "operationId": "userCheckFollowing",
  4988. "parameters": [
  4989. {
  4990. "type": "string",
  4991. "description": "username of following user",
  4992. "name": "follower",
  4993. "in": "path",
  4994. "required": true
  4995. },
  4996. {
  4997. "type": "string",
  4998. "description": "username of followed user",
  4999. "name": "followee",
  5000. "in": "path",
  5001. "required": true
  5002. }
  5003. ],
  5004. "responses": {
  5005. "204": {
  5006. "$ref": "#/responses/empty"
  5007. },
  5008. "404": {
  5009. "$ref": "#/responses/notFound"
  5010. }
  5011. }
  5012. }
  5013. },
  5014. "/users/{username}": {
  5015. "get": {
  5016. "produces": [
  5017. "application/json"
  5018. ],
  5019. "tags": [
  5020. "user"
  5021. ],
  5022. "summary": "Get a user",
  5023. "operationId": "userGet",
  5024. "parameters": [
  5025. {
  5026. "type": "string",
  5027. "description": "username of user to get",
  5028. "name": "username",
  5029. "in": "path",
  5030. "required": true
  5031. }
  5032. ],
  5033. "responses": {
  5034. "200": {
  5035. "$ref": "#/responses/User"
  5036. },
  5037. "404": {
  5038. "$ref": "#/responses/notFound"
  5039. }
  5040. }
  5041. }
  5042. },
  5043. "/users/{username}/followers": {
  5044. "get": {
  5045. "produces": [
  5046. "application/json"
  5047. ],
  5048. "tags": [
  5049. "user"
  5050. ],
  5051. "summary": "List the given user's followers",
  5052. "operationId": "userListFollowers",
  5053. "parameters": [
  5054. {
  5055. "type": "string",
  5056. "description": "username of user",
  5057. "name": "username",
  5058. "in": "path",
  5059. "required": true
  5060. }
  5061. ],
  5062. "responses": {
  5063. "200": {
  5064. "$ref": "#/responses/UserList"
  5065. }
  5066. }
  5067. }
  5068. },
  5069. "/users/{username}/following": {
  5070. "get": {
  5071. "produces": [
  5072. "application/json"
  5073. ],
  5074. "tags": [
  5075. "user"
  5076. ],
  5077. "summary": "List the users that the given user is following",
  5078. "operationId": "userListFollowing",
  5079. "parameters": [
  5080. {
  5081. "type": "string",
  5082. "description": "username of user",
  5083. "name": "username",
  5084. "in": "path",
  5085. "required": true
  5086. }
  5087. ],
  5088. "responses": {
  5089. "200": {
  5090. "$ref": "#/responses/UserList"
  5091. }
  5092. }
  5093. }
  5094. },
  5095. "/users/{username}/gpg_keys": {
  5096. "get": {
  5097. "produces": [
  5098. "application/json"
  5099. ],
  5100. "tags": [
  5101. "user"
  5102. ],
  5103. "summary": "List the given user's GPG keys",
  5104. "operationId": "userListGPGKeys",
  5105. "parameters": [
  5106. {
  5107. "type": "string",
  5108. "description": "username of user",
  5109. "name": "username",
  5110. "in": "path",
  5111. "required": true
  5112. }
  5113. ],
  5114. "responses": {
  5115. "200": {
  5116. "$ref": "#/responses/GPGKeyList"
  5117. }
  5118. }
  5119. }
  5120. },
  5121. "/users/{username}/keys": {
  5122. "get": {
  5123. "produces": [
  5124. "application/json"
  5125. ],
  5126. "tags": [
  5127. "user"
  5128. ],
  5129. "summary": "List the given user's public keys",
  5130. "operationId": "userListKeys",
  5131. "parameters": [
  5132. {
  5133. "type": "string",
  5134. "description": "username of user",
  5135. "name": "username",
  5136. "in": "path",
  5137. "required": true
  5138. }
  5139. ],
  5140. "responses": {
  5141. "200": {
  5142. "$ref": "#/responses/PublicKeyList"
  5143. }
  5144. }
  5145. }
  5146. },
  5147. "/users/{username}/repos": {
  5148. "get": {
  5149. "produces": [
  5150. "application/json"
  5151. ],
  5152. "tags": [
  5153. "user"
  5154. ],
  5155. "summary": "List the repos owned by the given user",
  5156. "operationId": "userListRepos",
  5157. "parameters": [
  5158. {
  5159. "type": "string",
  5160. "description": "username of user",
  5161. "name": "username",
  5162. "in": "path",
  5163. "required": true
  5164. }
  5165. ],
  5166. "responses": {
  5167. "200": {
  5168. "$ref": "#/responses/RepositoryList"
  5169. }
  5170. }
  5171. }
  5172. },
  5173. "/users/{username}/starred": {
  5174. "get": {
  5175. "produces": [
  5176. "application/json"
  5177. ],
  5178. "tags": [
  5179. "user"
  5180. ],
  5181. "summary": "The repos that the given user has starred",
  5182. "operationId": "userListStarred",
  5183. "parameters": [
  5184. {
  5185. "type": "string",
  5186. "description": "username of user",
  5187. "name": "username",
  5188. "in": "path",
  5189. "required": true
  5190. }
  5191. ],
  5192. "responses": {
  5193. "200": {
  5194. "$ref": "#/responses/RepositoryList"
  5195. }
  5196. }
  5197. }
  5198. },
  5199. "/users/{username}/subscriptions": {
  5200. "get": {
  5201. "produces": [
  5202. "application/json"
  5203. ],
  5204. "tags": [
  5205. "user"
  5206. ],
  5207. "summary": "List the repositories watched by a user",
  5208. "operationId": "userListSubscriptions",
  5209. "parameters": [
  5210. {
  5211. "type": "string",
  5212. "description": "username of the user",
  5213. "name": "username",
  5214. "in": "path"
  5215. }
  5216. ],
  5217. "responses": {
  5218. "200": {
  5219. "$ref": "#/responses/RepositoryList"
  5220. }
  5221. }
  5222. }
  5223. },
  5224. "/users/{username}/tokens": {
  5225. "get": {
  5226. "produces": [
  5227. "application/json"
  5228. ],
  5229. "tags": [
  5230. "user"
  5231. ],
  5232. "summary": "List the authenticated user's access tokens",
  5233. "operationId": "userGetTokens",
  5234. "responses": {
  5235. "200": {
  5236. "$ref": "#/responses/AccessTokenList"
  5237. }
  5238. }
  5239. },
  5240. "post": {
  5241. "consumes": [
  5242. "application/json"
  5243. ],
  5244. "produces": [
  5245. "application/json"
  5246. ],
  5247. "tags": [
  5248. "user"
  5249. ],
  5250. "summary": "Create an access token",
  5251. "operationId": "userCreateToken",
  5252. "parameters": [
  5253. {
  5254. "type": "string",
  5255. "x-go-name": "Name",
  5256. "name": "name",
  5257. "in": "query"
  5258. }
  5259. ],
  5260. "responses": {
  5261. "200": {
  5262. "$ref": "#/responses/AccessToken"
  5263. }
  5264. }
  5265. }
  5266. },
  5267. "/version": {
  5268. "get": {
  5269. "produces": [
  5270. "application/json"
  5271. ],
  5272. "tags": [
  5273. "miscellaneous"
  5274. ],
  5275. "summary": "Returns the version of the Gitea application",
  5276. "operationId": "getVersion",
  5277. "responses": {
  5278. "200": {
  5279. "$ref": "#/responses/ServerVersion"
  5280. }
  5281. }
  5282. }
  5283. }
  5284. },
  5285. "definitions": {
  5286. "AddCollaboratorOption": {
  5287. "description": "AddCollaboratorOption options when adding a user as a collaborator of a repository",
  5288. "type": "object",
  5289. "properties": {
  5290. "permission": {
  5291. "type": "string",
  5292. "x-go-name": "Permission"
  5293. }
  5294. },
  5295. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5296. },
  5297. "AddTimeOption": {
  5298. "description": "AddTimeOption options for adding time to an issue",
  5299. "type": "object",
  5300. "required": [
  5301. "time"
  5302. ],
  5303. "properties": {
  5304. "time": {
  5305. "description": "time in seconds",
  5306. "type": "integer",
  5307. "format": "int64",
  5308. "x-go-name": "Time"
  5309. }
  5310. },
  5311. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5312. },
  5313. "Attachment": {
  5314. "description": "Attachment a generic attachment",
  5315. "type": "object",
  5316. "properties": {
  5317. "browser_download_url": {
  5318. "type": "string",
  5319. "x-go-name": "DownloadURL"
  5320. },
  5321. "created_at": {
  5322. "type": "string",
  5323. "format": "date-time",
  5324. "x-go-name": "Created"
  5325. },
  5326. "download_count": {
  5327. "type": "integer",
  5328. "format": "int64",
  5329. "x-go-name": "DownloadCount"
  5330. },
  5331. "id": {
  5332. "type": "integer",
  5333. "format": "int64",
  5334. "x-go-name": "ID"
  5335. },
  5336. "name": {
  5337. "type": "string",
  5338. "x-go-name": "Name"
  5339. },
  5340. "size": {
  5341. "type": "integer",
  5342. "format": "int64",
  5343. "x-go-name": "Size"
  5344. },
  5345. "uuid": {
  5346. "type": "string",
  5347. "x-go-name": "UUID"
  5348. }
  5349. },
  5350. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5351. },
  5352. "Branch": {
  5353. "description": "Branch represents a repository branch",
  5354. "type": "object",
  5355. "properties": {
  5356. "commit": {
  5357. "$ref": "#/definitions/PayloadCommit"
  5358. },
  5359. "name": {
  5360. "type": "string",
  5361. "x-go-name": "Name"
  5362. }
  5363. },
  5364. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5365. },
  5366. "Comment": {
  5367. "description": "Comment represents a comment on a commit or issue",
  5368. "type": "object",
  5369. "properties": {
  5370. "body": {
  5371. "type": "string",
  5372. "x-go-name": "Body"
  5373. },
  5374. "created_at": {
  5375. "type": "string",
  5376. "format": "date-time",
  5377. "x-go-name": "Created"
  5378. },
  5379. "html_url": {
  5380. "type": "string",
  5381. "x-go-name": "HTMLURL"
  5382. },
  5383. "id": {
  5384. "type": "integer",
  5385. "format": "int64",
  5386. "x-go-name": "ID"
  5387. },
  5388. "issue_url": {
  5389. "type": "string",
  5390. "x-go-name": "IssueURL"
  5391. },
  5392. "pull_request_url": {
  5393. "type": "string",
  5394. "x-go-name": "PRURL"
  5395. },
  5396. "updated_at": {
  5397. "type": "string",
  5398. "format": "date-time",
  5399. "x-go-name": "Updated"
  5400. },
  5401. "user": {
  5402. "$ref": "#/definitions/User"
  5403. }
  5404. },
  5405. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5406. },
  5407. "CreateEmailOption": {
  5408. "description": "CreateEmailOption options when creating email addresses",
  5409. "type": "object",
  5410. "properties": {
  5411. "emails": {
  5412. "description": "email addresses to add",
  5413. "type": "array",
  5414. "items": {
  5415. "type": "string"
  5416. },
  5417. "x-go-name": "Emails"
  5418. }
  5419. },
  5420. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5421. },
  5422. "CreateForkOption": {
  5423. "description": "CreateForkOption options for creating a fork",
  5424. "type": "object",
  5425. "properties": {
  5426. "organization": {
  5427. "description": "organization name, if forking into an organization",
  5428. "type": "string",
  5429. "x-go-name": "Organization"
  5430. }
  5431. },
  5432. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5433. },
  5434. "CreateGPGKeyOption": {
  5435. "description": "CreateGPGKeyOption options create user GPG key",
  5436. "type": "object",
  5437. "required": [
  5438. "armored_public_key"
  5439. ],
  5440. "properties": {
  5441. "armored_public_key": {
  5442. "description": "An armored GPG key to add",
  5443. "type": "string",
  5444. "uniqueItems": true,
  5445. "x-go-name": "ArmoredKey"
  5446. }
  5447. },
  5448. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5449. },
  5450. "CreateHookOption": {
  5451. "description": "CreateHookOption options when create a hook",
  5452. "type": "object",
  5453. "required": [
  5454. "type",
  5455. "config"
  5456. ],
  5457. "properties": {
  5458. "active": {
  5459. "type": "boolean",
  5460. "default": false,
  5461. "x-go-name": "Active"
  5462. },
  5463. "config": {
  5464. "type": "object",
  5465. "additionalProperties": {
  5466. "type": "string"
  5467. },
  5468. "x-go-name": "Config"
  5469. },
  5470. "events": {
  5471. "type": "array",
  5472. "items": {
  5473. "type": "string"
  5474. },
  5475. "x-go-name": "Events"
  5476. },
  5477. "type": {
  5478. "type": "string",
  5479. "enum": [
  5480. "gitea",
  5481. "gogs",
  5482. "slack",
  5483. "discord"
  5484. ],
  5485. "x-go-name": "Type"
  5486. }
  5487. },
  5488. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5489. },
  5490. "CreateIssueCommentOption": {
  5491. "description": "CreateIssueCommentOption options for creating a comment on an issue",
  5492. "type": "object",
  5493. "required": [
  5494. "body"
  5495. ],
  5496. "properties": {
  5497. "body": {
  5498. "type": "string",
  5499. "x-go-name": "Body"
  5500. }
  5501. },
  5502. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5503. },
  5504. "CreateIssueOption": {
  5505. "description": "CreateIssueOption options to create one issue",
  5506. "type": "object",
  5507. "required": [
  5508. "title"
  5509. ],
  5510. "properties": {
  5511. "assignee": {
  5512. "description": "username of assignee",
  5513. "type": "string",
  5514. "x-go-name": "Assignee"
  5515. },
  5516. "body": {
  5517. "type": "string",
  5518. "x-go-name": "Body"
  5519. },
  5520. "closed": {
  5521. "type": "boolean",
  5522. "x-go-name": "Closed"
  5523. },
  5524. "labels": {
  5525. "description": "list of label ids",
  5526. "type": "array",
  5527. "items": {
  5528. "type": "integer",
  5529. "format": "int64"
  5530. },
  5531. "x-go-name": "Labels"
  5532. },
  5533. "milestone": {
  5534. "description": "milestone id",
  5535. "type": "integer",
  5536. "format": "int64",
  5537. "x-go-name": "Milestone"
  5538. },
  5539. "title": {
  5540. "type": "string",
  5541. "x-go-name": "Title"
  5542. }
  5543. },
  5544. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5545. },
  5546. "CreateKeyOption": {
  5547. "description": "CreateKeyOption options when creating a key",
  5548. "type": "object",
  5549. "required": [
  5550. "title",
  5551. "key"
  5552. ],
  5553. "properties": {
  5554. "key": {
  5555. "description": "An armored SSH key to add",
  5556. "type": "string",
  5557. "uniqueItems": true,
  5558. "x-go-name": "Key"
  5559. },
  5560. "read_only": {
  5561. "description": "Describe if the key has only read access or read/write",
  5562. "type": "boolean",
  5563. "x-go-name": "ReadOnly"
  5564. },
  5565. "title": {
  5566. "description": "Title of the key to add",
  5567. "type": "string",
  5568. "uniqueItems": true,
  5569. "x-go-name": "Title"
  5570. }
  5571. },
  5572. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5573. },
  5574. "CreateLabelOption": {
  5575. "description": "CreateLabelOption options for creating a label",
  5576. "type": "object",
  5577. "required": [
  5578. "name",
  5579. "color"
  5580. ],
  5581. "properties": {
  5582. "color": {
  5583. "type": "string",
  5584. "x-go-name": "Color",
  5585. "example": "#00aabb"
  5586. },
  5587. "name": {
  5588. "type": "string",
  5589. "x-go-name": "Name"
  5590. }
  5591. },
  5592. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5593. },
  5594. "CreateMilestoneOption": {
  5595. "description": "CreateMilestoneOption options for creating a milestone",
  5596. "type": "object",
  5597. "properties": {
  5598. "description": {
  5599. "type": "string",
  5600. "x-go-name": "Description"
  5601. },
  5602. "due_on": {
  5603. "type": "string",
  5604. "format": "date-time",
  5605. "x-go-name": "Deadline"
  5606. },
  5607. "title": {
  5608. "type": "string",
  5609. "x-go-name": "Title"
  5610. }
  5611. },
  5612. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5613. },
  5614. "CreateOrgOption": {
  5615. "description": "CreateOrgOption options for creating an organization",
  5616. "type": "object",
  5617. "required": [
  5618. "username"
  5619. ],
  5620. "properties": {
  5621. "description": {
  5622. "type": "string",
  5623. "x-go-name": "Description"
  5624. },
  5625. "full_name": {
  5626. "type": "string",
  5627. "x-go-name": "FullName"
  5628. },
  5629. "location": {
  5630. "type": "string",
  5631. "x-go-name": "Location"
  5632. },
  5633. "username": {
  5634. "type": "string",
  5635. "x-go-name": "UserName"
  5636. },
  5637. "website": {
  5638. "type": "string",
  5639. "x-go-name": "Website"
  5640. }
  5641. },
  5642. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5643. },
  5644. "CreatePullRequestOption": {
  5645. "description": "CreatePullRequestOption options when creating a pull request",
  5646. "type": "object",
  5647. "properties": {
  5648. "assignee": {
  5649. "type": "string",
  5650. "x-go-name": "Assignee"
  5651. },
  5652. "base": {
  5653. "type": "string",
  5654. "x-go-name": "Base"
  5655. },
  5656. "body": {
  5657. "type": "string",
  5658. "x-go-name": "Body"
  5659. },
  5660. "head": {
  5661. "type": "string",
  5662. "x-go-name": "Head"
  5663. },
  5664. "labels": {
  5665. "type": "array",
  5666. "items": {
  5667. "type": "integer",
  5668. "format": "int64"
  5669. },
  5670. "x-go-name": "Labels"
  5671. },
  5672. "milestone": {
  5673. "type": "integer",
  5674. "format": "int64",
  5675. "x-go-name": "Milestone"
  5676. },
  5677. "title": {
  5678. "type": "string",
  5679. "x-go-name": "Title"
  5680. }
  5681. },
  5682. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5683. },
  5684. "CreateReleaseOption": {
  5685. "description": "CreateReleaseOption options when creating a release",
  5686. "type": "object",
  5687. "required": [
  5688. "tag_name"
  5689. ],
  5690. "properties": {
  5691. "body": {
  5692. "type": "string",
  5693. "x-go-name": "Note"
  5694. },
  5695. "draft": {
  5696. "type": "boolean",
  5697. "x-go-name": "IsDraft"
  5698. },
  5699. "name": {
  5700. "type": "string",
  5701. "x-go-name": "Title"
  5702. },
  5703. "prerelease": {
  5704. "type": "boolean",
  5705. "x-go-name": "IsPrerelease"
  5706. },
  5707. "tag_name": {
  5708. "type": "string",
  5709. "x-go-name": "TagName"
  5710. },
  5711. "target_commitish": {
  5712. "type": "string",
  5713. "x-go-name": "Target"
  5714. }
  5715. },
  5716. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5717. },
  5718. "CreateRepoOption": {
  5719. "description": "CreateRepoOption options when creating repository",
  5720. "type": "object",
  5721. "required": [
  5722. "name"
  5723. ],
  5724. "properties": {
  5725. "auto_init": {
  5726. "description": "Whether the repository should be auto-intialized?",
  5727. "type": "boolean",
  5728. "x-go-name": "AutoInit"
  5729. },
  5730. "description": {
  5731. "description": "Description of the repository to create",
  5732. "type": "string",
  5733. "x-go-name": "Description"
  5734. },
  5735. "gitignores": {
  5736. "description": "Gitignores to use",
  5737. "type": "string",
  5738. "x-go-name": "Gitignores"
  5739. },
  5740. "license": {
  5741. "description": "License to use",
  5742. "type": "string",
  5743. "x-go-name": "License"
  5744. },
  5745. "name": {
  5746. "description": "Name of the repository to create",
  5747. "type": "string",
  5748. "uniqueItems": true,
  5749. "x-go-name": "Name"
  5750. },
  5751. "private": {
  5752. "description": "Whether the repository is private",
  5753. "type": "boolean",
  5754. "x-go-name": "Private"
  5755. },
  5756. "readme": {
  5757. "description": "Readme of the repository to create",
  5758. "type": "string",
  5759. "x-go-name": "Readme"
  5760. }
  5761. },
  5762. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5763. },
  5764. "CreateStatusOption": {
  5765. "description": "CreateStatusOption holds the information needed to create a new Status for a Commit",
  5766. "type": "object",
  5767. "properties": {
  5768. "context": {
  5769. "type": "string",
  5770. "x-go-name": "Context"
  5771. },
  5772. "description": {
  5773. "type": "string",
  5774. "x-go-name": "Description"
  5775. },
  5776. "state": {
  5777. "$ref": "#/definitions/StatusState"
  5778. },
  5779. "target_url": {
  5780. "type": "string",
  5781. "x-go-name": "TargetURL"
  5782. }
  5783. },
  5784. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5785. },
  5786. "CreateTeamOption": {
  5787. "description": "CreateTeamOption options for creating a team",
  5788. "type": "object",
  5789. "required": [
  5790. "name"
  5791. ],
  5792. "properties": {
  5793. "description": {
  5794. "type": "string",
  5795. "x-go-name": "Description"
  5796. },
  5797. "name": {
  5798. "type": "string",
  5799. "x-go-name": "Name"
  5800. },
  5801. "permission": {
  5802. "type": "string",
  5803. "enum": [
  5804. "read",
  5805. "write",
  5806. "admin"
  5807. ],
  5808. "x-go-name": "Permission"
  5809. }
  5810. },
  5811. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5812. },
  5813. "CreateUserOption": {
  5814. "description": "CreateUserOption create user options",
  5815. "type": "object",
  5816. "required": [
  5817. "username",
  5818. "email",
  5819. "password"
  5820. ],
  5821. "properties": {
  5822. "email": {
  5823. "type": "string",
  5824. "format": "email",
  5825. "x-go-name": "Email"
  5826. },
  5827. "full_name": {
  5828. "type": "string",
  5829. "x-go-name": "FullName"
  5830. },
  5831. "login_name": {
  5832. "type": "string",
  5833. "x-go-name": "LoginName"
  5834. },
  5835. "password": {
  5836. "type": "string",
  5837. "x-go-name": "Password"
  5838. },
  5839. "send_notify": {
  5840. "type": "boolean",
  5841. "x-go-name": "SendNotify"
  5842. },
  5843. "source_id": {
  5844. "type": "integer",
  5845. "format": "int64",
  5846. "x-go-name": "SourceID"
  5847. },
  5848. "username": {
  5849. "type": "string",
  5850. "x-go-name": "Username"
  5851. }
  5852. },
  5853. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5854. },
  5855. "DeleteEmailOption": {
  5856. "description": "DeleteEmailOption options when deleting email addresses",
  5857. "type": "object",
  5858. "properties": {
  5859. "emails": {
  5860. "description": "email addresses to delete",
  5861. "type": "array",
  5862. "items": {
  5863. "type": "string"
  5864. },
  5865. "x-go-name": "Emails"
  5866. }
  5867. },
  5868. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5869. },
  5870. "DeployKey": {
  5871. "description": "DeployKey a deploy key",
  5872. "type": "object",
  5873. "properties": {
  5874. "created_at": {
  5875. "type": "string",
  5876. "format": "date-time",
  5877. "x-go-name": "Created"
  5878. },
  5879. "id": {
  5880. "type": "integer",
  5881. "format": "int64",
  5882. "x-go-name": "ID"
  5883. },
  5884. "key": {
  5885. "type": "string",
  5886. "x-go-name": "Key"
  5887. },
  5888. "read_only": {
  5889. "type": "boolean",
  5890. "x-go-name": "ReadOnly"
  5891. },
  5892. "title": {
  5893. "type": "string",
  5894. "x-go-name": "Title"
  5895. },
  5896. "url": {
  5897. "type": "string",
  5898. "x-go-name": "URL"
  5899. }
  5900. },
  5901. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5902. },
  5903. "EditAttachmentOptions": {
  5904. "description": "EditAttachmentOptions options for editing attachments",
  5905. "type": "object",
  5906. "properties": {
  5907. "name": {
  5908. "type": "string",
  5909. "x-go-name": "Name"
  5910. }
  5911. },
  5912. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5913. },
  5914. "EditHookOption": {
  5915. "description": "EditHookOption options when modify one hook",
  5916. "type": "object",
  5917. "properties": {
  5918. "active": {
  5919. "type": "boolean",
  5920. "x-go-name": "Active"
  5921. },
  5922. "config": {
  5923. "type": "object",
  5924. "additionalProperties": {
  5925. "type": "string"
  5926. },
  5927. "x-go-name": "Config"
  5928. },
  5929. "events": {
  5930. "type": "array",
  5931. "items": {
  5932. "type": "string"
  5933. },
  5934. "x-go-name": "Events"
  5935. }
  5936. },
  5937. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5938. },
  5939. "EditIssueCommentOption": {
  5940. "description": "EditIssueCommentOption options for editing a comment",
  5941. "type": "object",
  5942. "required": [
  5943. "body"
  5944. ],
  5945. "properties": {
  5946. "body": {
  5947. "type": "string",
  5948. "x-go-name": "Body"
  5949. }
  5950. },
  5951. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5952. },
  5953. "EditIssueOption": {
  5954. "description": "EditIssueOption options for editing an issue",
  5955. "type": "object",
  5956. "properties": {
  5957. "assignee": {
  5958. "type": "string",
  5959. "x-go-name": "Assignee"
  5960. },
  5961. "body": {
  5962. "type": "string",
  5963. "x-go-name": "Body"
  5964. },
  5965. "milestone": {
  5966. "type": "integer",
  5967. "format": "int64",
  5968. "x-go-name": "Milestone"
  5969. },
  5970. "state": {
  5971. "type": "string",
  5972. "x-go-name": "State"
  5973. },
  5974. "title": {
  5975. "type": "string",
  5976. "x-go-name": "Title"
  5977. }
  5978. },
  5979. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5980. },
  5981. "EditLabelOption": {
  5982. "description": "EditLabelOption options for editing a label",
  5983. "type": "object",
  5984. "properties": {
  5985. "color": {
  5986. "type": "string",
  5987. "x-go-name": "Color"
  5988. },
  5989. "name": {
  5990. "type": "string",
  5991. "x-go-name": "Name"
  5992. }
  5993. },
  5994. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5995. },
  5996. "EditMilestoneOption": {
  5997. "description": "EditMilestoneOption options for editing a milestone",
  5998. "type": "object",
  5999. "properties": {
  6000. "description": {
  6001. "type": "string",
  6002. "x-go-name": "Description"
  6003. },
  6004. "due_on": {
  6005. "type": "string",
  6006. "format": "date-time",
  6007. "x-go-name": "Deadline"
  6008. },
  6009. "state": {
  6010. "type": "string",
  6011. "x-go-name": "State"
  6012. },
  6013. "title": {
  6014. "type": "string",
  6015. "x-go-name": "Title"
  6016. }
  6017. },
  6018. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6019. },
  6020. "EditOrgOption": {
  6021. "description": "EditOrgOption options for editing an organization",
  6022. "type": "object",
  6023. "properties": {
  6024. "description": {
  6025. "type": "string",
  6026. "x-go-name": "Description"
  6027. },
  6028. "full_name": {
  6029. "type": "string",
  6030. "x-go-name": "FullName"
  6031. },
  6032. "location": {
  6033. "type": "string",
  6034. "x-go-name": "Location"
  6035. },
  6036. "website": {
  6037. "type": "string",
  6038. "x-go-name": "Website"
  6039. }
  6040. },
  6041. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6042. },
  6043. "EditPullRequestOption": {
  6044. "description": "EditPullRequestOption options when modify pull request",
  6045. "type": "object",
  6046. "properties": {
  6047. "assignee": {
  6048. "type": "string",
  6049. "x-go-name": "Assignee"
  6050. },
  6051. "body": {
  6052. "type": "string",
  6053. "x-go-name": "Body"
  6054. },
  6055. "labels": {
  6056. "type": "array",
  6057. "items": {
  6058. "type": "integer",
  6059. "format": "int64"
  6060. },
  6061. "x-go-name": "Labels"
  6062. },
  6063. "milestone": {
  6064. "type": "integer",
  6065. "format": "int64",
  6066. "x-go-name": "Milestone"
  6067. },
  6068. "state": {
  6069. "type": "string",
  6070. "x-go-name": "State"
  6071. },
  6072. "title": {
  6073. "type": "string",
  6074. "x-go-name": "Title"
  6075. }
  6076. },
  6077. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6078. },
  6079. "EditReleaseOption": {
  6080. "description": "EditReleaseOption options when editing a release",
  6081. "type": "object",
  6082. "properties": {
  6083. "body": {
  6084. "type": "string",
  6085. "x-go-name": "Note"
  6086. },
  6087. "draft": {
  6088. "type": "boolean",
  6089. "x-go-name": "IsDraft"
  6090. },
  6091. "name": {
  6092. "type": "string",
  6093. "x-go-name": "Title"
  6094. },
  6095. "prerelease": {
  6096. "type": "boolean",
  6097. "x-go-name": "IsPrerelease"
  6098. },
  6099. "tag_name": {
  6100. "type": "string",
  6101. "x-go-name": "TagName"
  6102. },
  6103. "target_commitish": {
  6104. "type": "string",
  6105. "x-go-name": "Target"
  6106. }
  6107. },
  6108. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6109. },
  6110. "EditTeamOption": {
  6111. "description": "EditTeamOption options for editing a team",
  6112. "type": "object",
  6113. "required": [
  6114. "name"
  6115. ],
  6116. "properties": {
  6117. "description": {
  6118. "type": "string",
  6119. "x-go-name": "Description"
  6120. },
  6121. "name": {
  6122. "type": "string",
  6123. "x-go-name": "Name"
  6124. },
  6125. "permission": {
  6126. "type": "string",
  6127. "enum": [
  6128. "read",
  6129. "write",
  6130. "admin"
  6131. ],
  6132. "x-go-name": "Permission"
  6133. }
  6134. },
  6135. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6136. },
  6137. "EditUserOption": {
  6138. "description": "EditUserOption edit user options",
  6139. "type": "object",
  6140. "required": [
  6141. "email"
  6142. ],
  6143. "properties": {
  6144. "active": {
  6145. "type": "boolean",
  6146. "x-go-name": "Active"
  6147. },
  6148. "admin": {
  6149. "type": "boolean",
  6150. "x-go-name": "Admin"
  6151. },
  6152. "allow_git_hook": {
  6153. "type": "boolean",
  6154. "x-go-name": "AllowGitHook"
  6155. },
  6156. "allow_import_local": {
  6157. "type": "boolean",
  6158. "x-go-name": "AllowImportLocal"
  6159. },
  6160. "email": {
  6161. "type": "string",
  6162. "format": "email",
  6163. "x-go-name": "Email"
  6164. },
  6165. "full_name": {
  6166. "type": "string",
  6167. "x-go-name": "FullName"
  6168. },
  6169. "location": {
  6170. "type": "string",
  6171. "x-go-name": "Location"
  6172. },
  6173. "login_name": {
  6174. "type": "string",
  6175. "x-go-name": "LoginName"
  6176. },
  6177. "max_repo_creation": {
  6178. "type": "integer",
  6179. "format": "int64",
  6180. "x-go-name": "MaxRepoCreation"
  6181. },
  6182. "password": {
  6183. "type": "string",
  6184. "x-go-name": "Password"
  6185. },
  6186. "source_id": {
  6187. "type": "integer",
  6188. "format": "int64",
  6189. "x-go-name": "SourceID"
  6190. },
  6191. "website": {
  6192. "type": "string",
  6193. "x-go-name": "Website"
  6194. }
  6195. },
  6196. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6197. },
  6198. "Email": {
  6199. "description": "Email an email address belonging to a user",
  6200. "type": "object",
  6201. "properties": {
  6202. "email": {
  6203. "type": "string",
  6204. "format": "email",
  6205. "x-go-name": "Email"
  6206. },
  6207. "primary": {
  6208. "type": "boolean",
  6209. "x-go-name": "Primary"
  6210. },
  6211. "verified": {
  6212. "type": "boolean",
  6213. "x-go-name": "Verified"
  6214. }
  6215. },
  6216. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6217. },
  6218. "GPGKey": {
  6219. "description": "GPGKey a user GPG key to sign commit and tag in repository",
  6220. "type": "object",
  6221. "properties": {
  6222. "can_certify": {
  6223. "type": "boolean",
  6224. "x-go-name": "CanCertify"
  6225. },
  6226. "can_encrypt_comms": {
  6227. "type": "boolean",
  6228. "x-go-name": "CanEncryptComms"
  6229. },
  6230. "can_encrypt_storage": {
  6231. "type": "boolean",
  6232. "x-go-name": "CanEncryptStorage"
  6233. },
  6234. "can_sign": {
  6235. "type": "boolean",
  6236. "x-go-name": "CanSign"
  6237. },
  6238. "created_at": {
  6239. "type": "string",
  6240. "format": "date-time",
  6241. "x-go-name": "Created"
  6242. },
  6243. "emails": {
  6244. "type": "array",
  6245. "items": {
  6246. "$ref": "#/definitions/GPGKeyEmail"
  6247. },
  6248. "x-go-name": "Emails"
  6249. },
  6250. "expires_at": {
  6251. "type": "string",
  6252. "format": "date-time",
  6253. "x-go-name": "Expires"
  6254. },
  6255. "id": {
  6256. "type": "integer",
  6257. "format": "int64",
  6258. "x-go-name": "ID"
  6259. },
  6260. "key_id": {
  6261. "type": "string",
  6262. "x-go-name": "KeyID"
  6263. },
  6264. "primary_key_id": {
  6265. "type": "string",
  6266. "x-go-name": "PrimaryKeyID"
  6267. },
  6268. "public_key": {
  6269. "type": "string",
  6270. "x-go-name": "PublicKey"
  6271. },
  6272. "subkeys": {
  6273. "type": "array",
  6274. "items": {
  6275. "$ref": "#/definitions/GPGKey"
  6276. },
  6277. "x-go-name": "SubsKey"
  6278. }
  6279. },
  6280. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6281. },
  6282. "GPGKeyEmail": {
  6283. "description": "GPGKeyEmail an email attached to a GPGKey",
  6284. "type": "object",
  6285. "properties": {
  6286. "email": {
  6287. "type": "string",
  6288. "x-go-name": "Email"
  6289. },
  6290. "verified": {
  6291. "type": "boolean",
  6292. "x-go-name": "Verified"
  6293. }
  6294. },
  6295. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6296. },
  6297. "Issue": {
  6298. "description": "Issue represents an issue in a repository",
  6299. "type": "object",
  6300. "properties": {
  6301. "assignee": {
  6302. "$ref": "#/definitions/User"
  6303. },
  6304. "body": {
  6305. "type": "string",
  6306. "x-go-name": "Body"
  6307. },
  6308. "comments": {
  6309. "type": "integer",
  6310. "format": "int64",
  6311. "x-go-name": "Comments"
  6312. },
  6313. "created_at": {
  6314. "type": "string",
  6315. "format": "date-time",
  6316. "x-go-name": "Created"
  6317. },
  6318. "id": {
  6319. "type": "integer",
  6320. "format": "int64",
  6321. "x-go-name": "ID"
  6322. },
  6323. "labels": {
  6324. "type": "array",
  6325. "items": {
  6326. "$ref": "#/definitions/Label"
  6327. },
  6328. "x-go-name": "Labels"
  6329. },
  6330. "milestone": {
  6331. "$ref": "#/definitions/Milestone"
  6332. },
  6333. "number": {
  6334. "type": "integer",
  6335. "format": "int64",
  6336. "x-go-name": "Index"
  6337. },
  6338. "pull_request": {
  6339. "$ref": "#/definitions/PullRequestMeta"
  6340. },
  6341. "state": {
  6342. "$ref": "#/definitions/StateType"
  6343. },
  6344. "title": {
  6345. "type": "string",
  6346. "x-go-name": "Title"
  6347. },
  6348. "updated_at": {
  6349. "type": "string",
  6350. "format": "date-time",
  6351. "x-go-name": "Updated"
  6352. },
  6353. "url": {
  6354. "type": "string",
  6355. "x-go-name": "URL"
  6356. },
  6357. "user": {
  6358. "$ref": "#/definitions/User"
  6359. }
  6360. },
  6361. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6362. },
  6363. "IssueLabelsOption": {
  6364. "description": "IssueLabelsOption a collection of labels",
  6365. "type": "object",
  6366. "properties": {
  6367. "labels": {
  6368. "description": "list of label IDs",
  6369. "type": "array",
  6370. "items": {
  6371. "type": "integer",
  6372. "format": "int64"
  6373. },
  6374. "x-go-name": "Labels"
  6375. }
  6376. },
  6377. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6378. },
  6379. "Label": {
  6380. "description": "Label a label to an issue or a pr",
  6381. "type": "object",
  6382. "properties": {
  6383. "color": {
  6384. "type": "string",
  6385. "x-go-name": "Color",
  6386. "example": "00aabb"
  6387. },
  6388. "id": {
  6389. "type": "integer",
  6390. "format": "int64",
  6391. "x-go-name": "ID"
  6392. },
  6393. "name": {
  6394. "type": "string",
  6395. "x-go-name": "Name"
  6396. },
  6397. "url": {
  6398. "type": "string",
  6399. "x-go-name": "URL"
  6400. }
  6401. },
  6402. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6403. },
  6404. "MarkdownOption": {
  6405. "description": "MarkdownOption markdown options",
  6406. "type": "object",
  6407. "properties": {
  6408. "Context": {
  6409. "description": "Context to render\n\nin: body",
  6410. "type": "string"
  6411. },
  6412. "Mode": {
  6413. "description": "Mode to render\n\nin: body",
  6414. "type": "string"
  6415. },
  6416. "Text": {
  6417. "description": "Text markdown to render\n\nin: body",
  6418. "type": "string"
  6419. },
  6420. "Wiki": {
  6421. "description": "Is it a wiki page ?\n\nin: body",
  6422. "type": "boolean"
  6423. }
  6424. },
  6425. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6426. },
  6427. "MigrateRepoForm": {
  6428. "description": "MigrateRepoForm form for migrating repository",
  6429. "type": "object",
  6430. "required": [
  6431. "clone_addr",
  6432. "uid",
  6433. "repo_name"
  6434. ],
  6435. "properties": {
  6436. "auth_password": {
  6437. "type": "string",
  6438. "x-go-name": "AuthPassword"
  6439. },
  6440. "auth_username": {
  6441. "type": "string",
  6442. "x-go-name": "AuthUsername"
  6443. },
  6444. "clone_addr": {
  6445. "type": "string",
  6446. "x-go-name": "CloneAddr"
  6447. },
  6448. "description": {
  6449. "type": "string",
  6450. "x-go-name": "Description"
  6451. },
  6452. "mirror": {
  6453. "type": "boolean",
  6454. "x-go-name": "Mirror"
  6455. },
  6456. "private": {
  6457. "type": "boolean",
  6458. "x-go-name": "Private"
  6459. },
  6460. "repo_name": {
  6461. "type": "string",
  6462. "x-go-name": "RepoName"
  6463. },
  6464. "uid": {
  6465. "type": "integer",
  6466. "format": "int64",
  6467. "x-go-name": "UID"
  6468. }
  6469. },
  6470. "x-go-package": "code.gitea.io/gitea/modules/auth"
  6471. },
  6472. "Milestone": {
  6473. "description": "Milestone milestone is a collection of issues on one repository",
  6474. "type": "object",
  6475. "properties": {
  6476. "closed_at": {
  6477. "type": "string",
  6478. "format": "date-time",
  6479. "x-go-name": "Closed"
  6480. },
  6481. "closed_issues": {
  6482. "type": "integer",
  6483. "format": "int64",
  6484. "x-go-name": "ClosedIssues"
  6485. },
  6486. "description": {
  6487. "type": "string",
  6488. "x-go-name": "Description"
  6489. },
  6490. "due_on": {
  6491. "type": "string",
  6492. "format": "date-time",
  6493. "x-go-name": "Deadline"
  6494. },
  6495. "id": {
  6496. "type": "integer",
  6497. "format": "int64",
  6498. "x-go-name": "ID"
  6499. },
  6500. "open_issues": {
  6501. "type": "integer",
  6502. "format": "int64",
  6503. "x-go-name": "OpenIssues"
  6504. },
  6505. "state": {
  6506. "$ref": "#/definitions/StateType"
  6507. },
  6508. "title": {
  6509. "type": "string",
  6510. "x-go-name": "Title"
  6511. }
  6512. },
  6513. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6514. },
  6515. "Organization": {
  6516. "description": "Organization represents an organization",
  6517. "type": "object",
  6518. "properties": {
  6519. "avatar_url": {
  6520. "type": "string",
  6521. "x-go-name": "AvatarURL"
  6522. },
  6523. "description": {
  6524. "type": "string",
  6525. "x-go-name": "Description"
  6526. },
  6527. "full_name": {
  6528. "type": "string",
  6529. "x-go-name": "FullName"
  6530. },
  6531. "id": {
  6532. "type": "integer",
  6533. "format": "int64",
  6534. "x-go-name": "ID"
  6535. },
  6536. "location": {
  6537. "type": "string",
  6538. "x-go-name": "Location"
  6539. },
  6540. "username": {
  6541. "type": "string",
  6542. "x-go-name": "UserName"
  6543. },
  6544. "website": {
  6545. "type": "string",
  6546. "x-go-name": "Website"
  6547. }
  6548. },
  6549. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6550. },
  6551. "PRBranchInfo": {
  6552. "description": "PRBranchInfo information about a branch",
  6553. "type": "object",
  6554. "properties": {
  6555. "label": {
  6556. "type": "string",
  6557. "x-go-name": "Name"
  6558. },
  6559. "ref": {
  6560. "type": "string",
  6561. "x-go-name": "Ref"
  6562. },
  6563. "repo": {
  6564. "$ref": "#/definitions/Repository"
  6565. },
  6566. "repo_id": {
  6567. "type": "integer",
  6568. "format": "int64",
  6569. "x-go-name": "RepoID"
  6570. },
  6571. "sha": {
  6572. "type": "string",
  6573. "x-go-name": "Sha"
  6574. }
  6575. },
  6576. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6577. },
  6578. "PayloadCommit": {
  6579. "description": "PayloadCommit represents a commit",
  6580. "type": "object",
  6581. "properties": {
  6582. "author": {
  6583. "$ref": "#/definitions/PayloadUser"
  6584. },
  6585. "committer": {
  6586. "$ref": "#/definitions/PayloadUser"
  6587. },
  6588. "id": {
  6589. "description": "sha1 hash of the commit",
  6590. "type": "string",
  6591. "x-go-name": "ID"
  6592. },
  6593. "message": {
  6594. "type": "string",
  6595. "x-go-name": "Message"
  6596. },
  6597. "timestamp": {
  6598. "type": "string",
  6599. "format": "date-time",
  6600. "x-go-name": "Timestamp"
  6601. },
  6602. "url": {
  6603. "type": "string",
  6604. "x-go-name": "URL"
  6605. },
  6606. "verification": {
  6607. "$ref": "#/definitions/PayloadCommitVerification"
  6608. }
  6609. },
  6610. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6611. },
  6612. "PayloadCommitVerification": {
  6613. "description": "PayloadCommitVerification represents the GPG verification of a commit",
  6614. "type": "object",
  6615. "properties": {
  6616. "payload": {
  6617. "type": "string",
  6618. "x-go-name": "Payload"
  6619. },
  6620. "reason": {
  6621. "type": "string",
  6622. "x-go-name": "Reason"
  6623. },
  6624. "signature": {
  6625. "type": "string",
  6626. "x-go-name": "Signature"
  6627. },
  6628. "verified": {
  6629. "type": "boolean",
  6630. "x-go-name": "Verified"
  6631. }
  6632. },
  6633. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6634. },
  6635. "PayloadUser": {
  6636. "description": "PayloadUser represents the author or committer of a commit",
  6637. "type": "object",
  6638. "properties": {
  6639. "email": {
  6640. "type": "string",
  6641. "format": "email",
  6642. "x-go-name": "Email"
  6643. },
  6644. "name": {
  6645. "description": "Full name of the commit author",
  6646. "type": "string",
  6647. "x-go-name": "Name"
  6648. },
  6649. "username": {
  6650. "type": "string",
  6651. "x-go-name": "UserName"
  6652. }
  6653. },
  6654. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6655. },
  6656. "Permission": {
  6657. "description": "Permission represents a set of permissions",
  6658. "type": "object",
  6659. "properties": {
  6660. "admin": {
  6661. "type": "boolean",
  6662. "x-go-name": "Admin"
  6663. },
  6664. "pull": {
  6665. "type": "boolean",
  6666. "x-go-name": "Pull"
  6667. },
  6668. "push": {
  6669. "type": "boolean",
  6670. "x-go-name": "Push"
  6671. }
  6672. },
  6673. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6674. },
  6675. "PublicKey": {
  6676. "description": "PublicKey publickey is a user key to push code to repository",
  6677. "type": "object",
  6678. "properties": {
  6679. "created_at": {
  6680. "type": "string",
  6681. "format": "date-time",
  6682. "x-go-name": "Created"
  6683. },
  6684. "fingerprint": {
  6685. "type": "string",
  6686. "x-go-name": "Fingerprint"
  6687. },
  6688. "id": {
  6689. "type": "integer",
  6690. "format": "int64",
  6691. "x-go-name": "ID"
  6692. },
  6693. "key": {
  6694. "type": "string",
  6695. "x-go-name": "Key"
  6696. },
  6697. "title": {
  6698. "type": "string",
  6699. "x-go-name": "Title"
  6700. },
  6701. "url": {
  6702. "type": "string",
  6703. "x-go-name": "URL"
  6704. }
  6705. },
  6706. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6707. },
  6708. "PullRequest": {
  6709. "description": "PullRequest represents a pull request",
  6710. "type": "object",
  6711. "properties": {
  6712. "assignee": {
  6713. "$ref": "#/definitions/User"
  6714. },
  6715. "base": {
  6716. "$ref": "#/definitions/PRBranchInfo"
  6717. },
  6718. "body": {
  6719. "type": "string",
  6720. "x-go-name": "Body"
  6721. },
  6722. "comments": {
  6723. "type": "integer",
  6724. "format": "int64",
  6725. "x-go-name": "Comments"
  6726. },
  6727. "created_at": {
  6728. "type": "string",
  6729. "format": "date-time",
  6730. "x-go-name": "Created"
  6731. },
  6732. "diff_url": {
  6733. "type": "string",
  6734. "x-go-name": "DiffURL"
  6735. },
  6736. "head": {
  6737. "$ref": "#/definitions/PRBranchInfo"
  6738. },
  6739. "html_url": {
  6740. "type": "string",
  6741. "x-go-name": "HTMLURL"
  6742. },
  6743. "id": {
  6744. "type": "integer",
  6745. "format": "int64",
  6746. "x-go-name": "ID"
  6747. },
  6748. "labels": {
  6749. "type": "array",
  6750. "items": {
  6751. "$ref": "#/definitions/Label"
  6752. },
  6753. "x-go-name": "Labels"
  6754. },
  6755. "merge_base": {
  6756. "type": "string",
  6757. "x-go-name": "MergeBase"
  6758. },
  6759. "merge_commit_sha": {
  6760. "type": "string",
  6761. "x-go-name": "MergedCommitID"
  6762. },
  6763. "mergeable": {
  6764. "type": "boolean",
  6765. "x-go-name": "Mergeable"
  6766. },
  6767. "merged": {
  6768. "type": "boolean",
  6769. "x-go-name": "HasMerged"
  6770. },
  6771. "merged_at": {
  6772. "type": "string",
  6773. "format": "date-time",
  6774. "x-go-name": "Merged"
  6775. },
  6776. "merged_by": {
  6777. "$ref": "#/definitions/User"
  6778. },
  6779. "milestone": {
  6780. "$ref": "#/definitions/Milestone"
  6781. },
  6782. "number": {
  6783. "type": "integer",
  6784. "format": "int64",
  6785. "x-go-name": "Index"
  6786. },
  6787. "patch_url": {
  6788. "type": "string",
  6789. "x-go-name": "PatchURL"
  6790. },
  6791. "state": {
  6792. "$ref": "#/definitions/StateType"
  6793. },
  6794. "title": {
  6795. "type": "string",
  6796. "x-go-name": "Title"
  6797. },
  6798. "updated_at": {
  6799. "type": "string",
  6800. "format": "date-time",
  6801. "x-go-name": "Updated"
  6802. },
  6803. "url": {
  6804. "type": "string",
  6805. "x-go-name": "URL"
  6806. },
  6807. "user": {
  6808. "$ref": "#/definitions/User"
  6809. }
  6810. },
  6811. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6812. },
  6813. "PullRequestMeta": {
  6814. "description": "PullRequestMeta PR info if an issue is a PR",
  6815. "type": "object",
  6816. "properties": {
  6817. "merged": {
  6818. "type": "boolean",
  6819. "x-go-name": "HasMerged"
  6820. },
  6821. "merged_at": {
  6822. "type": "string",
  6823. "format": "date-time",
  6824. "x-go-name": "Merged"
  6825. }
  6826. },
  6827. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6828. },
  6829. "Release": {
  6830. "description": "Release represents a repository release",
  6831. "type": "object",
  6832. "properties": {
  6833. "assets": {
  6834. "type": "array",
  6835. "items": {
  6836. "$ref": "#/definitions/Attachment"
  6837. },
  6838. "x-go-name": "Attachments"
  6839. },
  6840. "author": {
  6841. "$ref": "#/definitions/User"
  6842. },
  6843. "body": {
  6844. "type": "string",
  6845. "x-go-name": "Note"
  6846. },
  6847. "created_at": {
  6848. "type": "string",
  6849. "format": "date-time",
  6850. "x-go-name": "CreatedAt"
  6851. },
  6852. "draft": {
  6853. "type": "boolean",
  6854. "x-go-name": "IsDraft"
  6855. },
  6856. "id": {
  6857. "type": "integer",
  6858. "format": "int64",
  6859. "x-go-name": "ID"
  6860. },
  6861. "name": {
  6862. "type": "string",
  6863. "x-go-name": "Title"
  6864. },
  6865. "prerelease": {
  6866. "type": "boolean",
  6867. "x-go-name": "IsPrerelease"
  6868. },
  6869. "published_at": {
  6870. "type": "string",
  6871. "format": "date-time",
  6872. "x-go-name": "PublishedAt"
  6873. },
  6874. "tag_name": {
  6875. "type": "string",
  6876. "x-go-name": "TagName"
  6877. },
  6878. "tarball_url": {
  6879. "type": "string",
  6880. "x-go-name": "TarURL"
  6881. },
  6882. "target_commitish": {
  6883. "type": "string",
  6884. "x-go-name": "Target"
  6885. },
  6886. "url": {
  6887. "type": "string",
  6888. "x-go-name": "URL"
  6889. },
  6890. "zipball_url": {
  6891. "type": "string",
  6892. "x-go-name": "ZipURL"
  6893. }
  6894. },
  6895. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6896. },
  6897. "Repository": {
  6898. "description": "Repository represents a repository",
  6899. "type": "object",
  6900. "properties": {
  6901. "clone_url": {
  6902. "type": "string",
  6903. "x-go-name": "CloneURL"
  6904. },
  6905. "created_at": {
  6906. "type": "string",
  6907. "format": "date-time",
  6908. "x-go-name": "Created"
  6909. },
  6910. "default_branch": {
  6911. "type": "string",
  6912. "x-go-name": "DefaultBranch"
  6913. },
  6914. "description": {
  6915. "type": "string",
  6916. "x-go-name": "Description"
  6917. },
  6918. "empty": {
  6919. "type": "boolean",
  6920. "x-go-name": "Empty"
  6921. },
  6922. "fork": {
  6923. "type": "boolean",
  6924. "x-go-name": "Fork"
  6925. },
  6926. "forks_count": {
  6927. "type": "integer",
  6928. "format": "int64",
  6929. "x-go-name": "Forks"
  6930. },
  6931. "full_name": {
  6932. "type": "string",
  6933. "x-go-name": "FullName"
  6934. },
  6935. "html_url": {
  6936. "type": "string",
  6937. "x-go-name": "HTMLURL"
  6938. },
  6939. "id": {
  6940. "type": "integer",
  6941. "format": "int64",
  6942. "x-go-name": "ID"
  6943. },
  6944. "mirror": {
  6945. "type": "boolean",
  6946. "x-go-name": "Mirror"
  6947. },
  6948. "name": {
  6949. "type": "string",
  6950. "x-go-name": "Name"
  6951. },
  6952. "open_issues_count": {
  6953. "type": "integer",
  6954. "format": "int64",
  6955. "x-go-name": "OpenIssues"
  6956. },
  6957. "owner": {
  6958. "$ref": "#/definitions/User"
  6959. },
  6960. "parent": {
  6961. "$ref": "#/definitions/Repository"
  6962. },
  6963. "permissions": {
  6964. "$ref": "#/definitions/Permission"
  6965. },
  6966. "private": {
  6967. "type": "boolean",
  6968. "x-go-name": "Private"
  6969. },
  6970. "size": {
  6971. "type": "integer",
  6972. "format": "int64",
  6973. "x-go-name": "Size"
  6974. },
  6975. "ssh_url": {
  6976. "type": "string",
  6977. "x-go-name": "SSHURL"
  6978. },
  6979. "stars_count": {
  6980. "type": "integer",
  6981. "format": "int64",
  6982. "x-go-name": "Stars"
  6983. },
  6984. "updated_at": {
  6985. "type": "string",
  6986. "format": "date-time",
  6987. "x-go-name": "Updated"
  6988. },
  6989. "watchers_count": {
  6990. "type": "integer",
  6991. "format": "int64",
  6992. "x-go-name": "Watchers"
  6993. },
  6994. "website": {
  6995. "type": "string",
  6996. "x-go-name": "Website"
  6997. }
  6998. },
  6999. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7000. },
  7001. "SearchResults": {
  7002. "description": "SearchResults results of a successful search",
  7003. "type": "object",
  7004. "properties": {
  7005. "data": {
  7006. "type": "array",
  7007. "items": {
  7008. "$ref": "#/definitions/Repository"
  7009. },
  7010. "x-go-name": "Data"
  7011. },
  7012. "ok": {
  7013. "type": "boolean",
  7014. "x-go-name": "OK"
  7015. }
  7016. },
  7017. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7018. },
  7019. "ServerVersion": {
  7020. "description": "ServerVersion wraps the version of the server",
  7021. "type": "object",
  7022. "properties": {
  7023. "version": {
  7024. "type": "string",
  7025. "x-go-name": "Version"
  7026. }
  7027. },
  7028. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7029. },
  7030. "StateType": {
  7031. "description": "StateType issue state type",
  7032. "type": "string",
  7033. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7034. },
  7035. "Status": {
  7036. "description": "Status holds a single Status of a single Commit",
  7037. "type": "object",
  7038. "properties": {
  7039. "context": {
  7040. "type": "string",
  7041. "x-go-name": "Context"
  7042. },
  7043. "created_at": {
  7044. "type": "string",
  7045. "format": "date-time",
  7046. "x-go-name": "Created"
  7047. },
  7048. "creator": {
  7049. "$ref": "#/definitions/User"
  7050. },
  7051. "description": {
  7052. "type": "string",
  7053. "x-go-name": "Description"
  7054. },
  7055. "id": {
  7056. "type": "integer",
  7057. "format": "int64",
  7058. "x-go-name": "ID"
  7059. },
  7060. "status": {
  7061. "$ref": "#/definitions/StatusState"
  7062. },
  7063. "target_url": {
  7064. "type": "string",
  7065. "x-go-name": "TargetURL"
  7066. },
  7067. "updated_at": {
  7068. "type": "string",
  7069. "format": "date-time",
  7070. "x-go-name": "Updated"
  7071. },
  7072. "url": {
  7073. "type": "string",
  7074. "x-go-name": "URL"
  7075. }
  7076. },
  7077. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7078. },
  7079. "StatusState": {
  7080. "description": "StatusState holds the state of a Status\nIt can be \"pending\", \"success\", \"error\", \"failure\", and \"warning\"",
  7081. "type": "string",
  7082. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7083. },
  7084. "Team": {
  7085. "description": "Team represents a team in an organization",
  7086. "type": "object",
  7087. "properties": {
  7088. "description": {
  7089. "type": "string",
  7090. "x-go-name": "Description"
  7091. },
  7092. "id": {
  7093. "type": "integer",
  7094. "format": "int64",
  7095. "x-go-name": "ID"
  7096. },
  7097. "name": {
  7098. "type": "string",
  7099. "x-go-name": "Name"
  7100. },
  7101. "permission": {
  7102. "type": "string",
  7103. "enum": [
  7104. "none",
  7105. "read",
  7106. "write",
  7107. "admin",
  7108. "owner"
  7109. ],
  7110. "x-go-name": "Permission"
  7111. }
  7112. },
  7113. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7114. },
  7115. "TrackedTime": {
  7116. "description": "TrackedTime worked time for an issue / pr",
  7117. "type": "object",
  7118. "properties": {
  7119. "created": {
  7120. "type": "string",
  7121. "format": "date-time",
  7122. "x-go-name": "Created"
  7123. },
  7124. "id": {
  7125. "type": "integer",
  7126. "format": "int64",
  7127. "x-go-name": "ID"
  7128. },
  7129. "issue_id": {
  7130. "type": "integer",
  7131. "format": "int64",
  7132. "x-go-name": "IssueID"
  7133. },
  7134. "time": {
  7135. "description": "Time in seconds",
  7136. "type": "integer",
  7137. "format": "int64",
  7138. "x-go-name": "Time"
  7139. },
  7140. "user_id": {
  7141. "type": "integer",
  7142. "format": "int64",
  7143. "x-go-name": "UserID"
  7144. }
  7145. },
  7146. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7147. },
  7148. "User": {
  7149. "description": "User represents a user",
  7150. "type": "object",
  7151. "properties": {
  7152. "avatar_url": {
  7153. "description": "URL to the user's avatar",
  7154. "type": "string",
  7155. "x-go-name": "AvatarURL"
  7156. },
  7157. "email": {
  7158. "type": "string",
  7159. "format": "email",
  7160. "x-go-name": "Email"
  7161. },
  7162. "full_name": {
  7163. "description": "the user's full name",
  7164. "type": "string",
  7165. "x-go-name": "FullName"
  7166. },
  7167. "id": {
  7168. "description": "the user's id",
  7169. "type": "integer",
  7170. "format": "int64",
  7171. "x-go-name": "ID"
  7172. },
  7173. "login": {
  7174. "description": "the user's username",
  7175. "type": "string",
  7176. "x-go-name": "UserName"
  7177. }
  7178. },
  7179. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7180. },
  7181. "WatchInfo": {
  7182. "description": "WatchInfo represents an API watch status of one repository",
  7183. "type": "object",
  7184. "properties": {
  7185. "created_at": {
  7186. "type": "string",
  7187. "format": "date-time",
  7188. "x-go-name": "CreatedAt"
  7189. },
  7190. "ignored": {
  7191. "type": "boolean",
  7192. "x-go-name": "Ignored"
  7193. },
  7194. "reason": {
  7195. "type": "object",
  7196. "x-go-name": "Reason"
  7197. },
  7198. "repository_url": {
  7199. "type": "string",
  7200. "x-go-name": "RepositoryURL"
  7201. },
  7202. "subscribed": {
  7203. "type": "boolean",
  7204. "x-go-name": "Subscribed"
  7205. },
  7206. "url": {
  7207. "type": "string",
  7208. "x-go-name": "URL"
  7209. }
  7210. },
  7211. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7212. }
  7213. },
  7214. "responses": {
  7215. "AccessToken": {
  7216. "description": "AccessToken represents a API access token.",
  7217. "headers": {
  7218. "name": {
  7219. "type": "string"
  7220. },
  7221. "sha1": {
  7222. "type": "string"
  7223. }
  7224. }
  7225. },
  7226. "AccessTokenList": {
  7227. "description": "AccessTokenList represents a list of API access token."
  7228. },
  7229. "Attachment": {
  7230. "schema": {
  7231. "$ref": "#/definitions/Attachment"
  7232. }
  7233. },
  7234. "AttachmentList": {
  7235. "schema": {
  7236. "type": "array",
  7237. "items": {
  7238. "$ref": "#/definitions/Attachment"
  7239. }
  7240. }
  7241. },
  7242. "Branch": {
  7243. "schema": {
  7244. "$ref": "#/definitions/Branch"
  7245. }
  7246. },
  7247. "BranchList": {
  7248. "schema": {
  7249. "type": "array",
  7250. "items": {
  7251. "$ref": "#/definitions/Branch"
  7252. }
  7253. }
  7254. },
  7255. "Comment": {
  7256. "schema": {
  7257. "$ref": "#/definitions/Comment"
  7258. }
  7259. },
  7260. "CommentList": {
  7261. "schema": {
  7262. "type": "array",
  7263. "items": {
  7264. "$ref": "#/definitions/Comment"
  7265. }
  7266. }
  7267. },
  7268. "DeployKey": {
  7269. "schema": {
  7270. "$ref": "#/definitions/DeployKey"
  7271. }
  7272. },
  7273. "DeployKeyList": {
  7274. "schema": {
  7275. "type": "array",
  7276. "items": {
  7277. "$ref": "#/definitions/DeployKey"
  7278. }
  7279. }
  7280. },
  7281. "EmailList": {
  7282. "schema": {
  7283. "type": "array",
  7284. "items": {
  7285. "$ref": "#/definitions/Email"
  7286. }
  7287. }
  7288. },
  7289. "GPGKey": {
  7290. "schema": {
  7291. "$ref": "#/definitions/GPGKey"
  7292. }
  7293. },
  7294. "GPGKeyList": {
  7295. "schema": {
  7296. "type": "array",
  7297. "items": {
  7298. "$ref": "#/definitions/GPGKey"
  7299. }
  7300. }
  7301. },
  7302. "Hook": {
  7303. "schema": {
  7304. "type": "array",
  7305. "items": {
  7306. "$ref": "#/definitions/Branch"
  7307. }
  7308. }
  7309. },
  7310. "HookList": {
  7311. "schema": {
  7312. "type": "array",
  7313. "items": {
  7314. "$ref": "#/definitions/Branch"
  7315. }
  7316. }
  7317. },
  7318. "Issue": {
  7319. "schema": {
  7320. "$ref": "#/definitions/Issue"
  7321. }
  7322. },
  7323. "IssueList": {
  7324. "schema": {
  7325. "type": "array",
  7326. "items": {
  7327. "$ref": "#/definitions/Issue"
  7328. }
  7329. }
  7330. },
  7331. "Label": {
  7332. "schema": {
  7333. "$ref": "#/definitions/Label"
  7334. }
  7335. },
  7336. "LabelList": {
  7337. "schema": {
  7338. "type": "array",
  7339. "items": {
  7340. "$ref": "#/definitions/Label"
  7341. }
  7342. }
  7343. },
  7344. "MarkdownRender": {
  7345. "description": "MarkdownRender is a rendered markdown document"
  7346. },
  7347. "Milestone": {
  7348. "schema": {
  7349. "$ref": "#/definitions/Milestone"
  7350. }
  7351. },
  7352. "MilestoneList": {
  7353. "schema": {
  7354. "type": "array",
  7355. "items": {
  7356. "$ref": "#/definitions/Milestone"
  7357. }
  7358. }
  7359. },
  7360. "Organization": {
  7361. "schema": {
  7362. "$ref": "#/definitions/Organization"
  7363. }
  7364. },
  7365. "OrganizationList": {
  7366. "schema": {
  7367. "type": "array",
  7368. "items": {
  7369. "$ref": "#/definitions/Organization"
  7370. }
  7371. }
  7372. },
  7373. "PublicKey": {
  7374. "schema": {
  7375. "$ref": "#/definitions/PublicKey"
  7376. }
  7377. },
  7378. "PublicKeyList": {
  7379. "schema": {
  7380. "type": "array",
  7381. "items": {
  7382. "$ref": "#/definitions/PublicKey"
  7383. }
  7384. }
  7385. },
  7386. "PullRequest": {
  7387. "schema": {
  7388. "$ref": "#/definitions/PullRequest"
  7389. }
  7390. },
  7391. "PullRequestList": {
  7392. "schema": {
  7393. "type": "array",
  7394. "items": {
  7395. "$ref": "#/definitions/PullRequest"
  7396. }
  7397. }
  7398. },
  7399. "Release": {
  7400. "schema": {
  7401. "$ref": "#/definitions/Release"
  7402. }
  7403. },
  7404. "ReleaseList": {
  7405. "schema": {
  7406. "type": "array",
  7407. "items": {
  7408. "$ref": "#/definitions/Release"
  7409. }
  7410. }
  7411. },
  7412. "Repository": {
  7413. "schema": {
  7414. "$ref": "#/definitions/Repository"
  7415. }
  7416. },
  7417. "RepositoryList": {
  7418. "schema": {
  7419. "type": "array",
  7420. "items": {
  7421. "$ref": "#/definitions/Repository"
  7422. }
  7423. }
  7424. },
  7425. "SearchResults": {
  7426. "schema": {
  7427. "$ref": "#/definitions/SearchResults"
  7428. },
  7429. "headers": {
  7430. "body": {}
  7431. }
  7432. },
  7433. "ServerVersion": {
  7434. "schema": {
  7435. "$ref": "#/definitions/ServerVersion"
  7436. }
  7437. },
  7438. "Status": {
  7439. "schema": {
  7440. "$ref": "#/definitions/Status"
  7441. }
  7442. },
  7443. "StatusList": {
  7444. "schema": {
  7445. "type": "array",
  7446. "items": {
  7447. "$ref": "#/definitions/Status"
  7448. }
  7449. }
  7450. },
  7451. "Team": {
  7452. "schema": {
  7453. "$ref": "#/definitions/Team"
  7454. }
  7455. },
  7456. "TeamList": {
  7457. "schema": {
  7458. "type": "array",
  7459. "items": {
  7460. "$ref": "#/definitions/Team"
  7461. }
  7462. }
  7463. },
  7464. "TrackedTime": {
  7465. "schema": {
  7466. "$ref": "#/definitions/TrackedTime"
  7467. }
  7468. },
  7469. "TrackedTimeList": {
  7470. "schema": {
  7471. "type": "array",
  7472. "items": {
  7473. "$ref": "#/definitions/TrackedTime"
  7474. }
  7475. }
  7476. },
  7477. "User": {
  7478. "schema": {
  7479. "$ref": "#/definitions/User"
  7480. }
  7481. },
  7482. "UserList": {
  7483. "schema": {
  7484. "type": "array",
  7485. "items": {
  7486. "$ref": "#/definitions/User"
  7487. }
  7488. }
  7489. },
  7490. "WatchInfo": {
  7491. "schema": {
  7492. "$ref": "#/definitions/WatchInfo"
  7493. }
  7494. },
  7495. "empty": {
  7496. "description": "APIEmpty is an empty response"
  7497. },
  7498. "error": {
  7499. "description": "APIError is error format response",
  7500. "headers": {
  7501. "message": {
  7502. "type": "string"
  7503. },
  7504. "url": {
  7505. "type": "string"
  7506. }
  7507. }
  7508. },
  7509. "forbidden": {
  7510. "description": "APIForbiddenError is a forbidden error response",
  7511. "headers": {
  7512. "message": {
  7513. "type": "string"
  7514. },
  7515. "url": {
  7516. "type": "string"
  7517. }
  7518. }
  7519. },
  7520. "notFound": {
  7521. "description": "APINotFound is a not found empty response"
  7522. },
  7523. "parameterBodies": {
  7524. "schema": {
  7525. "$ref": "#/definitions/EditAttachmentOptions"
  7526. },
  7527. "headers": {
  7528. "AddCollaboratorOption": {},
  7529. "AddTimeOption": {},
  7530. "CreateEmailOption": {},
  7531. "CreateForkOption": {},
  7532. "CreateHookOption": {},
  7533. "CreateIssueCommentOption": {},
  7534. "CreateIssueOption": {},
  7535. "CreateKeyOption": {},
  7536. "CreateLabelOption": {},
  7537. "CreateMilestoneOption": {},
  7538. "CreateOrgOption": {},
  7539. "CreatePullRequestOption": {},
  7540. "CreateReleaseOption": {},
  7541. "CreateRepoOption": {},
  7542. "CreateStatusOption": {},
  7543. "CreateTeamOption": {},
  7544. "CreateUserOption": {},
  7545. "DeleteEmailOption": {},
  7546. "EditAttachmentOptions": {},
  7547. "EditHookOption": {},
  7548. "EditIssueCommentOption": {},
  7549. "EditIssueOption": {},
  7550. "EditLabelOption": {},
  7551. "EditMilestoneOption": {},
  7552. "EditOrgOption": {},
  7553. "EditPullRequestOption": {},
  7554. "EditReleaseOption": {},
  7555. "EditTeamOption": {},
  7556. "EditUserOption": {},
  7557. "IssueLabelsOption": {},
  7558. "MarkdownOption": {},
  7559. "MigrateRepoForm": {}
  7560. }
  7561. },
  7562. "redirect": {
  7563. "description": "APIRedirect is a redirect response"
  7564. },
  7565. "validationError": {
  7566. "description": "APIValidationError is error format response related to input validation",
  7567. "headers": {
  7568. "message": {
  7569. "type": "string"
  7570. },
  7571. "url": {
  7572. "type": "string"
  7573. }
  7574. }
  7575. }
  7576. },
  7577. "securityDefinitions": {
  7578. "AccessToken": {
  7579. "type": "apiKey",
  7580. "name": "access_token",
  7581. "in": "query"
  7582. },
  7583. "AuthorizationHeaderToken": {
  7584. "type": "apiKey",
  7585. "name": "Authorization",
  7586. "in": "header"
  7587. },
  7588. "BasicAuth": {
  7589. "type": "basic"
  7590. },
  7591. "Token": {
  7592. "type": "apiKey",
  7593. "name": "token",
  7594. "in": "query"
  7595. }
  7596. },
  7597. "security": [
  7598. {
  7599. "BasicAuth": [
  7600. "[]"
  7601. ]
  7602. },
  7603. {
  7604. "Token": [
  7605. "[]"
  7606. ]
  7607. },
  7608. {
  7609. "AccessToken": [
  7610. "[]"
  7611. ]
  7612. },
  7613. {
  7614. "AuthorizationHeaderToken": [
  7615. "[]"
  7616. ]
  7617. }
  7618. ]
  7619. }