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 190 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
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
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
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
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
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
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
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768
  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}/hooks/{id}/tests": {
  1569. "post": {
  1570. "produces": [
  1571. "application/json"
  1572. ],
  1573. "tags": [
  1574. "repository"
  1575. ],
  1576. "summary": "Test a push webhook",
  1577. "operationId": "repoTestHook",
  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": "id of the hook to test",
  1596. "name": "id",
  1597. "in": "path",
  1598. "required": true
  1599. }
  1600. ],
  1601. "responses": {
  1602. "204": {
  1603. "$ref": "#/responses/empty"
  1604. }
  1605. }
  1606. }
  1607. },
  1608. "/repos/{owner}/{repo}/issues": {
  1609. "get": {
  1610. "produces": [
  1611. "application/json"
  1612. ],
  1613. "tags": [
  1614. "issue"
  1615. ],
  1616. "summary": "List a repository's issues",
  1617. "operationId": "issueListIssues",
  1618. "parameters": [
  1619. {
  1620. "type": "string",
  1621. "description": "owner of the repo",
  1622. "name": "owner",
  1623. "in": "path",
  1624. "required": true
  1625. },
  1626. {
  1627. "type": "string",
  1628. "description": "name of the repo",
  1629. "name": "repo",
  1630. "in": "path",
  1631. "required": true
  1632. },
  1633. {
  1634. "type": "string",
  1635. "description": "whether issue is open or closed",
  1636. "name": "state",
  1637. "in": "query"
  1638. },
  1639. {
  1640. "type": "integer",
  1641. "description": "page number of requested issues",
  1642. "name": "page",
  1643. "in": "query"
  1644. },
  1645. {
  1646. "type": "string",
  1647. "description": "search string",
  1648. "name": "q",
  1649. "in": "query"
  1650. }
  1651. ],
  1652. "responses": {
  1653. "200": {
  1654. "$ref": "#/responses/IssueList"
  1655. }
  1656. }
  1657. },
  1658. "post": {
  1659. "consumes": [
  1660. "application/json"
  1661. ],
  1662. "produces": [
  1663. "application/json"
  1664. ],
  1665. "tags": [
  1666. "issue"
  1667. ],
  1668. "summary": "Create an issue",
  1669. "operationId": "issueCreateIssue",
  1670. "parameters": [
  1671. {
  1672. "type": "string",
  1673. "description": "owner of the repo",
  1674. "name": "owner",
  1675. "in": "path",
  1676. "required": true
  1677. },
  1678. {
  1679. "type": "string",
  1680. "description": "name of the repo",
  1681. "name": "repo",
  1682. "in": "path",
  1683. "required": true
  1684. },
  1685. {
  1686. "name": "body",
  1687. "in": "body",
  1688. "schema": {
  1689. "$ref": "#/definitions/CreateIssueOption"
  1690. }
  1691. }
  1692. ],
  1693. "responses": {
  1694. "201": {
  1695. "$ref": "#/responses/Issue"
  1696. }
  1697. }
  1698. }
  1699. },
  1700. "/repos/{owner}/{repo}/issues/comments": {
  1701. "get": {
  1702. "produces": [
  1703. "application/json"
  1704. ],
  1705. "tags": [
  1706. "issue"
  1707. ],
  1708. "summary": "List all comments in a repository",
  1709. "operationId": "issueGetRepoComments",
  1710. "parameters": [
  1711. {
  1712. "type": "string",
  1713. "description": "owner of the repo",
  1714. "name": "owner",
  1715. "in": "path",
  1716. "required": true
  1717. },
  1718. {
  1719. "type": "string",
  1720. "description": "name of the repo",
  1721. "name": "repo",
  1722. "in": "path",
  1723. "required": true
  1724. },
  1725. {
  1726. "type": "string",
  1727. "description": "if provided, only comments updated since the provided time are returned.",
  1728. "name": "string",
  1729. "in": "query"
  1730. }
  1731. ],
  1732. "responses": {
  1733. "200": {
  1734. "$ref": "#/responses/CommentList"
  1735. }
  1736. }
  1737. }
  1738. },
  1739. "/repos/{owner}/{repo}/issues/comments/{id}": {
  1740. "delete": {
  1741. "tags": [
  1742. "issue"
  1743. ],
  1744. "summary": "Delete a comment",
  1745. "operationId": "issueDeleteComment",
  1746. "parameters": [
  1747. {
  1748. "type": "string",
  1749. "description": "owner of the repo",
  1750. "name": "owner",
  1751. "in": "path",
  1752. "required": true
  1753. },
  1754. {
  1755. "type": "string",
  1756. "description": "name of the repo",
  1757. "name": "repo",
  1758. "in": "path",
  1759. "required": true
  1760. },
  1761. {
  1762. "type": "integer",
  1763. "description": "id of comment to delete",
  1764. "name": "id",
  1765. "in": "path",
  1766. "required": true
  1767. }
  1768. ],
  1769. "responses": {
  1770. "204": {
  1771. "$ref": "#/responses/empty"
  1772. }
  1773. }
  1774. },
  1775. "patch": {
  1776. "consumes": [
  1777. "application/json"
  1778. ],
  1779. "produces": [
  1780. "application/json"
  1781. ],
  1782. "tags": [
  1783. "issue"
  1784. ],
  1785. "summary": "Edit a comment",
  1786. "operationId": "issueEditComment",
  1787. "parameters": [
  1788. {
  1789. "type": "string",
  1790. "description": "owner of the repo",
  1791. "name": "owner",
  1792. "in": "path",
  1793. "required": true
  1794. },
  1795. {
  1796. "type": "string",
  1797. "description": "name of the repo",
  1798. "name": "repo",
  1799. "in": "path",
  1800. "required": true
  1801. },
  1802. {
  1803. "type": "integer",
  1804. "description": "id of the comment to edit",
  1805. "name": "id",
  1806. "in": "path",
  1807. "required": true
  1808. },
  1809. {
  1810. "name": "body",
  1811. "in": "body",
  1812. "schema": {
  1813. "$ref": "#/definitions/EditIssueCommentOption"
  1814. }
  1815. }
  1816. ],
  1817. "responses": {
  1818. "200": {
  1819. "$ref": "#/responses/Comment"
  1820. }
  1821. }
  1822. }
  1823. },
  1824. "/repos/{owner}/{repo}/issues/{index}": {
  1825. "get": {
  1826. "produces": [
  1827. "application/json"
  1828. ],
  1829. "tags": [
  1830. "issue"
  1831. ],
  1832. "summary": "Get an issue",
  1833. "operationId": "issueGetIssue",
  1834. "parameters": [
  1835. {
  1836. "type": "string",
  1837. "description": "owner of the repo",
  1838. "name": "owner",
  1839. "in": "path",
  1840. "required": true
  1841. },
  1842. {
  1843. "type": "string",
  1844. "description": "name of the repo",
  1845. "name": "repo",
  1846. "in": "path",
  1847. "required": true
  1848. },
  1849. {
  1850. "type": "integer",
  1851. "description": "index of the issue to get",
  1852. "name": "index",
  1853. "in": "path",
  1854. "required": true
  1855. }
  1856. ],
  1857. "responses": {
  1858. "200": {
  1859. "$ref": "#/responses/Issue"
  1860. }
  1861. }
  1862. },
  1863. "patch": {
  1864. "consumes": [
  1865. "application/json"
  1866. ],
  1867. "produces": [
  1868. "application/json"
  1869. ],
  1870. "tags": [
  1871. "issue"
  1872. ],
  1873. "summary": "Edit an issue",
  1874. "operationId": "issueEditIssue",
  1875. "parameters": [
  1876. {
  1877. "type": "string",
  1878. "description": "owner of the repo",
  1879. "name": "owner",
  1880. "in": "path",
  1881. "required": true
  1882. },
  1883. {
  1884. "type": "string",
  1885. "description": "name of the repo",
  1886. "name": "repo",
  1887. "in": "path",
  1888. "required": true
  1889. },
  1890. {
  1891. "type": "integer",
  1892. "description": "index of the issue to edit",
  1893. "name": "index",
  1894. "in": "path",
  1895. "required": true
  1896. },
  1897. {
  1898. "name": "body",
  1899. "in": "body",
  1900. "schema": {
  1901. "$ref": "#/definitions/EditIssueOption"
  1902. }
  1903. }
  1904. ],
  1905. "responses": {
  1906. "201": {
  1907. "$ref": "#/responses/Issue"
  1908. }
  1909. }
  1910. }
  1911. },
  1912. "/repos/{owner}/{repo}/issues/{index}/comments": {
  1913. "get": {
  1914. "produces": [
  1915. "application/json"
  1916. ],
  1917. "tags": [
  1918. "issue"
  1919. ],
  1920. "summary": "List all comments on an issue",
  1921. "operationId": "issueGetComments",
  1922. "parameters": [
  1923. {
  1924. "type": "string",
  1925. "description": "owner of the repo",
  1926. "name": "owner",
  1927. "in": "path",
  1928. "required": true
  1929. },
  1930. {
  1931. "type": "string",
  1932. "description": "name of the repo",
  1933. "name": "repo",
  1934. "in": "path",
  1935. "required": true
  1936. },
  1937. {
  1938. "type": "integer",
  1939. "description": "index of the issue",
  1940. "name": "id",
  1941. "in": "path",
  1942. "required": true
  1943. },
  1944. {
  1945. "type": "string",
  1946. "description": "if provided, only comments updated since the specified time are returned.",
  1947. "name": "string",
  1948. "in": "query"
  1949. }
  1950. ],
  1951. "responses": {
  1952. "200": {
  1953. "$ref": "#/responses/CommentList"
  1954. }
  1955. }
  1956. },
  1957. "post": {
  1958. "consumes": [
  1959. "application/json"
  1960. ],
  1961. "produces": [
  1962. "application/json"
  1963. ],
  1964. "tags": [
  1965. "issue"
  1966. ],
  1967. "summary": "Add a comment to an issue",
  1968. "operationId": "issueCreateComment",
  1969. "parameters": [
  1970. {
  1971. "type": "string",
  1972. "description": "owner of the repo",
  1973. "name": "owner",
  1974. "in": "path",
  1975. "required": true
  1976. },
  1977. {
  1978. "type": "string",
  1979. "description": "name of the repo",
  1980. "name": "repo",
  1981. "in": "path",
  1982. "required": true
  1983. },
  1984. {
  1985. "type": "integer",
  1986. "description": "index of the issue",
  1987. "name": "id",
  1988. "in": "path",
  1989. "required": true
  1990. },
  1991. {
  1992. "name": "body",
  1993. "in": "body",
  1994. "schema": {
  1995. "$ref": "#/definitions/CreateIssueOption"
  1996. }
  1997. }
  1998. ],
  1999. "responses": {
  2000. "201": {
  2001. "$ref": "#/responses/Comment"
  2002. }
  2003. }
  2004. }
  2005. },
  2006. "/repos/{owner}/{repo}/issues/{index}/comments/{id}": {
  2007. "delete": {
  2008. "tags": [
  2009. "issue"
  2010. ],
  2011. "summary": "Delete a comment",
  2012. "operationId": "issueDeleteCommentDeprecated",
  2013. "deprecated": true,
  2014. "parameters": [
  2015. {
  2016. "type": "string",
  2017. "description": "owner of the repo",
  2018. "name": "owner",
  2019. "in": "path",
  2020. "required": true
  2021. },
  2022. {
  2023. "type": "string",
  2024. "description": "name of the repo",
  2025. "name": "repo",
  2026. "in": "path",
  2027. "required": true
  2028. },
  2029. {
  2030. "type": "integer",
  2031. "description": "this parameter is ignored",
  2032. "name": "index",
  2033. "in": "path",
  2034. "required": true
  2035. },
  2036. {
  2037. "type": "integer",
  2038. "description": "id of comment to delete",
  2039. "name": "id",
  2040. "in": "path",
  2041. "required": true
  2042. }
  2043. ],
  2044. "responses": {
  2045. "204": {
  2046. "$ref": "#/responses/empty"
  2047. }
  2048. }
  2049. },
  2050. "patch": {
  2051. "consumes": [
  2052. "application/json"
  2053. ],
  2054. "produces": [
  2055. "application/json"
  2056. ],
  2057. "tags": [
  2058. "issue"
  2059. ],
  2060. "summary": "Edit a comment",
  2061. "operationId": "issueEditCommentDeprecated",
  2062. "deprecated": true,
  2063. "parameters": [
  2064. {
  2065. "type": "string",
  2066. "description": "owner of the repo",
  2067. "name": "owner",
  2068. "in": "path",
  2069. "required": true
  2070. },
  2071. {
  2072. "type": "string",
  2073. "description": "name of the repo",
  2074. "name": "repo",
  2075. "in": "path",
  2076. "required": true
  2077. },
  2078. {
  2079. "type": "integer",
  2080. "description": "this parameter is ignored",
  2081. "name": "index",
  2082. "in": "path",
  2083. "required": true
  2084. },
  2085. {
  2086. "type": "integer",
  2087. "description": "id of the comment to edit",
  2088. "name": "id",
  2089. "in": "path",
  2090. "required": true
  2091. },
  2092. {
  2093. "name": "body",
  2094. "in": "body",
  2095. "schema": {
  2096. "$ref": "#/definitions/EditIssueCommentOption"
  2097. }
  2098. }
  2099. ],
  2100. "responses": {
  2101. "200": {
  2102. "$ref": "#/responses/Comment"
  2103. }
  2104. }
  2105. }
  2106. },
  2107. "/repos/{owner}/{repo}/issues/{index}/labels": {
  2108. "get": {
  2109. "produces": [
  2110. "application/json"
  2111. ],
  2112. "tags": [
  2113. "issue"
  2114. ],
  2115. "summary": "Get an issue's labels",
  2116. "operationId": "issueGetLabels",
  2117. "parameters": [
  2118. {
  2119. "type": "string",
  2120. "description": "owner of the repo",
  2121. "name": "owner",
  2122. "in": "path",
  2123. "required": true
  2124. },
  2125. {
  2126. "type": "string",
  2127. "description": "name of the repo",
  2128. "name": "repo",
  2129. "in": "path",
  2130. "required": true
  2131. },
  2132. {
  2133. "type": "integer",
  2134. "description": "index of the issue",
  2135. "name": "index",
  2136. "in": "path",
  2137. "required": true
  2138. }
  2139. ],
  2140. "responses": {
  2141. "200": {
  2142. "$ref": "#/responses/LabelList"
  2143. },
  2144. "404": {
  2145. "$ref": "#/responses/notFound"
  2146. }
  2147. }
  2148. },
  2149. "put": {
  2150. "consumes": [
  2151. "application/json"
  2152. ],
  2153. "produces": [
  2154. "application/json"
  2155. ],
  2156. "tags": [
  2157. "issue"
  2158. ],
  2159. "summary": "Replace an issue's labels",
  2160. "operationId": "issueReplaceLabels",
  2161. "parameters": [
  2162. {
  2163. "type": "string",
  2164. "description": "owner of the repo",
  2165. "name": "owner",
  2166. "in": "path",
  2167. "required": true
  2168. },
  2169. {
  2170. "type": "string",
  2171. "description": "name of the repo",
  2172. "name": "repo",
  2173. "in": "path",
  2174. "required": true
  2175. },
  2176. {
  2177. "type": "integer",
  2178. "description": "index of the issue",
  2179. "name": "index",
  2180. "in": "path",
  2181. "required": true
  2182. },
  2183. {
  2184. "name": "body",
  2185. "in": "body",
  2186. "schema": {
  2187. "$ref": "#/definitions/IssueLabelsOption"
  2188. }
  2189. }
  2190. ],
  2191. "responses": {
  2192. "200": {
  2193. "$ref": "#/responses/LabelList"
  2194. }
  2195. }
  2196. },
  2197. "post": {
  2198. "consumes": [
  2199. "application/json"
  2200. ],
  2201. "produces": [
  2202. "application/json"
  2203. ],
  2204. "tags": [
  2205. "issue"
  2206. ],
  2207. "summary": "Add a label to an issue",
  2208. "operationId": "issueAddLabel",
  2209. "parameters": [
  2210. {
  2211. "type": "string",
  2212. "description": "owner of the repo",
  2213. "name": "owner",
  2214. "in": "path",
  2215. "required": true
  2216. },
  2217. {
  2218. "type": "string",
  2219. "description": "name of the repo",
  2220. "name": "repo",
  2221. "in": "path",
  2222. "required": true
  2223. },
  2224. {
  2225. "type": "integer",
  2226. "description": "index of the issue",
  2227. "name": "index",
  2228. "in": "path",
  2229. "required": true
  2230. },
  2231. {
  2232. "name": "body",
  2233. "in": "body",
  2234. "schema": {
  2235. "$ref": "#/definitions/IssueLabelsOption"
  2236. }
  2237. }
  2238. ],
  2239. "responses": {
  2240. "200": {
  2241. "$ref": "#/responses/LabelList"
  2242. }
  2243. }
  2244. },
  2245. "delete": {
  2246. "produces": [
  2247. "application/json"
  2248. ],
  2249. "tags": [
  2250. "issue"
  2251. ],
  2252. "summary": "Remove all labels from an issue",
  2253. "operationId": "issueClearLabels",
  2254. "parameters": [
  2255. {
  2256. "type": "string",
  2257. "description": "owner of the repo",
  2258. "name": "owner",
  2259. "in": "path",
  2260. "required": true
  2261. },
  2262. {
  2263. "type": "string",
  2264. "description": "name of the repo",
  2265. "name": "repo",
  2266. "in": "path",
  2267. "required": true
  2268. },
  2269. {
  2270. "type": "integer",
  2271. "description": "index of the issue",
  2272. "name": "index",
  2273. "in": "path",
  2274. "required": true
  2275. }
  2276. ],
  2277. "responses": {
  2278. "204": {
  2279. "$ref": "#/responses/empty"
  2280. }
  2281. }
  2282. }
  2283. },
  2284. "/repos/{owner}/{repo}/issues/{index}/labels/{id}": {
  2285. "delete": {
  2286. "produces": [
  2287. "application/json"
  2288. ],
  2289. "tags": [
  2290. "issue"
  2291. ],
  2292. "summary": "Remove a label from an issue",
  2293. "operationId": "issueRemoveLabel",
  2294. "parameters": [
  2295. {
  2296. "type": "string",
  2297. "description": "owner of the repo",
  2298. "name": "owner",
  2299. "in": "path",
  2300. "required": true
  2301. },
  2302. {
  2303. "type": "string",
  2304. "description": "name of the repo",
  2305. "name": "repo",
  2306. "in": "path",
  2307. "required": true
  2308. },
  2309. {
  2310. "type": "integer",
  2311. "description": "index of the issue",
  2312. "name": "index",
  2313. "in": "path",
  2314. "required": true
  2315. },
  2316. {
  2317. "type": "integer",
  2318. "description": "id of the label to remove",
  2319. "name": "id",
  2320. "in": "path",
  2321. "required": true
  2322. }
  2323. ],
  2324. "responses": {
  2325. "204": {
  2326. "$ref": "#/responses/empty"
  2327. }
  2328. }
  2329. }
  2330. },
  2331. "/repos/{owner}/{repo}/issues/{index}/times": {
  2332. "get": {
  2333. "produces": [
  2334. "application/json"
  2335. ],
  2336. "tags": [
  2337. "issue"
  2338. ],
  2339. "summary": "List an issue's tracked times",
  2340. "operationId": "issueTrackedTimes",
  2341. "parameters": [
  2342. {
  2343. "type": "string",
  2344. "description": "owner of the repo",
  2345. "name": "owner",
  2346. "in": "path",
  2347. "required": true
  2348. },
  2349. {
  2350. "type": "string",
  2351. "description": "name of the repo",
  2352. "name": "repo",
  2353. "in": "path",
  2354. "required": true
  2355. },
  2356. {
  2357. "type": "integer",
  2358. "description": "index of the issue",
  2359. "name": "repo",
  2360. "in": "path",
  2361. "required": true
  2362. }
  2363. ],
  2364. "responses": {
  2365. "200": {
  2366. "$ref": "#/responses/TrackedTimeList"
  2367. }
  2368. }
  2369. },
  2370. "post": {
  2371. "consumes": [
  2372. "application/json"
  2373. ],
  2374. "produces": [
  2375. "application/json"
  2376. ],
  2377. "tags": [
  2378. "issue"
  2379. ],
  2380. "summary": "Add a tracked time to a issue",
  2381. "operationId": "issueAddTime",
  2382. "parameters": [
  2383. {
  2384. "type": "string",
  2385. "description": "owner of the repo",
  2386. "name": "owner",
  2387. "in": "path",
  2388. "required": true
  2389. },
  2390. {
  2391. "type": "string",
  2392. "description": "name of the repo",
  2393. "name": "repo",
  2394. "in": "path",
  2395. "required": true
  2396. },
  2397. {
  2398. "type": "integer",
  2399. "description": "index of the issue to add tracked time to",
  2400. "name": "id",
  2401. "in": "path",
  2402. "required": true
  2403. },
  2404. {
  2405. "name": "body",
  2406. "in": "body",
  2407. "schema": {
  2408. "$ref": "#/definitions/AddTimeOption"
  2409. }
  2410. }
  2411. ],
  2412. "responses": {
  2413. "200": {
  2414. "$ref": "#/responses/TrackedTime"
  2415. },
  2416. "400": {
  2417. "$ref": "#/responses/error"
  2418. },
  2419. "403": {
  2420. "$ref": "#/responses/error"
  2421. }
  2422. }
  2423. }
  2424. },
  2425. "/repos/{owner}/{repo}/keys": {
  2426. "get": {
  2427. "produces": [
  2428. "application/json"
  2429. ],
  2430. "tags": [
  2431. "repository"
  2432. ],
  2433. "summary": "List a repository's keys",
  2434. "operationId": "repoListKeys",
  2435. "parameters": [
  2436. {
  2437. "type": "string",
  2438. "description": "owner of the repo",
  2439. "name": "owner",
  2440. "in": "path",
  2441. "required": true
  2442. },
  2443. {
  2444. "type": "string",
  2445. "description": "name of the repo",
  2446. "name": "repo",
  2447. "in": "path",
  2448. "required": true
  2449. }
  2450. ],
  2451. "responses": {
  2452. "200": {
  2453. "$ref": "#/responses/DeployKeyList"
  2454. }
  2455. }
  2456. },
  2457. "post": {
  2458. "consumes": [
  2459. "application/json"
  2460. ],
  2461. "produces": [
  2462. "application/json"
  2463. ],
  2464. "tags": [
  2465. "repository"
  2466. ],
  2467. "summary": "Add a key to a repository",
  2468. "operationId": "repoCreateKey",
  2469. "parameters": [
  2470. {
  2471. "type": "string",
  2472. "description": "owner of the repo",
  2473. "name": "owner",
  2474. "in": "path",
  2475. "required": true
  2476. },
  2477. {
  2478. "type": "string",
  2479. "description": "name of the repo",
  2480. "name": "repo",
  2481. "in": "path",
  2482. "required": true
  2483. },
  2484. {
  2485. "name": "body",
  2486. "in": "body",
  2487. "schema": {
  2488. "$ref": "#/definitions/CreateKeyOption"
  2489. }
  2490. }
  2491. ],
  2492. "responses": {
  2493. "201": {
  2494. "$ref": "#/responses/DeployKey"
  2495. }
  2496. }
  2497. }
  2498. },
  2499. "/repos/{owner}/{repo}/keys/{id}": {
  2500. "get": {
  2501. "produces": [
  2502. "application/json"
  2503. ],
  2504. "tags": [
  2505. "repository"
  2506. ],
  2507. "summary": "Get a repository's key by id",
  2508. "operationId": "repoGetKey",
  2509. "parameters": [
  2510. {
  2511. "type": "string",
  2512. "description": "owner of the repo",
  2513. "name": "owner",
  2514. "in": "path",
  2515. "required": true
  2516. },
  2517. {
  2518. "type": "string",
  2519. "description": "name of the repo",
  2520. "name": "repo",
  2521. "in": "path",
  2522. "required": true
  2523. },
  2524. {
  2525. "type": "integer",
  2526. "description": "id of the key to get",
  2527. "name": "id",
  2528. "in": "path",
  2529. "required": true
  2530. }
  2531. ],
  2532. "responses": {
  2533. "200": {
  2534. "$ref": "#/responses/DeployKey"
  2535. }
  2536. }
  2537. },
  2538. "delete": {
  2539. "tags": [
  2540. "repository"
  2541. ],
  2542. "summary": "Delete a key from a repository",
  2543. "operationId": "repoDeleteKey",
  2544. "parameters": [
  2545. {
  2546. "type": "string",
  2547. "description": "owner of the repo",
  2548. "name": "owner",
  2549. "in": "path",
  2550. "required": true
  2551. },
  2552. {
  2553. "type": "string",
  2554. "description": "name of the repo",
  2555. "name": "repo",
  2556. "in": "path",
  2557. "required": true
  2558. },
  2559. {
  2560. "type": "integer",
  2561. "description": "id of the key to delete",
  2562. "name": "id",
  2563. "in": "path",
  2564. "required": true
  2565. }
  2566. ],
  2567. "responses": {
  2568. "204": {
  2569. "$ref": "#/responses/empty"
  2570. }
  2571. }
  2572. }
  2573. },
  2574. "/repos/{owner}/{repo}/labels": {
  2575. "get": {
  2576. "produces": [
  2577. "application/json"
  2578. ],
  2579. "tags": [
  2580. "issue"
  2581. ],
  2582. "summary": "Get all of a repository's labels",
  2583. "operationId": "issueListLabels",
  2584. "parameters": [
  2585. {
  2586. "type": "string",
  2587. "description": "owner of the repo",
  2588. "name": "owner",
  2589. "in": "path",
  2590. "required": true
  2591. },
  2592. {
  2593. "type": "string",
  2594. "description": "name of the repo",
  2595. "name": "repo",
  2596. "in": "path",
  2597. "required": true
  2598. }
  2599. ],
  2600. "responses": {
  2601. "200": {
  2602. "$ref": "#/responses/LabelList"
  2603. }
  2604. }
  2605. },
  2606. "post": {
  2607. "consumes": [
  2608. "application/json"
  2609. ],
  2610. "produces": [
  2611. "application/json"
  2612. ],
  2613. "tags": [
  2614. "issue"
  2615. ],
  2616. "summary": "Create a label",
  2617. "operationId": "issueCreateLabel",
  2618. "parameters": [
  2619. {
  2620. "type": "string",
  2621. "description": "owner of the repo",
  2622. "name": "owner",
  2623. "in": "path",
  2624. "required": true
  2625. },
  2626. {
  2627. "type": "string",
  2628. "description": "name of the repo",
  2629. "name": "repo",
  2630. "in": "path",
  2631. "required": true
  2632. },
  2633. {
  2634. "name": "body",
  2635. "in": "body",
  2636. "schema": {
  2637. "$ref": "#/definitions/CreateLabelOption"
  2638. }
  2639. }
  2640. ],
  2641. "responses": {
  2642. "201": {
  2643. "$ref": "#/responses/Label"
  2644. }
  2645. }
  2646. }
  2647. },
  2648. "/repos/{owner}/{repo}/labels/{id}": {
  2649. "get": {
  2650. "produces": [
  2651. "application/json"
  2652. ],
  2653. "tags": [
  2654. "issue"
  2655. ],
  2656. "summary": "Get a single label",
  2657. "operationId": "issueGetLabel",
  2658. "parameters": [
  2659. {
  2660. "type": "string",
  2661. "description": "owner of the repo",
  2662. "name": "owner",
  2663. "in": "path",
  2664. "required": true
  2665. },
  2666. {
  2667. "type": "string",
  2668. "description": "name of the repo",
  2669. "name": "repo",
  2670. "in": "path",
  2671. "required": true
  2672. },
  2673. {
  2674. "type": "integer",
  2675. "description": "id of the label to get",
  2676. "name": "id",
  2677. "in": "path",
  2678. "required": true
  2679. }
  2680. ],
  2681. "responses": {
  2682. "200": {
  2683. "$ref": "#/responses/Label"
  2684. }
  2685. }
  2686. },
  2687. "delete": {
  2688. "tags": [
  2689. "issue"
  2690. ],
  2691. "summary": "Delete a label",
  2692. "operationId": "issueDeleteLabel",
  2693. "parameters": [
  2694. {
  2695. "type": "string",
  2696. "description": "owner of the repo",
  2697. "name": "owner",
  2698. "in": "path",
  2699. "required": true
  2700. },
  2701. {
  2702. "type": "string",
  2703. "description": "name of the repo",
  2704. "name": "repo",
  2705. "in": "path",
  2706. "required": true
  2707. },
  2708. {
  2709. "type": "integer",
  2710. "description": "id of the label to delete",
  2711. "name": "id",
  2712. "in": "path",
  2713. "required": true
  2714. }
  2715. ],
  2716. "responses": {
  2717. "204": {
  2718. "$ref": "#/responses/empty"
  2719. }
  2720. }
  2721. },
  2722. "patch": {
  2723. "consumes": [
  2724. "application/json"
  2725. ],
  2726. "produces": [
  2727. "application/json"
  2728. ],
  2729. "tags": [
  2730. "issue"
  2731. ],
  2732. "summary": "Update a label",
  2733. "operationId": "issueEditLabel",
  2734. "parameters": [
  2735. {
  2736. "type": "string",
  2737. "description": "owner of the repo",
  2738. "name": "owner",
  2739. "in": "path",
  2740. "required": true
  2741. },
  2742. {
  2743. "type": "string",
  2744. "description": "name of the repo",
  2745. "name": "repo",
  2746. "in": "path",
  2747. "required": true
  2748. },
  2749. {
  2750. "type": "integer",
  2751. "description": "id of the label to edit",
  2752. "name": "id",
  2753. "in": "path",
  2754. "required": true
  2755. },
  2756. {
  2757. "name": "body",
  2758. "in": "body",
  2759. "schema": {
  2760. "$ref": "#/definitions/EditLabelOption"
  2761. }
  2762. }
  2763. ],
  2764. "responses": {
  2765. "200": {
  2766. "$ref": "#/responses/Label"
  2767. }
  2768. }
  2769. }
  2770. },
  2771. "/repos/{owner}/{repo}/milestones": {
  2772. "get": {
  2773. "produces": [
  2774. "application/json"
  2775. ],
  2776. "tags": [
  2777. "issue"
  2778. ],
  2779. "summary": "Get all of a repository's milestones",
  2780. "operationId": "issueGetMilestones",
  2781. "parameters": [
  2782. {
  2783. "type": "string",
  2784. "description": "owner of the repo",
  2785. "name": "owner",
  2786. "in": "path",
  2787. "required": true
  2788. },
  2789. {
  2790. "type": "string",
  2791. "description": "name of the repo",
  2792. "name": "repo",
  2793. "in": "path",
  2794. "required": true
  2795. },
  2796. {
  2797. "type": "integer",
  2798. "description": "id of the milestone to get",
  2799. "name": "id",
  2800. "in": "path",
  2801. "required": true
  2802. }
  2803. ],
  2804. "responses": {
  2805. "200": {
  2806. "$ref": "#/responses/MilestoneList"
  2807. }
  2808. }
  2809. },
  2810. "post": {
  2811. "consumes": [
  2812. "application/json"
  2813. ],
  2814. "produces": [
  2815. "application/json"
  2816. ],
  2817. "tags": [
  2818. "issue"
  2819. ],
  2820. "summary": "Create a milestone",
  2821. "operationId": "issueCreateMilestone",
  2822. "parameters": [
  2823. {
  2824. "type": "string",
  2825. "description": "owner of the repo",
  2826. "name": "owner",
  2827. "in": "path",
  2828. "required": true
  2829. },
  2830. {
  2831. "type": "string",
  2832. "description": "name of the repo",
  2833. "name": "repo",
  2834. "in": "path",
  2835. "required": true
  2836. },
  2837. {
  2838. "name": "body",
  2839. "in": "body",
  2840. "schema": {
  2841. "$ref": "#/definitions/CreateMilestoneOption"
  2842. }
  2843. }
  2844. ],
  2845. "responses": {
  2846. "201": {
  2847. "$ref": "#/responses/Milestone"
  2848. }
  2849. }
  2850. }
  2851. },
  2852. "/repos/{owner}/{repo}/milestones/{id}": {
  2853. "get": {
  2854. "produces": [
  2855. "application/json"
  2856. ],
  2857. "tags": [
  2858. "issue"
  2859. ],
  2860. "summary": "Get a milestone",
  2861. "operationId": "issueGetMilestone",
  2862. "responses": {
  2863. "200": {
  2864. "$ref": "#/responses/Milestone"
  2865. }
  2866. }
  2867. },
  2868. "delete": {
  2869. "tags": [
  2870. "issue"
  2871. ],
  2872. "summary": "Delete a milestone",
  2873. "operationId": "issueDeleteMilestone",
  2874. "parameters": [
  2875. {
  2876. "type": "string",
  2877. "description": "owner of the repo",
  2878. "name": "owner",
  2879. "in": "path",
  2880. "required": true
  2881. },
  2882. {
  2883. "type": "string",
  2884. "description": "name of the repo",
  2885. "name": "repo",
  2886. "in": "path",
  2887. "required": true
  2888. },
  2889. {
  2890. "type": "integer",
  2891. "description": "id of the milestone to delete",
  2892. "name": "body",
  2893. "in": "path",
  2894. "required": true
  2895. }
  2896. ],
  2897. "responses": {
  2898. "204": {
  2899. "$ref": "#/responses/empty"
  2900. }
  2901. }
  2902. },
  2903. "patch": {
  2904. "consumes": [
  2905. "application/json"
  2906. ],
  2907. "produces": [
  2908. "application/json"
  2909. ],
  2910. "tags": [
  2911. "issue"
  2912. ],
  2913. "summary": "Update a milestone",
  2914. "operationId": "issueEditMilestone",
  2915. "parameters": [
  2916. {
  2917. "type": "string",
  2918. "description": "owner of the repo",
  2919. "name": "owner",
  2920. "in": "path",
  2921. "required": true
  2922. },
  2923. {
  2924. "type": "string",
  2925. "description": "name of the repo",
  2926. "name": "repo",
  2927. "in": "path",
  2928. "required": true
  2929. },
  2930. {
  2931. "name": "body",
  2932. "in": "body",
  2933. "schema": {
  2934. "$ref": "#/definitions/EditMilestoneOption"
  2935. }
  2936. }
  2937. ],
  2938. "responses": {
  2939. "200": {
  2940. "$ref": "#/responses/Milestone"
  2941. }
  2942. }
  2943. }
  2944. },
  2945. "/repos/{owner}/{repo}/mirror-sync": {
  2946. "post": {
  2947. "produces": [
  2948. "application/json"
  2949. ],
  2950. "tags": [
  2951. "repository"
  2952. ],
  2953. "summary": "Sync a mirrored repository",
  2954. "operationId": "repoMirrorSync",
  2955. "parameters": [
  2956. {
  2957. "type": "string",
  2958. "description": "owner of the repo to sync",
  2959. "name": "owner",
  2960. "in": "path",
  2961. "required": true
  2962. },
  2963. {
  2964. "type": "string",
  2965. "description": "name of the repo to sync",
  2966. "name": "repo",
  2967. "in": "path",
  2968. "required": true
  2969. }
  2970. ],
  2971. "responses": {
  2972. "200": {
  2973. "$ref": "#/responses/empty"
  2974. }
  2975. }
  2976. }
  2977. },
  2978. "/repos/{owner}/{repo}/pulls": {
  2979. "get": {
  2980. "produces": [
  2981. "application/json"
  2982. ],
  2983. "tags": [
  2984. "repository"
  2985. ],
  2986. "summary": "List a repo's pull requests",
  2987. "operationId": "repoListPullRequests",
  2988. "parameters": [
  2989. {
  2990. "type": "string",
  2991. "description": "owner of the repo",
  2992. "name": "owner",
  2993. "in": "path",
  2994. "required": true
  2995. },
  2996. {
  2997. "type": "string",
  2998. "description": "name of the repo",
  2999. "name": "repo",
  3000. "in": "path",
  3001. "required": true
  3002. }
  3003. ],
  3004. "responses": {
  3005. "200": {
  3006. "$ref": "#/responses/PullRequestList"
  3007. }
  3008. }
  3009. },
  3010. "post": {
  3011. "consumes": [
  3012. "application/json"
  3013. ],
  3014. "produces": [
  3015. "application/json"
  3016. ],
  3017. "tags": [
  3018. "repository"
  3019. ],
  3020. "summary": "Create a pull request",
  3021. "operationId": "repoCreatePullRequest",
  3022. "parameters": [
  3023. {
  3024. "type": "string",
  3025. "description": "owner of the repo",
  3026. "name": "owner",
  3027. "in": "path",
  3028. "required": true
  3029. },
  3030. {
  3031. "type": "string",
  3032. "description": "name of the repo",
  3033. "name": "repo",
  3034. "in": "path",
  3035. "required": true
  3036. },
  3037. {
  3038. "name": "body",
  3039. "in": "body",
  3040. "schema": {
  3041. "$ref": "#/definitions/CreatePullRequestOption"
  3042. }
  3043. }
  3044. ],
  3045. "responses": {
  3046. "201": {
  3047. "$ref": "#/responses/PullRequest"
  3048. }
  3049. }
  3050. }
  3051. },
  3052. "/repos/{owner}/{repo}/pulls/{index}": {
  3053. "get": {
  3054. "produces": [
  3055. "application/json"
  3056. ],
  3057. "tags": [
  3058. "repository"
  3059. ],
  3060. "summary": "Get a pull request",
  3061. "operationId": "repoGetPullRequest",
  3062. "parameters": [
  3063. {
  3064. "type": "string",
  3065. "description": "owner of the repo",
  3066. "name": "owner",
  3067. "in": "path",
  3068. "required": true
  3069. },
  3070. {
  3071. "type": "string",
  3072. "description": "name of the repo",
  3073. "name": "repo",
  3074. "in": "path",
  3075. "required": true
  3076. },
  3077. {
  3078. "type": "integer",
  3079. "description": "index of the pull request to get",
  3080. "name": "index",
  3081. "in": "path",
  3082. "required": true
  3083. }
  3084. ],
  3085. "responses": {
  3086. "200": {
  3087. "$ref": "#/responses/PullRequest"
  3088. }
  3089. }
  3090. },
  3091. "patch": {
  3092. "consumes": [
  3093. "application/json"
  3094. ],
  3095. "produces": [
  3096. "application/json"
  3097. ],
  3098. "tags": [
  3099. "repository"
  3100. ],
  3101. "summary": "Update a pull request",
  3102. "operationId": "repoEditPullRequest",
  3103. "parameters": [
  3104. {
  3105. "type": "string",
  3106. "description": "owner of the repo",
  3107. "name": "owner",
  3108. "in": "path",
  3109. "required": true
  3110. },
  3111. {
  3112. "type": "string",
  3113. "description": "name of the repo",
  3114. "name": "repo",
  3115. "in": "path",
  3116. "required": true
  3117. },
  3118. {
  3119. "type": "integer",
  3120. "description": "index of the pull request to edit",
  3121. "name": "index",
  3122. "in": "path",
  3123. "required": true
  3124. },
  3125. {
  3126. "name": "body",
  3127. "in": "body",
  3128. "schema": {
  3129. "$ref": "#/definitions/EditPullRequestOption"
  3130. }
  3131. }
  3132. ],
  3133. "responses": {
  3134. "201": {
  3135. "$ref": "#/responses/PullRequest"
  3136. }
  3137. }
  3138. }
  3139. },
  3140. "/repos/{owner}/{repo}/pulls/{index}/merge": {
  3141. "get": {
  3142. "produces": [
  3143. "application/json"
  3144. ],
  3145. "tags": [
  3146. "repository"
  3147. ],
  3148. "summary": "Check if a pull request has been merged",
  3149. "operationId": "repoPullRequestIsMerged",
  3150. "parameters": [
  3151. {
  3152. "type": "string",
  3153. "description": "owner of the repo",
  3154. "name": "owner",
  3155. "in": "path",
  3156. "required": true
  3157. },
  3158. {
  3159. "type": "string",
  3160. "description": "name of the repo",
  3161. "name": "repo",
  3162. "in": "path",
  3163. "required": true
  3164. },
  3165. {
  3166. "type": "integer",
  3167. "description": "index of the pull request",
  3168. "name": "index",
  3169. "in": "path",
  3170. "required": true
  3171. }
  3172. ],
  3173. "responses": {
  3174. "204": {
  3175. "description": "pull request has been merged",
  3176. "schema": {
  3177. "$ref": "#/responses/empty"
  3178. }
  3179. },
  3180. "404": {
  3181. "description": "pull request has not been merged",
  3182. "schema": {
  3183. "$ref": "#/responses/empty"
  3184. }
  3185. }
  3186. }
  3187. },
  3188. "post": {
  3189. "produces": [
  3190. "application/json"
  3191. ],
  3192. "tags": [
  3193. "repository"
  3194. ],
  3195. "summary": "Merge a pull request",
  3196. "operationId": "repoMergePullRequest",
  3197. "parameters": [
  3198. {
  3199. "type": "string",
  3200. "description": "owner of the repo",
  3201. "name": "owner",
  3202. "in": "path",
  3203. "required": true
  3204. },
  3205. {
  3206. "type": "string",
  3207. "description": "name of the repo",
  3208. "name": "repo",
  3209. "in": "path",
  3210. "required": true
  3211. },
  3212. {
  3213. "type": "integer",
  3214. "description": "index of the pull request to merge",
  3215. "name": "index",
  3216. "in": "path",
  3217. "required": true
  3218. }
  3219. ],
  3220. "responses": {
  3221. "200": {
  3222. "$ref": "#/responses/empty"
  3223. },
  3224. "405": {
  3225. "$ref": "#/responses/empty"
  3226. }
  3227. }
  3228. }
  3229. },
  3230. "/repos/{owner}/{repo}/raw/{filepath}": {
  3231. "get": {
  3232. "produces": [
  3233. "application/json"
  3234. ],
  3235. "tags": [
  3236. "repository"
  3237. ],
  3238. "summary": "Get a file from a repository",
  3239. "operationId": "repoGetRawFile",
  3240. "parameters": [
  3241. {
  3242. "type": "string",
  3243. "description": "owner of the repo",
  3244. "name": "owner",
  3245. "in": "path",
  3246. "required": true
  3247. },
  3248. {
  3249. "type": "string",
  3250. "description": "name of the repo",
  3251. "name": "repo",
  3252. "in": "path",
  3253. "required": true
  3254. },
  3255. {
  3256. "type": "string",
  3257. "description": "filepath of the file to get",
  3258. "name": "filepath",
  3259. "in": "path",
  3260. "required": true
  3261. }
  3262. ],
  3263. "responses": {
  3264. "200": {}
  3265. }
  3266. }
  3267. },
  3268. "/repos/{owner}/{repo}/releases": {
  3269. "get": {
  3270. "produces": [
  3271. "application/json"
  3272. ],
  3273. "tags": [
  3274. "repository"
  3275. ],
  3276. "summary": "List a repo's releases",
  3277. "operationId": "repoListReleases",
  3278. "parameters": [
  3279. {
  3280. "type": "string",
  3281. "description": "owner of the repo",
  3282. "name": "owner",
  3283. "in": "path",
  3284. "required": true
  3285. },
  3286. {
  3287. "type": "string",
  3288. "description": "name of the repo",
  3289. "name": "repo",
  3290. "in": "path",
  3291. "required": true
  3292. }
  3293. ],
  3294. "responses": {
  3295. "200": {
  3296. "$ref": "#/responses/ReleaseList"
  3297. }
  3298. }
  3299. },
  3300. "post": {
  3301. "consumes": [
  3302. "application/json"
  3303. ],
  3304. "produces": [
  3305. "application/json"
  3306. ],
  3307. "tags": [
  3308. "repository"
  3309. ],
  3310. "summary": "Create a release",
  3311. "operationId": "repoCreateRelease",
  3312. "parameters": [
  3313. {
  3314. "type": "string",
  3315. "description": "owner of the repo",
  3316. "name": "owner",
  3317. "in": "path",
  3318. "required": true
  3319. },
  3320. {
  3321. "type": "string",
  3322. "description": "name of the repo",
  3323. "name": "repo",
  3324. "in": "path",
  3325. "required": true
  3326. },
  3327. {
  3328. "name": "body",
  3329. "in": "body",
  3330. "schema": {
  3331. "$ref": "#/definitions/CreateReleaseOption"
  3332. }
  3333. }
  3334. ],
  3335. "responses": {
  3336. "201": {
  3337. "$ref": "#/responses/Release"
  3338. }
  3339. }
  3340. }
  3341. },
  3342. "/repos/{owner}/{repo}/releases/{id}": {
  3343. "get": {
  3344. "produces": [
  3345. "application/json"
  3346. ],
  3347. "tags": [
  3348. "repository"
  3349. ],
  3350. "summary": "Get a release",
  3351. "operationId": "repoGetRelease",
  3352. "parameters": [
  3353. {
  3354. "type": "string",
  3355. "description": "owner of the repo",
  3356. "name": "owner",
  3357. "in": "path",
  3358. "required": true
  3359. },
  3360. {
  3361. "type": "string",
  3362. "description": "name of the repo",
  3363. "name": "repo",
  3364. "in": "path",
  3365. "required": true
  3366. },
  3367. {
  3368. "type": "integer",
  3369. "description": "id of the release to get",
  3370. "name": "id",
  3371. "in": "path",
  3372. "required": true
  3373. }
  3374. ],
  3375. "responses": {
  3376. "200": {
  3377. "$ref": "#/responses/Release"
  3378. }
  3379. }
  3380. },
  3381. "delete": {
  3382. "tags": [
  3383. "repository"
  3384. ],
  3385. "summary": "Delete a release",
  3386. "operationId": "repoDeleteRelease",
  3387. "parameters": [
  3388. {
  3389. "type": "string",
  3390. "description": "owner of the repo",
  3391. "name": "owner",
  3392. "in": "path",
  3393. "required": true
  3394. },
  3395. {
  3396. "type": "string",
  3397. "description": "name of the repo",
  3398. "name": "repo",
  3399. "in": "path",
  3400. "required": true
  3401. },
  3402. {
  3403. "type": "integer",
  3404. "description": "id of the release to delete",
  3405. "name": "id",
  3406. "in": "path",
  3407. "required": true
  3408. }
  3409. ],
  3410. "responses": {
  3411. "204": {
  3412. "$ref": "#/responses/empty"
  3413. }
  3414. }
  3415. },
  3416. "patch": {
  3417. "consumes": [
  3418. "application/json"
  3419. ],
  3420. "produces": [
  3421. "application/json"
  3422. ],
  3423. "tags": [
  3424. "repository"
  3425. ],
  3426. "summary": "Update a release",
  3427. "operationId": "repoEditRelease",
  3428. "parameters": [
  3429. {
  3430. "type": "string",
  3431. "description": "owner of the repo",
  3432. "name": "owner",
  3433. "in": "path",
  3434. "required": true
  3435. },
  3436. {
  3437. "type": "string",
  3438. "description": "name of the repo",
  3439. "name": "repo",
  3440. "in": "path",
  3441. "required": true
  3442. },
  3443. {
  3444. "type": "integer",
  3445. "description": "id of the release to edit",
  3446. "name": "id",
  3447. "in": "path",
  3448. "required": true
  3449. },
  3450. {
  3451. "name": "body",
  3452. "in": "body",
  3453. "schema": {
  3454. "$ref": "#/definitions/EditReleaseOption"
  3455. }
  3456. }
  3457. ],
  3458. "responses": {
  3459. "200": {
  3460. "$ref": "#/responses/Release"
  3461. }
  3462. }
  3463. }
  3464. },
  3465. "/repos/{owner}/{repo}/releases/{id}/assets": {
  3466. "get": {
  3467. "produces": [
  3468. "application/json"
  3469. ],
  3470. "tags": [
  3471. "repository"
  3472. ],
  3473. "summary": "List release's attachments",
  3474. "operationId": "repoListReleaseAttachments",
  3475. "parameters": [
  3476. {
  3477. "type": "string",
  3478. "description": "owner of the repo",
  3479. "name": "owner",
  3480. "in": "path",
  3481. "required": true
  3482. },
  3483. {
  3484. "type": "string",
  3485. "description": "name of the repo",
  3486. "name": "repo",
  3487. "in": "path",
  3488. "required": true
  3489. },
  3490. {
  3491. "type": "integer",
  3492. "description": "id of the release",
  3493. "name": "id",
  3494. "in": "path",
  3495. "required": true
  3496. }
  3497. ],
  3498. "responses": {
  3499. "200": {
  3500. "$ref": "#/responses/AttachmentList"
  3501. }
  3502. }
  3503. },
  3504. "post": {
  3505. "consumes": [
  3506. "multipart/form-data"
  3507. ],
  3508. "produces": [
  3509. "application/json"
  3510. ],
  3511. "tags": [
  3512. "repository"
  3513. ],
  3514. "summary": "Create a release attachment",
  3515. "operationId": "repoCreateReleaseAttachment",
  3516. "parameters": [
  3517. {
  3518. "type": "string",
  3519. "description": "owner of the repo",
  3520. "name": "owner",
  3521. "in": "path",
  3522. "required": true
  3523. },
  3524. {
  3525. "type": "string",
  3526. "description": "name of the repo",
  3527. "name": "repo",
  3528. "in": "path",
  3529. "required": true
  3530. },
  3531. {
  3532. "type": "integer",
  3533. "description": "id of the release",
  3534. "name": "id",
  3535. "in": "path",
  3536. "required": true
  3537. },
  3538. {
  3539. "type": "string",
  3540. "description": "name of the attachment",
  3541. "name": "name",
  3542. "in": "query"
  3543. },
  3544. {
  3545. "type": "file",
  3546. "description": "attachment to upload",
  3547. "name": "attachment",
  3548. "in": "formData",
  3549. "required": true
  3550. }
  3551. ],
  3552. "responses": {
  3553. "201": {
  3554. "$ref": "#/responses/Attachment"
  3555. }
  3556. }
  3557. }
  3558. },
  3559. "/repos/{owner}/{repo}/releases/{id}/assets/{attachment_id}": {
  3560. "get": {
  3561. "produces": [
  3562. "application/json"
  3563. ],
  3564. "tags": [
  3565. "repository"
  3566. ],
  3567. "summary": "Get a release attachment",
  3568. "operationId": "repoGetReleaseAttachment",
  3569. "parameters": [
  3570. {
  3571. "type": "string",
  3572. "description": "owner of the repo",
  3573. "name": "owner",
  3574. "in": "path",
  3575. "required": true
  3576. },
  3577. {
  3578. "type": "string",
  3579. "description": "name of the repo",
  3580. "name": "repo",
  3581. "in": "path",
  3582. "required": true
  3583. },
  3584. {
  3585. "type": "integer",
  3586. "description": "id of the release",
  3587. "name": "id",
  3588. "in": "path",
  3589. "required": true
  3590. },
  3591. {
  3592. "type": "integer",
  3593. "description": "id of the attachment to get",
  3594. "name": "attachment_id",
  3595. "in": "path",
  3596. "required": true
  3597. }
  3598. ],
  3599. "responses": {
  3600. "200": {
  3601. "$ref": "#/responses/Attachment"
  3602. }
  3603. }
  3604. },
  3605. "delete": {
  3606. "produces": [
  3607. "application/json"
  3608. ],
  3609. "tags": [
  3610. "repository"
  3611. ],
  3612. "summary": "Delete a release attachment",
  3613. "operationId": "repoDeleteReleaseAttachment",
  3614. "parameters": [
  3615. {
  3616. "type": "string",
  3617. "description": "owner of the repo",
  3618. "name": "owner",
  3619. "in": "path",
  3620. "required": true
  3621. },
  3622. {
  3623. "type": "string",
  3624. "description": "name of the repo",
  3625. "name": "repo",
  3626. "in": "path",
  3627. "required": true
  3628. },
  3629. {
  3630. "type": "integer",
  3631. "description": "id of the release",
  3632. "name": "id",
  3633. "in": "path",
  3634. "required": true
  3635. },
  3636. {
  3637. "type": "integer",
  3638. "description": "id of the attachment to delete",
  3639. "name": "attachment_id",
  3640. "in": "path",
  3641. "required": true
  3642. }
  3643. ],
  3644. "responses": {
  3645. "204": {
  3646. "$ref": "#/responses/empty"
  3647. }
  3648. }
  3649. },
  3650. "patch": {
  3651. "consumes": [
  3652. "application/json"
  3653. ],
  3654. "produces": [
  3655. "application/json"
  3656. ],
  3657. "tags": [
  3658. "repository"
  3659. ],
  3660. "summary": "Edit a release attachment",
  3661. "operationId": "repoEditReleaseAttachment",
  3662. "parameters": [
  3663. {
  3664. "type": "string",
  3665. "description": "owner of the repo",
  3666. "name": "owner",
  3667. "in": "path",
  3668. "required": true
  3669. },
  3670. {
  3671. "type": "string",
  3672. "description": "name of the repo",
  3673. "name": "repo",
  3674. "in": "path",
  3675. "required": true
  3676. },
  3677. {
  3678. "type": "integer",
  3679. "description": "id of the release",
  3680. "name": "id",
  3681. "in": "path",
  3682. "required": true
  3683. },
  3684. {
  3685. "type": "integer",
  3686. "description": "id of the attachment to edit",
  3687. "name": "attachment_id",
  3688. "in": "path",
  3689. "required": true
  3690. },
  3691. {
  3692. "name": "body",
  3693. "in": "body",
  3694. "schema": {
  3695. "$ref": "#/definitions/EditAttachmentOptions"
  3696. }
  3697. }
  3698. ],
  3699. "responses": {
  3700. "201": {
  3701. "$ref": "#/responses/Attachment"
  3702. }
  3703. }
  3704. }
  3705. },
  3706. "/repos/{owner}/{repo}/stargazers": {
  3707. "get": {
  3708. "produces": [
  3709. "application/json"
  3710. ],
  3711. "tags": [
  3712. "repository"
  3713. ],
  3714. "summary": "List a repo's stargazers",
  3715. "operationId": "repoListStargazers",
  3716. "parameters": [
  3717. {
  3718. "type": "string",
  3719. "description": "owner of the repo",
  3720. "name": "owner",
  3721. "in": "path",
  3722. "required": true
  3723. },
  3724. {
  3725. "type": "string",
  3726. "description": "name of the repo",
  3727. "name": "repo",
  3728. "in": "path",
  3729. "required": true
  3730. }
  3731. ],
  3732. "responses": {
  3733. "200": {
  3734. "$ref": "#/responses/UserList"
  3735. }
  3736. }
  3737. }
  3738. },
  3739. "/repos/{owner}/{repo}/statuses/{sha}": {
  3740. "get": {
  3741. "produces": [
  3742. "application/json"
  3743. ],
  3744. "tags": [
  3745. "repository"
  3746. ],
  3747. "summary": "Get a commit's statuses",
  3748. "operationId": "repoListStatuses",
  3749. "parameters": [
  3750. {
  3751. "type": "string",
  3752. "description": "owner of the repo",
  3753. "name": "owner",
  3754. "in": "path",
  3755. "required": true
  3756. },
  3757. {
  3758. "type": "string",
  3759. "description": "name of the repo",
  3760. "name": "repo",
  3761. "in": "path",
  3762. "required": true
  3763. },
  3764. {
  3765. "type": "string",
  3766. "description": "sha of the commit",
  3767. "name": "sha",
  3768. "in": "path",
  3769. "required": true
  3770. }
  3771. ],
  3772. "responses": {
  3773. "200": {
  3774. "$ref": "#/responses/StatusList"
  3775. }
  3776. }
  3777. },
  3778. "post": {
  3779. "produces": [
  3780. "application/json"
  3781. ],
  3782. "tags": [
  3783. "repository"
  3784. ],
  3785. "summary": "Create a commit status",
  3786. "operationId": "repoCreateStatus",
  3787. "parameters": [
  3788. {
  3789. "type": "string",
  3790. "description": "owner of the repo",
  3791. "name": "owner",
  3792. "in": "path",
  3793. "required": true
  3794. },
  3795. {
  3796. "type": "string",
  3797. "description": "name of the repo",
  3798. "name": "repo",
  3799. "in": "path",
  3800. "required": true
  3801. },
  3802. {
  3803. "type": "string",
  3804. "description": "sha of the commit",
  3805. "name": "sha",
  3806. "in": "path",
  3807. "required": true
  3808. },
  3809. {
  3810. "name": "body",
  3811. "in": "body",
  3812. "schema": {
  3813. "$ref": "#/definitions/CreateStatusOption"
  3814. }
  3815. }
  3816. ],
  3817. "responses": {
  3818. "200": {
  3819. "$ref": "#/responses/StatusList"
  3820. }
  3821. }
  3822. }
  3823. },
  3824. "/repos/{owner}/{repo}/subscribers": {
  3825. "get": {
  3826. "produces": [
  3827. "application/json"
  3828. ],
  3829. "tags": [
  3830. "repository"
  3831. ],
  3832. "summary": "List a repo's watchers",
  3833. "operationId": "repoListSubscribers",
  3834. "parameters": [
  3835. {
  3836. "type": "string",
  3837. "description": "owner of the repo",
  3838. "name": "owner",
  3839. "in": "path",
  3840. "required": true
  3841. },
  3842. {
  3843. "type": "string",
  3844. "description": "name of the repo",
  3845. "name": "repo",
  3846. "in": "path",
  3847. "required": true
  3848. }
  3849. ],
  3850. "responses": {
  3851. "200": {
  3852. "$ref": "#/responses/UserList"
  3853. }
  3854. }
  3855. }
  3856. },
  3857. "/repos/{owner}/{repo}/subscription": {
  3858. "get": {
  3859. "tags": [
  3860. "repository"
  3861. ],
  3862. "summary": "Check if the current user is watching a repo",
  3863. "operationId": "userCurrentCheckSubscription",
  3864. "parameters": [
  3865. {
  3866. "type": "string",
  3867. "description": "owner of the repo",
  3868. "name": "owner",
  3869. "in": "path",
  3870. "required": true
  3871. },
  3872. {
  3873. "type": "string",
  3874. "description": "name of the repo",
  3875. "name": "repo",
  3876. "in": "path",
  3877. "required": true
  3878. }
  3879. ],
  3880. "responses": {
  3881. "200": {
  3882. "$ref": "#/responses/WatchInfo"
  3883. }
  3884. }
  3885. },
  3886. "put": {
  3887. "tags": [
  3888. "repository"
  3889. ],
  3890. "summary": "Watch a repo",
  3891. "operationId": "userCurrentPutSubscription",
  3892. "parameters": [
  3893. {
  3894. "type": "string",
  3895. "description": "owner of the repo",
  3896. "name": "owner",
  3897. "in": "path",
  3898. "required": true
  3899. },
  3900. {
  3901. "type": "string",
  3902. "description": "name of the repo",
  3903. "name": "repo",
  3904. "in": "path",
  3905. "required": true
  3906. }
  3907. ],
  3908. "responses": {
  3909. "200": {
  3910. "$ref": "#/responses/WatchInfo"
  3911. }
  3912. }
  3913. },
  3914. "delete": {
  3915. "tags": [
  3916. "repository"
  3917. ],
  3918. "summary": "Unwatch a repo",
  3919. "operationId": "userCurrentDeleteSubscription",
  3920. "parameters": [
  3921. {
  3922. "type": "string",
  3923. "description": "owner of the repo",
  3924. "name": "owner",
  3925. "in": "path",
  3926. "required": true
  3927. },
  3928. {
  3929. "type": "string",
  3930. "description": "name of the repo",
  3931. "name": "repo",
  3932. "in": "path",
  3933. "required": true
  3934. }
  3935. ],
  3936. "responses": {
  3937. "204": {
  3938. "$ref": "#/responses/empty"
  3939. }
  3940. }
  3941. }
  3942. },
  3943. "/repos/{owner}/{repo}/times": {
  3944. "get": {
  3945. "produces": [
  3946. "application/json"
  3947. ],
  3948. "tags": [
  3949. "repository"
  3950. ],
  3951. "summary": "List a repo's tracked times",
  3952. "operationId": "repoTrackedTimes",
  3953. "parameters": [
  3954. {
  3955. "type": "string",
  3956. "description": "owner of the repo",
  3957. "name": "owner",
  3958. "in": "path",
  3959. "required": true
  3960. },
  3961. {
  3962. "type": "string",
  3963. "description": "name of the repo",
  3964. "name": "repo",
  3965. "in": "path",
  3966. "required": true
  3967. }
  3968. ],
  3969. "responses": {
  3970. "200": {
  3971. "$ref": "#/responses/TrackedTimeList"
  3972. }
  3973. }
  3974. }
  3975. },
  3976. "/repos/{owner}/{repo}/times/{tracker}": {
  3977. "get": {
  3978. "produces": [
  3979. "application/json"
  3980. ],
  3981. "tags": [
  3982. "user"
  3983. ],
  3984. "summary": "List a user's tracked times in a repo",
  3985. "operationId": "userTrackedTimes",
  3986. "parameters": [
  3987. {
  3988. "type": "string",
  3989. "description": "owner of the repo",
  3990. "name": "owner",
  3991. "in": "path",
  3992. "required": true
  3993. },
  3994. {
  3995. "type": "string",
  3996. "description": "name of the repo",
  3997. "name": "repo",
  3998. "in": "path",
  3999. "required": true
  4000. },
  4001. {
  4002. "type": "string",
  4003. "description": "username of user",
  4004. "name": "user",
  4005. "in": "path",
  4006. "required": true
  4007. }
  4008. ],
  4009. "responses": {
  4010. "200": {
  4011. "$ref": "#/responses/TrackedTimeList"
  4012. }
  4013. }
  4014. }
  4015. },
  4016. "/repos/{user}/{repo}/hooks/{id}": {
  4017. "delete": {
  4018. "produces": [
  4019. "application/json"
  4020. ],
  4021. "tags": [
  4022. "repository"
  4023. ],
  4024. "summary": "Delete a hook in a repository",
  4025. "operationId": "repoDeleteHook",
  4026. "parameters": [
  4027. {
  4028. "type": "string",
  4029. "description": "owner of the repo",
  4030. "name": "owner",
  4031. "in": "path",
  4032. "required": true
  4033. },
  4034. {
  4035. "type": "string",
  4036. "description": "name of the repo",
  4037. "name": "repo",
  4038. "in": "path",
  4039. "required": true
  4040. },
  4041. {
  4042. "type": "integer",
  4043. "description": "id of the hook to delete",
  4044. "name": "id",
  4045. "in": "path",
  4046. "required": true
  4047. }
  4048. ],
  4049. "responses": {
  4050. "204": {
  4051. "$ref": "#/responses/empty"
  4052. },
  4053. "404": {
  4054. "$ref": "#/responses/notFound"
  4055. }
  4056. }
  4057. }
  4058. },
  4059. "/repositories/{id}": {
  4060. "get": {
  4061. "produces": [
  4062. "application/json"
  4063. ],
  4064. "tags": [
  4065. "repository"
  4066. ],
  4067. "summary": "Get a repository by id",
  4068. "operationId": "repoGetByID",
  4069. "parameters": [
  4070. {
  4071. "type": "integer",
  4072. "description": "id of the repo to get",
  4073. "name": "id",
  4074. "in": "path",
  4075. "required": true
  4076. }
  4077. ],
  4078. "responses": {
  4079. "200": {
  4080. "$ref": "#/responses/Repository"
  4081. }
  4082. }
  4083. }
  4084. },
  4085. "/teams/{id}": {
  4086. "get": {
  4087. "produces": [
  4088. "application/json"
  4089. ],
  4090. "tags": [
  4091. "organization"
  4092. ],
  4093. "summary": "Get a team",
  4094. "operationId": "orgGetTeam",
  4095. "parameters": [
  4096. {
  4097. "type": "integer",
  4098. "description": "id of the team to get",
  4099. "name": "id",
  4100. "in": "path",
  4101. "required": true
  4102. }
  4103. ],
  4104. "responses": {
  4105. "200": {
  4106. "$ref": "#/responses/Team"
  4107. }
  4108. }
  4109. },
  4110. "delete": {
  4111. "tags": [
  4112. "organization"
  4113. ],
  4114. "summary": "Delete a team",
  4115. "operationId": "orgDeleteTeam",
  4116. "parameters": [
  4117. {
  4118. "type": "integer",
  4119. "description": "id of the team to delete",
  4120. "name": "id",
  4121. "in": "path",
  4122. "required": true
  4123. }
  4124. ],
  4125. "responses": {
  4126. "204": {
  4127. "description": "team deleted",
  4128. "schema": {
  4129. "$ref": "#/responses/empty"
  4130. }
  4131. }
  4132. }
  4133. },
  4134. "patch": {
  4135. "consumes": [
  4136. "application/json"
  4137. ],
  4138. "produces": [
  4139. "application/json"
  4140. ],
  4141. "tags": [
  4142. "organization"
  4143. ],
  4144. "summary": "Edit a team",
  4145. "operationId": "orgEditTeam",
  4146. "parameters": [
  4147. {
  4148. "type": "integer",
  4149. "description": "id of the team to edit",
  4150. "name": "id",
  4151. "in": "path",
  4152. "required": true
  4153. },
  4154. {
  4155. "name": "body",
  4156. "in": "body",
  4157. "schema": {
  4158. "$ref": "#/definitions/EditTeamOption"
  4159. }
  4160. }
  4161. ],
  4162. "responses": {
  4163. "200": {
  4164. "$ref": "#/responses/Team"
  4165. }
  4166. }
  4167. }
  4168. },
  4169. "/teams/{id}/members": {
  4170. "get": {
  4171. "produces": [
  4172. "application/json"
  4173. ],
  4174. "tags": [
  4175. "organization"
  4176. ],
  4177. "summary": "List a team's members",
  4178. "operationId": "orgListTeamMembers",
  4179. "parameters": [
  4180. {
  4181. "type": "integer",
  4182. "description": "id of the team",
  4183. "name": "id",
  4184. "in": "path",
  4185. "required": true
  4186. }
  4187. ],
  4188. "responses": {
  4189. "200": {
  4190. "$ref": "#/responses/UserList"
  4191. }
  4192. }
  4193. }
  4194. },
  4195. "/teams/{id}/members/{username}": {
  4196. "put": {
  4197. "produces": [
  4198. "application/json"
  4199. ],
  4200. "tags": [
  4201. "organization"
  4202. ],
  4203. "summary": "Add a team member",
  4204. "operationId": "orgAddTeamMember",
  4205. "parameters": [
  4206. {
  4207. "type": "integer",
  4208. "description": "id of the team",
  4209. "name": "id",
  4210. "in": "path",
  4211. "required": true
  4212. },
  4213. {
  4214. "type": "string",
  4215. "description": "username of the user to add",
  4216. "name": "username",
  4217. "in": "path",
  4218. "required": true
  4219. }
  4220. ],
  4221. "responses": {
  4222. "204": {
  4223. "$ref": "#/responses/empty"
  4224. }
  4225. }
  4226. },
  4227. "delete": {
  4228. "produces": [
  4229. "application/json"
  4230. ],
  4231. "tags": [
  4232. "organization"
  4233. ],
  4234. "summary": "Remove a team member",
  4235. "operationId": "orgAddTeamMember",
  4236. "parameters": [
  4237. {
  4238. "type": "integer",
  4239. "description": "id of the team",
  4240. "name": "id",
  4241. "in": "path",
  4242. "required": true
  4243. },
  4244. {
  4245. "type": "string",
  4246. "description": "username of the user to remove",
  4247. "name": "username",
  4248. "in": "path",
  4249. "required": true
  4250. }
  4251. ],
  4252. "responses": {
  4253. "204": {
  4254. "$ref": "#/responses/empty"
  4255. }
  4256. }
  4257. }
  4258. },
  4259. "/teams/{id}/repos": {
  4260. "get": {
  4261. "produces": [
  4262. "application/json"
  4263. ],
  4264. "tags": [
  4265. "organization"
  4266. ],
  4267. "summary": "List a team's repos",
  4268. "operationId": "orgListTeamRepos",
  4269. "parameters": [
  4270. {
  4271. "type": "integer",
  4272. "description": "id of the team",
  4273. "name": "id",
  4274. "in": "path",
  4275. "required": true
  4276. }
  4277. ],
  4278. "responses": {
  4279. "200": {
  4280. "$ref": "#/responses/RepositoryList"
  4281. }
  4282. }
  4283. }
  4284. },
  4285. "/teams/{id}/repos/{org}/{repo}": {
  4286. "put": {
  4287. "produces": [
  4288. "application/json"
  4289. ],
  4290. "tags": [
  4291. "organization"
  4292. ],
  4293. "summary": "Add a repository to a team",
  4294. "operationId": "orgAddTeamMember",
  4295. "parameters": [
  4296. {
  4297. "type": "integer",
  4298. "description": "id of the team",
  4299. "name": "id",
  4300. "in": "path",
  4301. "required": true
  4302. },
  4303. {
  4304. "type": "string",
  4305. "description": "organization that owns the repo to add",
  4306. "name": "org",
  4307. "in": "path",
  4308. "required": true
  4309. },
  4310. {
  4311. "type": "string",
  4312. "description": "name of the repo to add",
  4313. "name": "repo",
  4314. "in": "path",
  4315. "required": true
  4316. }
  4317. ],
  4318. "responses": {
  4319. "204": {
  4320. "$ref": "#/responses/empty"
  4321. }
  4322. }
  4323. },
  4324. "delete": {
  4325. "description": "This does not delete the repository, it only removes the repository from the team.",
  4326. "produces": [
  4327. "application/json"
  4328. ],
  4329. "tags": [
  4330. "organization"
  4331. ],
  4332. "summary": "Remove a repository from a team",
  4333. "operationId": "orgAddTeamMember",
  4334. "parameters": [
  4335. {
  4336. "type": "integer",
  4337. "description": "id of the team",
  4338. "name": "id",
  4339. "in": "path",
  4340. "required": true
  4341. },
  4342. {
  4343. "type": "string",
  4344. "description": "organization that owns the repo to remove",
  4345. "name": "org",
  4346. "in": "path",
  4347. "required": true
  4348. },
  4349. {
  4350. "type": "string",
  4351. "description": "name of the repo to remove",
  4352. "name": "repo",
  4353. "in": "path",
  4354. "required": true
  4355. }
  4356. ],
  4357. "responses": {
  4358. "204": {
  4359. "$ref": "#/responses/empty"
  4360. }
  4361. }
  4362. }
  4363. },
  4364. "/topics/search": {
  4365. "get": {
  4366. "produces": [
  4367. "application/json"
  4368. ],
  4369. "tags": [
  4370. "repository"
  4371. ],
  4372. "summary": "search topics via keyword",
  4373. "operationId": "topicSearch",
  4374. "parameters": [
  4375. {
  4376. "type": "integer",
  4377. "description": "id of the repo to get",
  4378. "name": "keyword",
  4379. "in": "path",
  4380. "required": true
  4381. }
  4382. ],
  4383. "responses": {
  4384. "200": {
  4385. "$ref": "#/responses/Repository"
  4386. }
  4387. }
  4388. }
  4389. },
  4390. "/user": {
  4391. "get": {
  4392. "produces": [
  4393. "application/json"
  4394. ],
  4395. "tags": [
  4396. "user"
  4397. ],
  4398. "summary": "Get the authenticated user",
  4399. "operationId": "userGetCurrent",
  4400. "responses": {
  4401. "200": {
  4402. "$ref": "#/responses/User"
  4403. }
  4404. }
  4405. }
  4406. },
  4407. "/user/emails": {
  4408. "get": {
  4409. "produces": [
  4410. "application/json"
  4411. ],
  4412. "tags": [
  4413. "user"
  4414. ],
  4415. "summary": "List the authenticated user's email addresses",
  4416. "operationId": "userListEmails",
  4417. "responses": {
  4418. "200": {
  4419. "$ref": "#/responses/EmailList"
  4420. }
  4421. }
  4422. },
  4423. "post": {
  4424. "produces": [
  4425. "application/json"
  4426. ],
  4427. "tags": [
  4428. "user"
  4429. ],
  4430. "summary": "Add email addresses",
  4431. "operationId": "userAddEmail",
  4432. "parameters": [
  4433. {
  4434. "name": "body",
  4435. "in": "body",
  4436. "schema": {
  4437. "$ref": "#/definitions/CreateEmailOption"
  4438. }
  4439. }
  4440. ],
  4441. "responses": {
  4442. "201": {
  4443. "$ref": "#/responses/EmailList"
  4444. }
  4445. }
  4446. },
  4447. "delete": {
  4448. "produces": [
  4449. "application/json"
  4450. ],
  4451. "tags": [
  4452. "user"
  4453. ],
  4454. "summary": "Delete email addresses",
  4455. "operationId": "userDeleteEmail",
  4456. "parameters": [
  4457. {
  4458. "name": "body",
  4459. "in": "body",
  4460. "schema": {
  4461. "$ref": "#/definitions/DeleteEmailOption"
  4462. }
  4463. }
  4464. ],
  4465. "responses": {
  4466. "204": {
  4467. "$ref": "#/responses/empty"
  4468. }
  4469. }
  4470. }
  4471. },
  4472. "/user/followers": {
  4473. "get": {
  4474. "produces": [
  4475. "application/json"
  4476. ],
  4477. "tags": [
  4478. "user"
  4479. ],
  4480. "summary": "List the authenticated user's followers",
  4481. "operationId": "userCurrentListFollowers",
  4482. "responses": {
  4483. "200": {
  4484. "$ref": "#/responses/UserList"
  4485. }
  4486. }
  4487. }
  4488. },
  4489. "/user/following": {
  4490. "get": {
  4491. "produces": [
  4492. "application/json"
  4493. ],
  4494. "tags": [
  4495. "user"
  4496. ],
  4497. "summary": "List the users that the authenticated user is following",
  4498. "operationId": "userCurrentListFollowing",
  4499. "responses": {
  4500. "200": {
  4501. "$ref": "#/responses/UserList"
  4502. }
  4503. }
  4504. }
  4505. },
  4506. "/user/following/{followee}": {
  4507. "get": {
  4508. "tags": [
  4509. "user"
  4510. ],
  4511. "summary": "Check whether a user is followed by the authenticated user",
  4512. "operationId": "userCurrentCheckFollowing",
  4513. "parameters": [
  4514. {
  4515. "type": "string",
  4516. "description": "username of followed user",
  4517. "name": "followee",
  4518. "in": "path",
  4519. "required": true
  4520. }
  4521. ],
  4522. "responses": {
  4523. "204": {
  4524. "$ref": "#/responses/empty"
  4525. },
  4526. "404": {
  4527. "$ref": "#/responses/notFound"
  4528. }
  4529. }
  4530. }
  4531. },
  4532. "/user/following/{username}": {
  4533. "put": {
  4534. "tags": [
  4535. "user"
  4536. ],
  4537. "summary": "Follow a user",
  4538. "operationId": "userCurrentPutFollow",
  4539. "parameters": [
  4540. {
  4541. "type": "string",
  4542. "description": "username of user to follow",
  4543. "name": "username",
  4544. "in": "path",
  4545. "required": true
  4546. }
  4547. ],
  4548. "responses": {
  4549. "204": {
  4550. "$ref": "#/responses/empty"
  4551. }
  4552. }
  4553. },
  4554. "delete": {
  4555. "tags": [
  4556. "user"
  4557. ],
  4558. "summary": "Unfollow a user",
  4559. "operationId": "userCurrentDeleteFollow",
  4560. "parameters": [
  4561. {
  4562. "type": "string",
  4563. "description": "username of user to unfollow",
  4564. "name": "username",
  4565. "in": "path",
  4566. "required": true
  4567. }
  4568. ],
  4569. "responses": {
  4570. "204": {
  4571. "$ref": "#/responses/empty"
  4572. }
  4573. }
  4574. }
  4575. },
  4576. "/user/gpg_keys": {
  4577. "get": {
  4578. "produces": [
  4579. "application/json"
  4580. ],
  4581. "tags": [
  4582. "user"
  4583. ],
  4584. "summary": "List the authenticated user's GPG keys",
  4585. "operationId": "userCurrentListGPGKeys",
  4586. "responses": {
  4587. "200": {
  4588. "$ref": "#/responses/GPGKeyList"
  4589. }
  4590. }
  4591. },
  4592. "post": {
  4593. "consumes": [
  4594. "application/json"
  4595. ],
  4596. "produces": [
  4597. "application/json"
  4598. ],
  4599. "tags": [
  4600. "user"
  4601. ],
  4602. "summary": "Create a GPG key",
  4603. "operationId": "userCurrentPostGPGKey",
  4604. "parameters": [
  4605. {
  4606. "name": "Form",
  4607. "in": "body",
  4608. "schema": {
  4609. "$ref": "#/definitions/CreateGPGKeyOption"
  4610. }
  4611. }
  4612. ],
  4613. "responses": {
  4614. "201": {
  4615. "$ref": "#/responses/GPGKey"
  4616. },
  4617. "422": {
  4618. "$ref": "#/responses/validationError"
  4619. }
  4620. }
  4621. }
  4622. },
  4623. "/user/gpg_keys/{id}": {
  4624. "get": {
  4625. "produces": [
  4626. "application/json"
  4627. ],
  4628. "tags": [
  4629. "user"
  4630. ],
  4631. "summary": "Get a GPG key",
  4632. "operationId": "userCurrentGetGPGKey",
  4633. "parameters": [
  4634. {
  4635. "type": "integer",
  4636. "description": "id of key to get",
  4637. "name": "id",
  4638. "in": "path",
  4639. "required": true
  4640. }
  4641. ],
  4642. "responses": {
  4643. "200": {
  4644. "$ref": "#/responses/GPGKey"
  4645. },
  4646. "404": {
  4647. "$ref": "#/responses/notFound"
  4648. }
  4649. }
  4650. },
  4651. "delete": {
  4652. "produces": [
  4653. "application/json"
  4654. ],
  4655. "tags": [
  4656. "user"
  4657. ],
  4658. "summary": "Remove a GPG key",
  4659. "operationId": "userCurrentDeleteGPGKey",
  4660. "parameters": [
  4661. {
  4662. "type": "integer",
  4663. "description": "id of key to delete",
  4664. "name": "id",
  4665. "in": "path",
  4666. "required": true
  4667. }
  4668. ],
  4669. "responses": {
  4670. "204": {
  4671. "$ref": "#/responses/empty"
  4672. },
  4673. "403": {
  4674. "$ref": "#/responses/forbidden"
  4675. }
  4676. }
  4677. }
  4678. },
  4679. "/user/keys": {
  4680. "get": {
  4681. "produces": [
  4682. "application/json"
  4683. ],
  4684. "tags": [
  4685. "user"
  4686. ],
  4687. "summary": "List the authenticated user's public keys",
  4688. "operationId": "userCurrentListKeys",
  4689. "responses": {
  4690. "200": {
  4691. "$ref": "#/responses/PublicKeyList"
  4692. }
  4693. }
  4694. },
  4695. "post": {
  4696. "consumes": [
  4697. "application/json"
  4698. ],
  4699. "produces": [
  4700. "application/json"
  4701. ],
  4702. "tags": [
  4703. "user"
  4704. ],
  4705. "summary": "Create a public key",
  4706. "operationId": "userCurrentPostKey",
  4707. "parameters": [
  4708. {
  4709. "name": "body",
  4710. "in": "body",
  4711. "schema": {
  4712. "$ref": "#/definitions/CreateKeyOption"
  4713. }
  4714. }
  4715. ],
  4716. "responses": {
  4717. "201": {
  4718. "$ref": "#/responses/PublicKey"
  4719. },
  4720. "422": {
  4721. "$ref": "#/responses/validationError"
  4722. }
  4723. }
  4724. }
  4725. },
  4726. "/user/keys/{id}": {
  4727. "get": {
  4728. "produces": [
  4729. "application/json"
  4730. ],
  4731. "tags": [
  4732. "user"
  4733. ],
  4734. "summary": "Get a public key",
  4735. "operationId": "userCurrentGetKey",
  4736. "parameters": [
  4737. {
  4738. "type": "integer",
  4739. "description": "id of key to get",
  4740. "name": "id",
  4741. "in": "path",
  4742. "required": true
  4743. }
  4744. ],
  4745. "responses": {
  4746. "200": {
  4747. "$ref": "#/responses/PublicKey"
  4748. },
  4749. "404": {
  4750. "$ref": "#/responses/notFound"
  4751. }
  4752. }
  4753. },
  4754. "delete": {
  4755. "produces": [
  4756. "application/json"
  4757. ],
  4758. "tags": [
  4759. "user"
  4760. ],
  4761. "summary": "Delete a public key",
  4762. "operationId": "userCurrentDeleteKey",
  4763. "parameters": [
  4764. {
  4765. "type": "integer",
  4766. "description": "id of key to delete",
  4767. "name": "id",
  4768. "in": "path",
  4769. "required": true
  4770. }
  4771. ],
  4772. "responses": {
  4773. "204": {
  4774. "$ref": "#/responses/empty"
  4775. },
  4776. "403": {
  4777. "$ref": "#/responses/forbidden"
  4778. },
  4779. "404": {
  4780. "$ref": "#/responses/notFound"
  4781. }
  4782. }
  4783. }
  4784. },
  4785. "/user/orgs": {
  4786. "get": {
  4787. "produces": [
  4788. "application/json"
  4789. ],
  4790. "tags": [
  4791. "organization"
  4792. ],
  4793. "summary": "List the current user's organizations",
  4794. "operationId": "orgListCurrentUserOrgs",
  4795. "responses": {
  4796. "200": {
  4797. "$ref": "#/responses/OrganizationList"
  4798. }
  4799. }
  4800. }
  4801. },
  4802. "/user/repos": {
  4803. "get": {
  4804. "produces": [
  4805. "application/json"
  4806. ],
  4807. "tags": [
  4808. "user"
  4809. ],
  4810. "summary": "List the repos that the authenticated user owns or has access to",
  4811. "operationId": "userCurrentListRepos",
  4812. "responses": {
  4813. "200": {
  4814. "$ref": "#/responses/RepositoryList"
  4815. }
  4816. }
  4817. },
  4818. "post": {
  4819. "consumes": [
  4820. "application/json"
  4821. ],
  4822. "produces": [
  4823. "application/json"
  4824. ],
  4825. "tags": [
  4826. "repository",
  4827. "user"
  4828. ],
  4829. "summary": "Create a repository",
  4830. "operationId": "createCurrentUserRepo",
  4831. "parameters": [
  4832. {
  4833. "name": "body",
  4834. "in": "body",
  4835. "schema": {
  4836. "$ref": "#/definitions/CreateRepoOption"
  4837. }
  4838. }
  4839. ],
  4840. "responses": {
  4841. "201": {
  4842. "$ref": "#/responses/Repository"
  4843. }
  4844. }
  4845. }
  4846. },
  4847. "/user/starred": {
  4848. "get": {
  4849. "produces": [
  4850. "application/json"
  4851. ],
  4852. "tags": [
  4853. "user"
  4854. ],
  4855. "summary": "The repos that the authenticated user has starred",
  4856. "operationId": "userCurrentListStarred",
  4857. "responses": {
  4858. "200": {
  4859. "$ref": "#/responses/RepositoryList"
  4860. }
  4861. }
  4862. }
  4863. },
  4864. "/user/starred/{owner}/{repo}": {
  4865. "get": {
  4866. "tags": [
  4867. "user"
  4868. ],
  4869. "summary": "Whether the authenticated is starring the repo",
  4870. "operationId": "userCurrentCheckStarring",
  4871. "parameters": [
  4872. {
  4873. "type": "string",
  4874. "description": "owner of the repo",
  4875. "name": "owner",
  4876. "in": "path",
  4877. "required": true
  4878. },
  4879. {
  4880. "type": "string",
  4881. "description": "name of the repo",
  4882. "name": "repo",
  4883. "in": "path",
  4884. "required": true
  4885. }
  4886. ],
  4887. "responses": {
  4888. "204": {
  4889. "$ref": "#/responses/empty"
  4890. },
  4891. "404": {
  4892. "$ref": "#/responses/notFound"
  4893. }
  4894. }
  4895. },
  4896. "put": {
  4897. "tags": [
  4898. "user"
  4899. ],
  4900. "summary": "Star the given repo",
  4901. "operationId": "userCurrentPutStar",
  4902. "parameters": [
  4903. {
  4904. "type": "string",
  4905. "description": "owner of the repo to star",
  4906. "name": "owner",
  4907. "in": "path",
  4908. "required": true
  4909. },
  4910. {
  4911. "type": "string",
  4912. "description": "name of the repo to star",
  4913. "name": "repo",
  4914. "in": "path",
  4915. "required": true
  4916. }
  4917. ],
  4918. "responses": {
  4919. "204": {
  4920. "$ref": "#/responses/empty"
  4921. }
  4922. }
  4923. },
  4924. "delete": {
  4925. "tags": [
  4926. "user"
  4927. ],
  4928. "summary": "Unstar the given repo",
  4929. "operationId": "userCurrentDeleteStar",
  4930. "parameters": [
  4931. {
  4932. "type": "string",
  4933. "description": "owner of the repo to unstar",
  4934. "name": "owner",
  4935. "in": "path",
  4936. "required": true
  4937. },
  4938. {
  4939. "type": "string",
  4940. "description": "name of the repo to unstar",
  4941. "name": "repo",
  4942. "in": "path",
  4943. "required": true
  4944. }
  4945. ],
  4946. "responses": {
  4947. "204": {
  4948. "$ref": "#/responses/empty"
  4949. }
  4950. }
  4951. }
  4952. },
  4953. "/user/subscriptions": {
  4954. "get": {
  4955. "produces": [
  4956. "application/json"
  4957. ],
  4958. "tags": [
  4959. "user"
  4960. ],
  4961. "summary": "List repositories watched by the authenticated user",
  4962. "operationId": "userCurrentListSubscriptions",
  4963. "responses": {
  4964. "200": {
  4965. "$ref": "#/responses/RepositoryList"
  4966. }
  4967. }
  4968. }
  4969. },
  4970. "/user/times": {
  4971. "get": {
  4972. "produces": [
  4973. "application/json"
  4974. ],
  4975. "tags": [
  4976. "user"
  4977. ],
  4978. "summary": "List the current user's tracked times",
  4979. "operationId": "userCurrentTrackedTimes",
  4980. "responses": {
  4981. "200": {
  4982. "$ref": "#/responses/TrackedTimeList"
  4983. }
  4984. }
  4985. }
  4986. },
  4987. "/user/{username}/orgs": {
  4988. "get": {
  4989. "produces": [
  4990. "application/json"
  4991. ],
  4992. "tags": [
  4993. "organization"
  4994. ],
  4995. "summary": "List a user's organizations",
  4996. "operationId": "orgListUserOrgs",
  4997. "parameters": [
  4998. {
  4999. "type": "string",
  5000. "description": "username of user",
  5001. "name": "username",
  5002. "in": "path"
  5003. }
  5004. ],
  5005. "responses": {
  5006. "200": {
  5007. "$ref": "#/responses/OrganizationList"
  5008. }
  5009. }
  5010. }
  5011. },
  5012. "/users/search": {
  5013. "get": {
  5014. "produces": [
  5015. "application/json"
  5016. ],
  5017. "tags": [
  5018. "user"
  5019. ],
  5020. "summary": "Search for users",
  5021. "operationId": "userSearch",
  5022. "parameters": [
  5023. {
  5024. "type": "string",
  5025. "description": "keyword",
  5026. "name": "q",
  5027. "in": "query"
  5028. },
  5029. {
  5030. "type": "integer",
  5031. "description": "maximum number of users to return",
  5032. "name": "limit",
  5033. "in": "query"
  5034. }
  5035. ],
  5036. "responses": {
  5037. "200": {
  5038. "$ref": "#/responses/UserList"
  5039. }
  5040. }
  5041. }
  5042. },
  5043. "/users/{follower}/following/{followee}": {
  5044. "get": {
  5045. "tags": [
  5046. "user"
  5047. ],
  5048. "summary": "Check if one user is following another user",
  5049. "operationId": "userCheckFollowing",
  5050. "parameters": [
  5051. {
  5052. "type": "string",
  5053. "description": "username of following user",
  5054. "name": "follower",
  5055. "in": "path",
  5056. "required": true
  5057. },
  5058. {
  5059. "type": "string",
  5060. "description": "username of followed user",
  5061. "name": "followee",
  5062. "in": "path",
  5063. "required": true
  5064. }
  5065. ],
  5066. "responses": {
  5067. "204": {
  5068. "$ref": "#/responses/empty"
  5069. },
  5070. "404": {
  5071. "$ref": "#/responses/notFound"
  5072. }
  5073. }
  5074. }
  5075. },
  5076. "/users/{username}": {
  5077. "get": {
  5078. "produces": [
  5079. "application/json"
  5080. ],
  5081. "tags": [
  5082. "user"
  5083. ],
  5084. "summary": "Get a user",
  5085. "operationId": "userGet",
  5086. "parameters": [
  5087. {
  5088. "type": "string",
  5089. "description": "username of user to get",
  5090. "name": "username",
  5091. "in": "path",
  5092. "required": true
  5093. }
  5094. ],
  5095. "responses": {
  5096. "200": {
  5097. "$ref": "#/responses/User"
  5098. },
  5099. "404": {
  5100. "$ref": "#/responses/notFound"
  5101. }
  5102. }
  5103. }
  5104. },
  5105. "/users/{username}/followers": {
  5106. "get": {
  5107. "produces": [
  5108. "application/json"
  5109. ],
  5110. "tags": [
  5111. "user"
  5112. ],
  5113. "summary": "List the given user's followers",
  5114. "operationId": "userListFollowers",
  5115. "parameters": [
  5116. {
  5117. "type": "string",
  5118. "description": "username of user",
  5119. "name": "username",
  5120. "in": "path",
  5121. "required": true
  5122. }
  5123. ],
  5124. "responses": {
  5125. "200": {
  5126. "$ref": "#/responses/UserList"
  5127. }
  5128. }
  5129. }
  5130. },
  5131. "/users/{username}/following": {
  5132. "get": {
  5133. "produces": [
  5134. "application/json"
  5135. ],
  5136. "tags": [
  5137. "user"
  5138. ],
  5139. "summary": "List the users that the given user is following",
  5140. "operationId": "userListFollowing",
  5141. "parameters": [
  5142. {
  5143. "type": "string",
  5144. "description": "username of user",
  5145. "name": "username",
  5146. "in": "path",
  5147. "required": true
  5148. }
  5149. ],
  5150. "responses": {
  5151. "200": {
  5152. "$ref": "#/responses/UserList"
  5153. }
  5154. }
  5155. }
  5156. },
  5157. "/users/{username}/gpg_keys": {
  5158. "get": {
  5159. "produces": [
  5160. "application/json"
  5161. ],
  5162. "tags": [
  5163. "user"
  5164. ],
  5165. "summary": "List the given user's GPG keys",
  5166. "operationId": "userListGPGKeys",
  5167. "parameters": [
  5168. {
  5169. "type": "string",
  5170. "description": "username of user",
  5171. "name": "username",
  5172. "in": "path",
  5173. "required": true
  5174. }
  5175. ],
  5176. "responses": {
  5177. "200": {
  5178. "$ref": "#/responses/GPGKeyList"
  5179. }
  5180. }
  5181. }
  5182. },
  5183. "/users/{username}/keys": {
  5184. "get": {
  5185. "produces": [
  5186. "application/json"
  5187. ],
  5188. "tags": [
  5189. "user"
  5190. ],
  5191. "summary": "List the given user's public keys",
  5192. "operationId": "userListKeys",
  5193. "parameters": [
  5194. {
  5195. "type": "string",
  5196. "description": "username of user",
  5197. "name": "username",
  5198. "in": "path",
  5199. "required": true
  5200. }
  5201. ],
  5202. "responses": {
  5203. "200": {
  5204. "$ref": "#/responses/PublicKeyList"
  5205. }
  5206. }
  5207. }
  5208. },
  5209. "/users/{username}/repos": {
  5210. "get": {
  5211. "produces": [
  5212. "application/json"
  5213. ],
  5214. "tags": [
  5215. "user"
  5216. ],
  5217. "summary": "List the repos owned by the given user",
  5218. "operationId": "userListRepos",
  5219. "parameters": [
  5220. {
  5221. "type": "string",
  5222. "description": "username of user",
  5223. "name": "username",
  5224. "in": "path",
  5225. "required": true
  5226. }
  5227. ],
  5228. "responses": {
  5229. "200": {
  5230. "$ref": "#/responses/RepositoryList"
  5231. }
  5232. }
  5233. }
  5234. },
  5235. "/users/{username}/starred": {
  5236. "get": {
  5237. "produces": [
  5238. "application/json"
  5239. ],
  5240. "tags": [
  5241. "user"
  5242. ],
  5243. "summary": "The repos that the given user has starred",
  5244. "operationId": "userListStarred",
  5245. "parameters": [
  5246. {
  5247. "type": "string",
  5248. "description": "username of user",
  5249. "name": "username",
  5250. "in": "path",
  5251. "required": true
  5252. }
  5253. ],
  5254. "responses": {
  5255. "200": {
  5256. "$ref": "#/responses/RepositoryList"
  5257. }
  5258. }
  5259. }
  5260. },
  5261. "/users/{username}/subscriptions": {
  5262. "get": {
  5263. "produces": [
  5264. "application/json"
  5265. ],
  5266. "tags": [
  5267. "user"
  5268. ],
  5269. "summary": "List the repositories watched by a user",
  5270. "operationId": "userListSubscriptions",
  5271. "parameters": [
  5272. {
  5273. "type": "string",
  5274. "description": "username of the user",
  5275. "name": "username",
  5276. "in": "path"
  5277. }
  5278. ],
  5279. "responses": {
  5280. "200": {
  5281. "$ref": "#/responses/RepositoryList"
  5282. }
  5283. }
  5284. }
  5285. },
  5286. "/users/{username}/tokens": {
  5287. "get": {
  5288. "produces": [
  5289. "application/json"
  5290. ],
  5291. "tags": [
  5292. "user"
  5293. ],
  5294. "summary": "List the authenticated user's access tokens",
  5295. "operationId": "userGetTokens",
  5296. "responses": {
  5297. "200": {
  5298. "$ref": "#/responses/AccessTokenList"
  5299. }
  5300. }
  5301. },
  5302. "post": {
  5303. "consumes": [
  5304. "application/json"
  5305. ],
  5306. "produces": [
  5307. "application/json"
  5308. ],
  5309. "tags": [
  5310. "user"
  5311. ],
  5312. "summary": "Create an access token",
  5313. "operationId": "userCreateToken",
  5314. "parameters": [
  5315. {
  5316. "type": "string",
  5317. "x-go-name": "Name",
  5318. "name": "name",
  5319. "in": "query"
  5320. }
  5321. ],
  5322. "responses": {
  5323. "200": {
  5324. "$ref": "#/responses/AccessToken"
  5325. }
  5326. }
  5327. }
  5328. },
  5329. "/version": {
  5330. "get": {
  5331. "produces": [
  5332. "application/json"
  5333. ],
  5334. "tags": [
  5335. "miscellaneous"
  5336. ],
  5337. "summary": "Returns the version of the Gitea application",
  5338. "operationId": "getVersion",
  5339. "responses": {
  5340. "200": {
  5341. "$ref": "#/responses/ServerVersion"
  5342. }
  5343. }
  5344. }
  5345. }
  5346. },
  5347. "definitions": {
  5348. "AddCollaboratorOption": {
  5349. "description": "AddCollaboratorOption options when adding a user as a collaborator of a repository",
  5350. "type": "object",
  5351. "properties": {
  5352. "permission": {
  5353. "type": "string",
  5354. "x-go-name": "Permission"
  5355. }
  5356. },
  5357. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5358. },
  5359. "AddTimeOption": {
  5360. "description": "AddTimeOption options for adding time to an issue",
  5361. "type": "object",
  5362. "required": [
  5363. "time"
  5364. ],
  5365. "properties": {
  5366. "time": {
  5367. "description": "time in seconds",
  5368. "type": "integer",
  5369. "format": "int64",
  5370. "x-go-name": "Time"
  5371. }
  5372. },
  5373. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5374. },
  5375. "Attachment": {
  5376. "description": "Attachment a generic attachment",
  5377. "type": "object",
  5378. "properties": {
  5379. "browser_download_url": {
  5380. "type": "string",
  5381. "x-go-name": "DownloadURL"
  5382. },
  5383. "created_at": {
  5384. "type": "string",
  5385. "format": "date-time",
  5386. "x-go-name": "Created"
  5387. },
  5388. "download_count": {
  5389. "type": "integer",
  5390. "format": "int64",
  5391. "x-go-name": "DownloadCount"
  5392. },
  5393. "id": {
  5394. "type": "integer",
  5395. "format": "int64",
  5396. "x-go-name": "ID"
  5397. },
  5398. "name": {
  5399. "type": "string",
  5400. "x-go-name": "Name"
  5401. },
  5402. "size": {
  5403. "type": "integer",
  5404. "format": "int64",
  5405. "x-go-name": "Size"
  5406. },
  5407. "uuid": {
  5408. "type": "string",
  5409. "x-go-name": "UUID"
  5410. }
  5411. },
  5412. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5413. },
  5414. "Branch": {
  5415. "description": "Branch represents a repository branch",
  5416. "type": "object",
  5417. "properties": {
  5418. "commit": {
  5419. "$ref": "#/definitions/PayloadCommit"
  5420. },
  5421. "name": {
  5422. "type": "string",
  5423. "x-go-name": "Name"
  5424. }
  5425. },
  5426. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5427. },
  5428. "Comment": {
  5429. "description": "Comment represents a comment on a commit or issue",
  5430. "type": "object",
  5431. "properties": {
  5432. "body": {
  5433. "type": "string",
  5434. "x-go-name": "Body"
  5435. },
  5436. "created_at": {
  5437. "type": "string",
  5438. "format": "date-time",
  5439. "x-go-name": "Created"
  5440. },
  5441. "html_url": {
  5442. "type": "string",
  5443. "x-go-name": "HTMLURL"
  5444. },
  5445. "id": {
  5446. "type": "integer",
  5447. "format": "int64",
  5448. "x-go-name": "ID"
  5449. },
  5450. "issue_url": {
  5451. "type": "string",
  5452. "x-go-name": "IssueURL"
  5453. },
  5454. "pull_request_url": {
  5455. "type": "string",
  5456. "x-go-name": "PRURL"
  5457. },
  5458. "updated_at": {
  5459. "type": "string",
  5460. "format": "date-time",
  5461. "x-go-name": "Updated"
  5462. },
  5463. "user": {
  5464. "$ref": "#/definitions/User"
  5465. }
  5466. },
  5467. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5468. },
  5469. "CreateEmailOption": {
  5470. "description": "CreateEmailOption options when creating email addresses",
  5471. "type": "object",
  5472. "properties": {
  5473. "emails": {
  5474. "description": "email addresses to add",
  5475. "type": "array",
  5476. "items": {
  5477. "type": "string"
  5478. },
  5479. "x-go-name": "Emails"
  5480. }
  5481. },
  5482. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5483. },
  5484. "CreateForkOption": {
  5485. "description": "CreateForkOption options for creating a fork",
  5486. "type": "object",
  5487. "properties": {
  5488. "organization": {
  5489. "description": "organization name, if forking into an organization",
  5490. "type": "string",
  5491. "x-go-name": "Organization"
  5492. }
  5493. },
  5494. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5495. },
  5496. "CreateGPGKeyOption": {
  5497. "description": "CreateGPGKeyOption options create user GPG key",
  5498. "type": "object",
  5499. "required": [
  5500. "armored_public_key"
  5501. ],
  5502. "properties": {
  5503. "armored_public_key": {
  5504. "description": "An armored GPG key to add",
  5505. "type": "string",
  5506. "uniqueItems": true,
  5507. "x-go-name": "ArmoredKey"
  5508. }
  5509. },
  5510. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5511. },
  5512. "CreateHookOption": {
  5513. "description": "CreateHookOption options when create a hook",
  5514. "type": "object",
  5515. "required": [
  5516. "type",
  5517. "config"
  5518. ],
  5519. "properties": {
  5520. "active": {
  5521. "type": "boolean",
  5522. "default": false,
  5523. "x-go-name": "Active"
  5524. },
  5525. "config": {
  5526. "type": "object",
  5527. "additionalProperties": {
  5528. "type": "string"
  5529. },
  5530. "x-go-name": "Config"
  5531. },
  5532. "events": {
  5533. "type": "array",
  5534. "items": {
  5535. "type": "string"
  5536. },
  5537. "x-go-name": "Events"
  5538. },
  5539. "type": {
  5540. "type": "string",
  5541. "enum": [
  5542. "gitea",
  5543. "gogs",
  5544. "slack",
  5545. "discord"
  5546. ],
  5547. "x-go-name": "Type"
  5548. }
  5549. },
  5550. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5551. },
  5552. "CreateIssueCommentOption": {
  5553. "description": "CreateIssueCommentOption options for creating a comment on an issue",
  5554. "type": "object",
  5555. "required": [
  5556. "body"
  5557. ],
  5558. "properties": {
  5559. "body": {
  5560. "type": "string",
  5561. "x-go-name": "Body"
  5562. }
  5563. },
  5564. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5565. },
  5566. "CreateIssueOption": {
  5567. "description": "CreateIssueOption options to create one issue",
  5568. "type": "object",
  5569. "required": [
  5570. "title"
  5571. ],
  5572. "properties": {
  5573. "assignee": {
  5574. "description": "username of assignee",
  5575. "type": "string",
  5576. "x-go-name": "Assignee"
  5577. },
  5578. "assignees": {
  5579. "type": "array",
  5580. "items": {
  5581. "type": "string"
  5582. },
  5583. "x-go-name": "Assignees"
  5584. },
  5585. "body": {
  5586. "type": "string",
  5587. "x-go-name": "Body"
  5588. },
  5589. "closed": {
  5590. "type": "boolean",
  5591. "x-go-name": "Closed"
  5592. },
  5593. "due_date": {
  5594. "type": "string",
  5595. "format": "date-time",
  5596. "x-go-name": "Deadline"
  5597. },
  5598. "labels": {
  5599. "description": "list of label ids",
  5600. "type": "array",
  5601. "items": {
  5602. "type": "integer",
  5603. "format": "int64"
  5604. },
  5605. "x-go-name": "Labels"
  5606. },
  5607. "milestone": {
  5608. "description": "milestone id",
  5609. "type": "integer",
  5610. "format": "int64",
  5611. "x-go-name": "Milestone"
  5612. },
  5613. "title": {
  5614. "type": "string",
  5615. "x-go-name": "Title"
  5616. }
  5617. },
  5618. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5619. },
  5620. "CreateKeyOption": {
  5621. "description": "CreateKeyOption options when creating a key",
  5622. "type": "object",
  5623. "required": [
  5624. "title",
  5625. "key"
  5626. ],
  5627. "properties": {
  5628. "key": {
  5629. "description": "An armored SSH key to add",
  5630. "type": "string",
  5631. "uniqueItems": true,
  5632. "x-go-name": "Key"
  5633. },
  5634. "read_only": {
  5635. "description": "Describe if the key has only read access or read/write",
  5636. "type": "boolean",
  5637. "x-go-name": "ReadOnly"
  5638. },
  5639. "title": {
  5640. "description": "Title of the key to add",
  5641. "type": "string",
  5642. "uniqueItems": true,
  5643. "x-go-name": "Title"
  5644. }
  5645. },
  5646. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5647. },
  5648. "CreateLabelOption": {
  5649. "description": "CreateLabelOption options for creating a label",
  5650. "type": "object",
  5651. "required": [
  5652. "name",
  5653. "color"
  5654. ],
  5655. "properties": {
  5656. "color": {
  5657. "type": "string",
  5658. "x-go-name": "Color",
  5659. "example": "#00aabb"
  5660. },
  5661. "name": {
  5662. "type": "string",
  5663. "x-go-name": "Name"
  5664. }
  5665. },
  5666. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5667. },
  5668. "CreateMilestoneOption": {
  5669. "description": "CreateMilestoneOption options for creating a milestone",
  5670. "type": "object",
  5671. "properties": {
  5672. "description": {
  5673. "type": "string",
  5674. "x-go-name": "Description"
  5675. },
  5676. "due_on": {
  5677. "type": "string",
  5678. "format": "date-time",
  5679. "x-go-name": "Deadline"
  5680. },
  5681. "title": {
  5682. "type": "string",
  5683. "x-go-name": "Title"
  5684. }
  5685. },
  5686. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5687. },
  5688. "CreateOrgOption": {
  5689. "description": "CreateOrgOption options for creating an organization",
  5690. "type": "object",
  5691. "required": [
  5692. "username"
  5693. ],
  5694. "properties": {
  5695. "description": {
  5696. "type": "string",
  5697. "x-go-name": "Description"
  5698. },
  5699. "full_name": {
  5700. "type": "string",
  5701. "x-go-name": "FullName"
  5702. },
  5703. "location": {
  5704. "type": "string",
  5705. "x-go-name": "Location"
  5706. },
  5707. "username": {
  5708. "type": "string",
  5709. "x-go-name": "UserName"
  5710. },
  5711. "website": {
  5712. "type": "string",
  5713. "x-go-name": "Website"
  5714. }
  5715. },
  5716. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5717. },
  5718. "CreatePullRequestOption": {
  5719. "description": "CreatePullRequestOption options when creating a pull request",
  5720. "type": "object",
  5721. "properties": {
  5722. "assignee": {
  5723. "type": "string",
  5724. "x-go-name": "Assignee"
  5725. },
  5726. "assignees": {
  5727. "type": "array",
  5728. "items": {
  5729. "type": "string"
  5730. },
  5731. "x-go-name": "Assignees"
  5732. },
  5733. "base": {
  5734. "type": "string",
  5735. "x-go-name": "Base"
  5736. },
  5737. "body": {
  5738. "type": "string",
  5739. "x-go-name": "Body"
  5740. },
  5741. "due_date": {
  5742. "type": "string",
  5743. "format": "date-time",
  5744. "x-go-name": "Deadline"
  5745. },
  5746. "head": {
  5747. "type": "string",
  5748. "x-go-name": "Head"
  5749. },
  5750. "labels": {
  5751. "type": "array",
  5752. "items": {
  5753. "type": "integer",
  5754. "format": "int64"
  5755. },
  5756. "x-go-name": "Labels"
  5757. },
  5758. "milestone": {
  5759. "type": "integer",
  5760. "format": "int64",
  5761. "x-go-name": "Milestone"
  5762. },
  5763. "title": {
  5764. "type": "string",
  5765. "x-go-name": "Title"
  5766. }
  5767. },
  5768. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5769. },
  5770. "CreateReleaseOption": {
  5771. "description": "CreateReleaseOption options when creating a release",
  5772. "type": "object",
  5773. "required": [
  5774. "tag_name"
  5775. ],
  5776. "properties": {
  5777. "body": {
  5778. "type": "string",
  5779. "x-go-name": "Note"
  5780. },
  5781. "draft": {
  5782. "type": "boolean",
  5783. "x-go-name": "IsDraft"
  5784. },
  5785. "name": {
  5786. "type": "string",
  5787. "x-go-name": "Title"
  5788. },
  5789. "prerelease": {
  5790. "type": "boolean",
  5791. "x-go-name": "IsPrerelease"
  5792. },
  5793. "tag_name": {
  5794. "type": "string",
  5795. "x-go-name": "TagName"
  5796. },
  5797. "target_commitish": {
  5798. "type": "string",
  5799. "x-go-name": "Target"
  5800. }
  5801. },
  5802. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5803. },
  5804. "CreateRepoOption": {
  5805. "description": "CreateRepoOption options when creating repository",
  5806. "type": "object",
  5807. "required": [
  5808. "name"
  5809. ],
  5810. "properties": {
  5811. "auto_init": {
  5812. "description": "Whether the repository should be auto-intialized?",
  5813. "type": "boolean",
  5814. "x-go-name": "AutoInit"
  5815. },
  5816. "description": {
  5817. "description": "Description of the repository to create",
  5818. "type": "string",
  5819. "x-go-name": "Description"
  5820. },
  5821. "gitignores": {
  5822. "description": "Gitignores to use",
  5823. "type": "string",
  5824. "x-go-name": "Gitignores"
  5825. },
  5826. "license": {
  5827. "description": "License to use",
  5828. "type": "string",
  5829. "x-go-name": "License"
  5830. },
  5831. "name": {
  5832. "description": "Name of the repository to create",
  5833. "type": "string",
  5834. "uniqueItems": true,
  5835. "x-go-name": "Name"
  5836. },
  5837. "private": {
  5838. "description": "Whether the repository is private",
  5839. "type": "boolean",
  5840. "x-go-name": "Private"
  5841. },
  5842. "readme": {
  5843. "description": "Readme of the repository to create",
  5844. "type": "string",
  5845. "x-go-name": "Readme"
  5846. }
  5847. },
  5848. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5849. },
  5850. "CreateStatusOption": {
  5851. "description": "CreateStatusOption holds the information needed to create a new Status for a Commit",
  5852. "type": "object",
  5853. "properties": {
  5854. "context": {
  5855. "type": "string",
  5856. "x-go-name": "Context"
  5857. },
  5858. "description": {
  5859. "type": "string",
  5860. "x-go-name": "Description"
  5861. },
  5862. "state": {
  5863. "$ref": "#/definitions/StatusState"
  5864. },
  5865. "target_url": {
  5866. "type": "string",
  5867. "x-go-name": "TargetURL"
  5868. }
  5869. },
  5870. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5871. },
  5872. "CreateTeamOption": {
  5873. "description": "CreateTeamOption options for creating a team",
  5874. "type": "object",
  5875. "required": [
  5876. "name"
  5877. ],
  5878. "properties": {
  5879. "description": {
  5880. "type": "string",
  5881. "x-go-name": "Description"
  5882. },
  5883. "name": {
  5884. "type": "string",
  5885. "x-go-name": "Name"
  5886. },
  5887. "permission": {
  5888. "type": "string",
  5889. "enum": [
  5890. "read",
  5891. "write",
  5892. "admin"
  5893. ],
  5894. "x-go-name": "Permission"
  5895. }
  5896. },
  5897. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5898. },
  5899. "CreateUserOption": {
  5900. "description": "CreateUserOption create user options",
  5901. "type": "object",
  5902. "required": [
  5903. "username",
  5904. "email",
  5905. "password"
  5906. ],
  5907. "properties": {
  5908. "email": {
  5909. "type": "string",
  5910. "format": "email",
  5911. "x-go-name": "Email"
  5912. },
  5913. "full_name": {
  5914. "type": "string",
  5915. "x-go-name": "FullName"
  5916. },
  5917. "login_name": {
  5918. "type": "string",
  5919. "x-go-name": "LoginName"
  5920. },
  5921. "password": {
  5922. "type": "string",
  5923. "x-go-name": "Password"
  5924. },
  5925. "send_notify": {
  5926. "type": "boolean",
  5927. "x-go-name": "SendNotify"
  5928. },
  5929. "source_id": {
  5930. "type": "integer",
  5931. "format": "int64",
  5932. "x-go-name": "SourceID"
  5933. },
  5934. "username": {
  5935. "type": "string",
  5936. "x-go-name": "Username"
  5937. }
  5938. },
  5939. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5940. },
  5941. "DeleteEmailOption": {
  5942. "description": "DeleteEmailOption options when deleting email addresses",
  5943. "type": "object",
  5944. "properties": {
  5945. "emails": {
  5946. "description": "email addresses to delete",
  5947. "type": "array",
  5948. "items": {
  5949. "type": "string"
  5950. },
  5951. "x-go-name": "Emails"
  5952. }
  5953. },
  5954. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5955. },
  5956. "DeployKey": {
  5957. "description": "DeployKey a deploy key",
  5958. "type": "object",
  5959. "properties": {
  5960. "created_at": {
  5961. "type": "string",
  5962. "format": "date-time",
  5963. "x-go-name": "Created"
  5964. },
  5965. "id": {
  5966. "type": "integer",
  5967. "format": "int64",
  5968. "x-go-name": "ID"
  5969. },
  5970. "key": {
  5971. "type": "string",
  5972. "x-go-name": "Key"
  5973. },
  5974. "read_only": {
  5975. "type": "boolean",
  5976. "x-go-name": "ReadOnly"
  5977. },
  5978. "title": {
  5979. "type": "string",
  5980. "x-go-name": "Title"
  5981. },
  5982. "url": {
  5983. "type": "string",
  5984. "x-go-name": "URL"
  5985. }
  5986. },
  5987. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5988. },
  5989. "EditAttachmentOptions": {
  5990. "description": "EditAttachmentOptions options for editing attachments",
  5991. "type": "object",
  5992. "properties": {
  5993. "name": {
  5994. "type": "string",
  5995. "x-go-name": "Name"
  5996. }
  5997. },
  5998. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  5999. },
  6000. "EditHookOption": {
  6001. "description": "EditHookOption options when modify one hook",
  6002. "type": "object",
  6003. "properties": {
  6004. "active": {
  6005. "type": "boolean",
  6006. "x-go-name": "Active"
  6007. },
  6008. "config": {
  6009. "type": "object",
  6010. "additionalProperties": {
  6011. "type": "string"
  6012. },
  6013. "x-go-name": "Config"
  6014. },
  6015. "events": {
  6016. "type": "array",
  6017. "items": {
  6018. "type": "string"
  6019. },
  6020. "x-go-name": "Events"
  6021. }
  6022. },
  6023. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6024. },
  6025. "EditIssueCommentOption": {
  6026. "description": "EditIssueCommentOption options for editing a comment",
  6027. "type": "object",
  6028. "required": [
  6029. "body"
  6030. ],
  6031. "properties": {
  6032. "body": {
  6033. "type": "string",
  6034. "x-go-name": "Body"
  6035. }
  6036. },
  6037. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6038. },
  6039. "EditIssueOption": {
  6040. "description": "EditIssueOption options for editing an issue",
  6041. "type": "object",
  6042. "properties": {
  6043. "assignee": {
  6044. "type": "string",
  6045. "x-go-name": "Assignee"
  6046. },
  6047. "assignees": {
  6048. "type": "array",
  6049. "items": {
  6050. "type": "string"
  6051. },
  6052. "x-go-name": "Assignees"
  6053. },
  6054. "body": {
  6055. "type": "string",
  6056. "x-go-name": "Body"
  6057. },
  6058. "due_date": {
  6059. "type": "string",
  6060. "format": "date-time",
  6061. "x-go-name": "Deadline"
  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. "EditLabelOption": {
  6080. "description": "EditLabelOption options for editing a label",
  6081. "type": "object",
  6082. "properties": {
  6083. "color": {
  6084. "type": "string",
  6085. "x-go-name": "Color"
  6086. },
  6087. "name": {
  6088. "type": "string",
  6089. "x-go-name": "Name"
  6090. }
  6091. },
  6092. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6093. },
  6094. "EditMilestoneOption": {
  6095. "description": "EditMilestoneOption options for editing a milestone",
  6096. "type": "object",
  6097. "properties": {
  6098. "description": {
  6099. "type": "string",
  6100. "x-go-name": "Description"
  6101. },
  6102. "due_on": {
  6103. "type": "string",
  6104. "format": "date-time",
  6105. "x-go-name": "Deadline"
  6106. },
  6107. "state": {
  6108. "type": "string",
  6109. "x-go-name": "State"
  6110. },
  6111. "title": {
  6112. "type": "string",
  6113. "x-go-name": "Title"
  6114. }
  6115. },
  6116. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6117. },
  6118. "EditOrgOption": {
  6119. "description": "EditOrgOption options for editing an organization",
  6120. "type": "object",
  6121. "properties": {
  6122. "description": {
  6123. "type": "string",
  6124. "x-go-name": "Description"
  6125. },
  6126. "full_name": {
  6127. "type": "string",
  6128. "x-go-name": "FullName"
  6129. },
  6130. "location": {
  6131. "type": "string",
  6132. "x-go-name": "Location"
  6133. },
  6134. "website": {
  6135. "type": "string",
  6136. "x-go-name": "Website"
  6137. }
  6138. },
  6139. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6140. },
  6141. "EditPullRequestOption": {
  6142. "description": "EditPullRequestOption options when modify pull request",
  6143. "type": "object",
  6144. "properties": {
  6145. "assignee": {
  6146. "type": "string",
  6147. "x-go-name": "Assignee"
  6148. },
  6149. "assignees": {
  6150. "type": "array",
  6151. "items": {
  6152. "type": "string"
  6153. },
  6154. "x-go-name": "Assignees"
  6155. },
  6156. "body": {
  6157. "type": "string",
  6158. "x-go-name": "Body"
  6159. },
  6160. "due_date": {
  6161. "type": "string",
  6162. "format": "date-time",
  6163. "x-go-name": "Deadline"
  6164. },
  6165. "labels": {
  6166. "type": "array",
  6167. "items": {
  6168. "type": "integer",
  6169. "format": "int64"
  6170. },
  6171. "x-go-name": "Labels"
  6172. },
  6173. "milestone": {
  6174. "type": "integer",
  6175. "format": "int64",
  6176. "x-go-name": "Milestone"
  6177. },
  6178. "state": {
  6179. "type": "string",
  6180. "x-go-name": "State"
  6181. },
  6182. "title": {
  6183. "type": "string",
  6184. "x-go-name": "Title"
  6185. }
  6186. },
  6187. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6188. },
  6189. "EditReleaseOption": {
  6190. "description": "EditReleaseOption options when editing a release",
  6191. "type": "object",
  6192. "properties": {
  6193. "body": {
  6194. "type": "string",
  6195. "x-go-name": "Note"
  6196. },
  6197. "draft": {
  6198. "type": "boolean",
  6199. "x-go-name": "IsDraft"
  6200. },
  6201. "name": {
  6202. "type": "string",
  6203. "x-go-name": "Title"
  6204. },
  6205. "prerelease": {
  6206. "type": "boolean",
  6207. "x-go-name": "IsPrerelease"
  6208. },
  6209. "tag_name": {
  6210. "type": "string",
  6211. "x-go-name": "TagName"
  6212. },
  6213. "target_commitish": {
  6214. "type": "string",
  6215. "x-go-name": "Target"
  6216. }
  6217. },
  6218. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6219. },
  6220. "EditTeamOption": {
  6221. "description": "EditTeamOption options for editing a team",
  6222. "type": "object",
  6223. "required": [
  6224. "name"
  6225. ],
  6226. "properties": {
  6227. "description": {
  6228. "type": "string",
  6229. "x-go-name": "Description"
  6230. },
  6231. "name": {
  6232. "type": "string",
  6233. "x-go-name": "Name"
  6234. },
  6235. "permission": {
  6236. "type": "string",
  6237. "enum": [
  6238. "read",
  6239. "write",
  6240. "admin"
  6241. ],
  6242. "x-go-name": "Permission"
  6243. }
  6244. },
  6245. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6246. },
  6247. "EditUserOption": {
  6248. "description": "EditUserOption edit user options",
  6249. "type": "object",
  6250. "required": [
  6251. "email"
  6252. ],
  6253. "properties": {
  6254. "active": {
  6255. "type": "boolean",
  6256. "x-go-name": "Active"
  6257. },
  6258. "admin": {
  6259. "type": "boolean",
  6260. "x-go-name": "Admin"
  6261. },
  6262. "allow_git_hook": {
  6263. "type": "boolean",
  6264. "x-go-name": "AllowGitHook"
  6265. },
  6266. "allow_import_local": {
  6267. "type": "boolean",
  6268. "x-go-name": "AllowImportLocal"
  6269. },
  6270. "email": {
  6271. "type": "string",
  6272. "format": "email",
  6273. "x-go-name": "Email"
  6274. },
  6275. "full_name": {
  6276. "type": "string",
  6277. "x-go-name": "FullName"
  6278. },
  6279. "location": {
  6280. "type": "string",
  6281. "x-go-name": "Location"
  6282. },
  6283. "login_name": {
  6284. "type": "string",
  6285. "x-go-name": "LoginName"
  6286. },
  6287. "max_repo_creation": {
  6288. "type": "integer",
  6289. "format": "int64",
  6290. "x-go-name": "MaxRepoCreation"
  6291. },
  6292. "password": {
  6293. "type": "string",
  6294. "x-go-name": "Password"
  6295. },
  6296. "source_id": {
  6297. "type": "integer",
  6298. "format": "int64",
  6299. "x-go-name": "SourceID"
  6300. },
  6301. "website": {
  6302. "type": "string",
  6303. "x-go-name": "Website"
  6304. }
  6305. },
  6306. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6307. },
  6308. "Email": {
  6309. "description": "Email an email address belonging to a user",
  6310. "type": "object",
  6311. "properties": {
  6312. "email": {
  6313. "type": "string",
  6314. "format": "email",
  6315. "x-go-name": "Email"
  6316. },
  6317. "primary": {
  6318. "type": "boolean",
  6319. "x-go-name": "Primary"
  6320. },
  6321. "verified": {
  6322. "type": "boolean",
  6323. "x-go-name": "Verified"
  6324. }
  6325. },
  6326. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6327. },
  6328. "GPGKey": {
  6329. "description": "GPGKey a user GPG key to sign commit and tag in repository",
  6330. "type": "object",
  6331. "properties": {
  6332. "can_certify": {
  6333. "type": "boolean",
  6334. "x-go-name": "CanCertify"
  6335. },
  6336. "can_encrypt_comms": {
  6337. "type": "boolean",
  6338. "x-go-name": "CanEncryptComms"
  6339. },
  6340. "can_encrypt_storage": {
  6341. "type": "boolean",
  6342. "x-go-name": "CanEncryptStorage"
  6343. },
  6344. "can_sign": {
  6345. "type": "boolean",
  6346. "x-go-name": "CanSign"
  6347. },
  6348. "created_at": {
  6349. "type": "string",
  6350. "format": "date-time",
  6351. "x-go-name": "Created"
  6352. },
  6353. "emails": {
  6354. "type": "array",
  6355. "items": {
  6356. "$ref": "#/definitions/GPGKeyEmail"
  6357. },
  6358. "x-go-name": "Emails"
  6359. },
  6360. "expires_at": {
  6361. "type": "string",
  6362. "format": "date-time",
  6363. "x-go-name": "Expires"
  6364. },
  6365. "id": {
  6366. "type": "integer",
  6367. "format": "int64",
  6368. "x-go-name": "ID"
  6369. },
  6370. "key_id": {
  6371. "type": "string",
  6372. "x-go-name": "KeyID"
  6373. },
  6374. "primary_key_id": {
  6375. "type": "string",
  6376. "x-go-name": "PrimaryKeyID"
  6377. },
  6378. "public_key": {
  6379. "type": "string",
  6380. "x-go-name": "PublicKey"
  6381. },
  6382. "subkeys": {
  6383. "type": "array",
  6384. "items": {
  6385. "$ref": "#/definitions/GPGKey"
  6386. },
  6387. "x-go-name": "SubsKey"
  6388. }
  6389. },
  6390. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6391. },
  6392. "GPGKeyEmail": {
  6393. "description": "GPGKeyEmail an email attached to a GPGKey",
  6394. "type": "object",
  6395. "properties": {
  6396. "email": {
  6397. "type": "string",
  6398. "x-go-name": "Email"
  6399. },
  6400. "verified": {
  6401. "type": "boolean",
  6402. "x-go-name": "Verified"
  6403. }
  6404. },
  6405. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6406. },
  6407. "Issue": {
  6408. "description": "Issue represents an issue in a repository",
  6409. "type": "object",
  6410. "properties": {
  6411. "assignee": {
  6412. "$ref": "#/definitions/User"
  6413. },
  6414. "assignees": {
  6415. "type": "array",
  6416. "items": {
  6417. "$ref": "#/definitions/User"
  6418. },
  6419. "x-go-name": "Assignees"
  6420. },
  6421. "body": {
  6422. "type": "string",
  6423. "x-go-name": "Body"
  6424. },
  6425. "closed_at": {
  6426. "type": "string",
  6427. "format": "date-time",
  6428. "x-go-name": "Closed"
  6429. },
  6430. "comments": {
  6431. "type": "integer",
  6432. "format": "int64",
  6433. "x-go-name": "Comments"
  6434. },
  6435. "created_at": {
  6436. "type": "string",
  6437. "format": "date-time",
  6438. "x-go-name": "Created"
  6439. },
  6440. "due_date": {
  6441. "type": "string",
  6442. "format": "date-time",
  6443. "x-go-name": "Deadline"
  6444. },
  6445. "id": {
  6446. "type": "integer",
  6447. "format": "int64",
  6448. "x-go-name": "ID"
  6449. },
  6450. "labels": {
  6451. "type": "array",
  6452. "items": {
  6453. "$ref": "#/definitions/Label"
  6454. },
  6455. "x-go-name": "Labels"
  6456. },
  6457. "milestone": {
  6458. "$ref": "#/definitions/Milestone"
  6459. },
  6460. "number": {
  6461. "type": "integer",
  6462. "format": "int64",
  6463. "x-go-name": "Index"
  6464. },
  6465. "pull_request": {
  6466. "$ref": "#/definitions/PullRequestMeta"
  6467. },
  6468. "state": {
  6469. "$ref": "#/definitions/StateType"
  6470. },
  6471. "title": {
  6472. "type": "string",
  6473. "x-go-name": "Title"
  6474. },
  6475. "updated_at": {
  6476. "type": "string",
  6477. "format": "date-time",
  6478. "x-go-name": "Updated"
  6479. },
  6480. "url": {
  6481. "type": "string",
  6482. "x-go-name": "URL"
  6483. },
  6484. "user": {
  6485. "$ref": "#/definitions/User"
  6486. }
  6487. },
  6488. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6489. },
  6490. "IssueLabelsOption": {
  6491. "description": "IssueLabelsOption a collection of labels",
  6492. "type": "object",
  6493. "properties": {
  6494. "labels": {
  6495. "description": "list of label IDs",
  6496. "type": "array",
  6497. "items": {
  6498. "type": "integer",
  6499. "format": "int64"
  6500. },
  6501. "x-go-name": "Labels"
  6502. }
  6503. },
  6504. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6505. },
  6506. "Label": {
  6507. "description": "Label a label to an issue or a pr",
  6508. "type": "object",
  6509. "properties": {
  6510. "color": {
  6511. "type": "string",
  6512. "x-go-name": "Color",
  6513. "example": "00aabb"
  6514. },
  6515. "id": {
  6516. "type": "integer",
  6517. "format": "int64",
  6518. "x-go-name": "ID"
  6519. },
  6520. "name": {
  6521. "type": "string",
  6522. "x-go-name": "Name"
  6523. },
  6524. "url": {
  6525. "type": "string",
  6526. "x-go-name": "URL"
  6527. }
  6528. },
  6529. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6530. },
  6531. "MarkdownOption": {
  6532. "description": "MarkdownOption markdown options",
  6533. "type": "object",
  6534. "properties": {
  6535. "Context": {
  6536. "description": "Context to render\n\nin: body",
  6537. "type": "string"
  6538. },
  6539. "Mode": {
  6540. "description": "Mode to render\n\nin: body",
  6541. "type": "string"
  6542. },
  6543. "Text": {
  6544. "description": "Text markdown to render\n\nin: body",
  6545. "type": "string"
  6546. },
  6547. "Wiki": {
  6548. "description": "Is it a wiki page ?\n\nin: body",
  6549. "type": "boolean"
  6550. }
  6551. },
  6552. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6553. },
  6554. "MigrateRepoForm": {
  6555. "description": "MigrateRepoForm form for migrating repository",
  6556. "type": "object",
  6557. "required": [
  6558. "clone_addr",
  6559. "uid",
  6560. "repo_name"
  6561. ],
  6562. "properties": {
  6563. "auth_password": {
  6564. "type": "string",
  6565. "x-go-name": "AuthPassword"
  6566. },
  6567. "auth_username": {
  6568. "type": "string",
  6569. "x-go-name": "AuthUsername"
  6570. },
  6571. "clone_addr": {
  6572. "type": "string",
  6573. "x-go-name": "CloneAddr"
  6574. },
  6575. "description": {
  6576. "type": "string",
  6577. "x-go-name": "Description"
  6578. },
  6579. "mirror": {
  6580. "type": "boolean",
  6581. "x-go-name": "Mirror"
  6582. },
  6583. "private": {
  6584. "type": "boolean",
  6585. "x-go-name": "Private"
  6586. },
  6587. "repo_name": {
  6588. "type": "string",
  6589. "x-go-name": "RepoName"
  6590. },
  6591. "uid": {
  6592. "type": "integer",
  6593. "format": "int64",
  6594. "x-go-name": "UID"
  6595. }
  6596. },
  6597. "x-go-package": "code.gitea.io/gitea/modules/auth"
  6598. },
  6599. "Milestone": {
  6600. "description": "Milestone milestone is a collection of issues on one repository",
  6601. "type": "object",
  6602. "properties": {
  6603. "closed_at": {
  6604. "type": "string",
  6605. "format": "date-time",
  6606. "x-go-name": "Closed"
  6607. },
  6608. "closed_issues": {
  6609. "type": "integer",
  6610. "format": "int64",
  6611. "x-go-name": "ClosedIssues"
  6612. },
  6613. "description": {
  6614. "type": "string",
  6615. "x-go-name": "Description"
  6616. },
  6617. "due_on": {
  6618. "type": "string",
  6619. "format": "date-time",
  6620. "x-go-name": "Deadline"
  6621. },
  6622. "id": {
  6623. "type": "integer",
  6624. "format": "int64",
  6625. "x-go-name": "ID"
  6626. },
  6627. "open_issues": {
  6628. "type": "integer",
  6629. "format": "int64",
  6630. "x-go-name": "OpenIssues"
  6631. },
  6632. "state": {
  6633. "$ref": "#/definitions/StateType"
  6634. },
  6635. "title": {
  6636. "type": "string",
  6637. "x-go-name": "Title"
  6638. }
  6639. },
  6640. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6641. },
  6642. "Organization": {
  6643. "description": "Organization represents an organization",
  6644. "type": "object",
  6645. "properties": {
  6646. "avatar_url": {
  6647. "type": "string",
  6648. "x-go-name": "AvatarURL"
  6649. },
  6650. "description": {
  6651. "type": "string",
  6652. "x-go-name": "Description"
  6653. },
  6654. "full_name": {
  6655. "type": "string",
  6656. "x-go-name": "FullName"
  6657. },
  6658. "id": {
  6659. "type": "integer",
  6660. "format": "int64",
  6661. "x-go-name": "ID"
  6662. },
  6663. "location": {
  6664. "type": "string",
  6665. "x-go-name": "Location"
  6666. },
  6667. "username": {
  6668. "type": "string",
  6669. "x-go-name": "UserName"
  6670. },
  6671. "website": {
  6672. "type": "string",
  6673. "x-go-name": "Website"
  6674. }
  6675. },
  6676. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6677. },
  6678. "PRBranchInfo": {
  6679. "description": "PRBranchInfo information about a branch",
  6680. "type": "object",
  6681. "properties": {
  6682. "label": {
  6683. "type": "string",
  6684. "x-go-name": "Name"
  6685. },
  6686. "ref": {
  6687. "type": "string",
  6688. "x-go-name": "Ref"
  6689. },
  6690. "repo": {
  6691. "$ref": "#/definitions/Repository"
  6692. },
  6693. "repo_id": {
  6694. "type": "integer",
  6695. "format": "int64",
  6696. "x-go-name": "RepoID"
  6697. },
  6698. "sha": {
  6699. "type": "string",
  6700. "x-go-name": "Sha"
  6701. }
  6702. },
  6703. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6704. },
  6705. "PayloadCommit": {
  6706. "description": "PayloadCommit represents a commit",
  6707. "type": "object",
  6708. "properties": {
  6709. "author": {
  6710. "$ref": "#/definitions/PayloadUser"
  6711. },
  6712. "committer": {
  6713. "$ref": "#/definitions/PayloadUser"
  6714. },
  6715. "id": {
  6716. "description": "sha1 hash of the commit",
  6717. "type": "string",
  6718. "x-go-name": "ID"
  6719. },
  6720. "message": {
  6721. "type": "string",
  6722. "x-go-name": "Message"
  6723. },
  6724. "timestamp": {
  6725. "type": "string",
  6726. "format": "date-time",
  6727. "x-go-name": "Timestamp"
  6728. },
  6729. "url": {
  6730. "type": "string",
  6731. "x-go-name": "URL"
  6732. },
  6733. "verification": {
  6734. "$ref": "#/definitions/PayloadCommitVerification"
  6735. }
  6736. },
  6737. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6738. },
  6739. "PayloadCommitVerification": {
  6740. "description": "PayloadCommitVerification represents the GPG verification of a commit",
  6741. "type": "object",
  6742. "properties": {
  6743. "payload": {
  6744. "type": "string",
  6745. "x-go-name": "Payload"
  6746. },
  6747. "reason": {
  6748. "type": "string",
  6749. "x-go-name": "Reason"
  6750. },
  6751. "signature": {
  6752. "type": "string",
  6753. "x-go-name": "Signature"
  6754. },
  6755. "verified": {
  6756. "type": "boolean",
  6757. "x-go-name": "Verified"
  6758. }
  6759. },
  6760. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6761. },
  6762. "PayloadUser": {
  6763. "description": "PayloadUser represents the author or committer of a commit",
  6764. "type": "object",
  6765. "properties": {
  6766. "email": {
  6767. "type": "string",
  6768. "format": "email",
  6769. "x-go-name": "Email"
  6770. },
  6771. "name": {
  6772. "description": "Full name of the commit author",
  6773. "type": "string",
  6774. "x-go-name": "Name"
  6775. },
  6776. "username": {
  6777. "type": "string",
  6778. "x-go-name": "UserName"
  6779. }
  6780. },
  6781. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6782. },
  6783. "Permission": {
  6784. "description": "Permission represents a set of permissions",
  6785. "type": "object",
  6786. "properties": {
  6787. "admin": {
  6788. "type": "boolean",
  6789. "x-go-name": "Admin"
  6790. },
  6791. "pull": {
  6792. "type": "boolean",
  6793. "x-go-name": "Pull"
  6794. },
  6795. "push": {
  6796. "type": "boolean",
  6797. "x-go-name": "Push"
  6798. }
  6799. },
  6800. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6801. },
  6802. "PublicKey": {
  6803. "description": "PublicKey publickey is a user key to push code to repository",
  6804. "type": "object",
  6805. "properties": {
  6806. "created_at": {
  6807. "type": "string",
  6808. "format": "date-time",
  6809. "x-go-name": "Created"
  6810. },
  6811. "fingerprint": {
  6812. "type": "string",
  6813. "x-go-name": "Fingerprint"
  6814. },
  6815. "id": {
  6816. "type": "integer",
  6817. "format": "int64",
  6818. "x-go-name": "ID"
  6819. },
  6820. "key": {
  6821. "type": "string",
  6822. "x-go-name": "Key"
  6823. },
  6824. "title": {
  6825. "type": "string",
  6826. "x-go-name": "Title"
  6827. },
  6828. "url": {
  6829. "type": "string",
  6830. "x-go-name": "URL"
  6831. }
  6832. },
  6833. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6834. },
  6835. "PullRequest": {
  6836. "description": "PullRequest represents a pull request",
  6837. "type": "object",
  6838. "properties": {
  6839. "assignee": {
  6840. "$ref": "#/definitions/User"
  6841. },
  6842. "assignees": {
  6843. "type": "array",
  6844. "items": {
  6845. "$ref": "#/definitions/User"
  6846. },
  6847. "x-go-name": "Assignees"
  6848. },
  6849. "base": {
  6850. "$ref": "#/definitions/PRBranchInfo"
  6851. },
  6852. "body": {
  6853. "type": "string",
  6854. "x-go-name": "Body"
  6855. },
  6856. "closed_at": {
  6857. "type": "string",
  6858. "format": "date-time",
  6859. "x-go-name": "Closed"
  6860. },
  6861. "comments": {
  6862. "type": "integer",
  6863. "format": "int64",
  6864. "x-go-name": "Comments"
  6865. },
  6866. "created_at": {
  6867. "type": "string",
  6868. "format": "date-time",
  6869. "x-go-name": "Created"
  6870. },
  6871. "diff_url": {
  6872. "type": "string",
  6873. "x-go-name": "DiffURL"
  6874. },
  6875. "due_date": {
  6876. "type": "string",
  6877. "format": "date-time",
  6878. "x-go-name": "Deadline"
  6879. },
  6880. "head": {
  6881. "$ref": "#/definitions/PRBranchInfo"
  6882. },
  6883. "html_url": {
  6884. "type": "string",
  6885. "x-go-name": "HTMLURL"
  6886. },
  6887. "id": {
  6888. "type": "integer",
  6889. "format": "int64",
  6890. "x-go-name": "ID"
  6891. },
  6892. "labels": {
  6893. "type": "array",
  6894. "items": {
  6895. "$ref": "#/definitions/Label"
  6896. },
  6897. "x-go-name": "Labels"
  6898. },
  6899. "merge_base": {
  6900. "type": "string",
  6901. "x-go-name": "MergeBase"
  6902. },
  6903. "merge_commit_sha": {
  6904. "type": "string",
  6905. "x-go-name": "MergedCommitID"
  6906. },
  6907. "mergeable": {
  6908. "type": "boolean",
  6909. "x-go-name": "Mergeable"
  6910. },
  6911. "merged": {
  6912. "type": "boolean",
  6913. "x-go-name": "HasMerged"
  6914. },
  6915. "merged_at": {
  6916. "type": "string",
  6917. "format": "date-time",
  6918. "x-go-name": "Merged"
  6919. },
  6920. "merged_by": {
  6921. "$ref": "#/definitions/User"
  6922. },
  6923. "milestone": {
  6924. "$ref": "#/definitions/Milestone"
  6925. },
  6926. "number": {
  6927. "type": "integer",
  6928. "format": "int64",
  6929. "x-go-name": "Index"
  6930. },
  6931. "patch_url": {
  6932. "type": "string",
  6933. "x-go-name": "PatchURL"
  6934. },
  6935. "state": {
  6936. "$ref": "#/definitions/StateType"
  6937. },
  6938. "title": {
  6939. "type": "string",
  6940. "x-go-name": "Title"
  6941. },
  6942. "updated_at": {
  6943. "type": "string",
  6944. "format": "date-time",
  6945. "x-go-name": "Updated"
  6946. },
  6947. "url": {
  6948. "type": "string",
  6949. "x-go-name": "URL"
  6950. },
  6951. "user": {
  6952. "$ref": "#/definitions/User"
  6953. }
  6954. },
  6955. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6956. },
  6957. "PullRequestMeta": {
  6958. "description": "PullRequestMeta PR info if an issue is a PR",
  6959. "type": "object",
  6960. "properties": {
  6961. "merged": {
  6962. "type": "boolean",
  6963. "x-go-name": "HasMerged"
  6964. },
  6965. "merged_at": {
  6966. "type": "string",
  6967. "format": "date-time",
  6968. "x-go-name": "Merged"
  6969. }
  6970. },
  6971. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  6972. },
  6973. "Release": {
  6974. "description": "Release represents a repository release",
  6975. "type": "object",
  6976. "properties": {
  6977. "assets": {
  6978. "type": "array",
  6979. "items": {
  6980. "$ref": "#/definitions/Attachment"
  6981. },
  6982. "x-go-name": "Attachments"
  6983. },
  6984. "author": {
  6985. "$ref": "#/definitions/User"
  6986. },
  6987. "body": {
  6988. "type": "string",
  6989. "x-go-name": "Note"
  6990. },
  6991. "created_at": {
  6992. "type": "string",
  6993. "format": "date-time",
  6994. "x-go-name": "CreatedAt"
  6995. },
  6996. "draft": {
  6997. "type": "boolean",
  6998. "x-go-name": "IsDraft"
  6999. },
  7000. "id": {
  7001. "type": "integer",
  7002. "format": "int64",
  7003. "x-go-name": "ID"
  7004. },
  7005. "name": {
  7006. "type": "string",
  7007. "x-go-name": "Title"
  7008. },
  7009. "prerelease": {
  7010. "type": "boolean",
  7011. "x-go-name": "IsPrerelease"
  7012. },
  7013. "published_at": {
  7014. "type": "string",
  7015. "format": "date-time",
  7016. "x-go-name": "PublishedAt"
  7017. },
  7018. "tag_name": {
  7019. "type": "string",
  7020. "x-go-name": "TagName"
  7021. },
  7022. "tarball_url": {
  7023. "type": "string",
  7024. "x-go-name": "TarURL"
  7025. },
  7026. "target_commitish": {
  7027. "type": "string",
  7028. "x-go-name": "Target"
  7029. },
  7030. "url": {
  7031. "type": "string",
  7032. "x-go-name": "URL"
  7033. },
  7034. "zipball_url": {
  7035. "type": "string",
  7036. "x-go-name": "ZipURL"
  7037. }
  7038. },
  7039. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7040. },
  7041. "Repository": {
  7042. "description": "Repository represents a repository",
  7043. "type": "object",
  7044. "properties": {
  7045. "clone_url": {
  7046. "type": "string",
  7047. "x-go-name": "CloneURL"
  7048. },
  7049. "created_at": {
  7050. "type": "string",
  7051. "format": "date-time",
  7052. "x-go-name": "Created"
  7053. },
  7054. "default_branch": {
  7055. "type": "string",
  7056. "x-go-name": "DefaultBranch"
  7057. },
  7058. "description": {
  7059. "type": "string",
  7060. "x-go-name": "Description"
  7061. },
  7062. "empty": {
  7063. "type": "boolean",
  7064. "x-go-name": "Empty"
  7065. },
  7066. "fork": {
  7067. "type": "boolean",
  7068. "x-go-name": "Fork"
  7069. },
  7070. "forks_count": {
  7071. "type": "integer",
  7072. "format": "int64",
  7073. "x-go-name": "Forks"
  7074. },
  7075. "full_name": {
  7076. "type": "string",
  7077. "x-go-name": "FullName"
  7078. },
  7079. "html_url": {
  7080. "type": "string",
  7081. "x-go-name": "HTMLURL"
  7082. },
  7083. "id": {
  7084. "type": "integer",
  7085. "format": "int64",
  7086. "x-go-name": "ID"
  7087. },
  7088. "mirror": {
  7089. "type": "boolean",
  7090. "x-go-name": "Mirror"
  7091. },
  7092. "name": {
  7093. "type": "string",
  7094. "x-go-name": "Name"
  7095. },
  7096. "open_issues_count": {
  7097. "type": "integer",
  7098. "format": "int64",
  7099. "x-go-name": "OpenIssues"
  7100. },
  7101. "owner": {
  7102. "$ref": "#/definitions/User"
  7103. },
  7104. "parent": {
  7105. "$ref": "#/definitions/Repository"
  7106. },
  7107. "permissions": {
  7108. "$ref": "#/definitions/Permission"
  7109. },
  7110. "private": {
  7111. "type": "boolean",
  7112. "x-go-name": "Private"
  7113. },
  7114. "size": {
  7115. "type": "integer",
  7116. "format": "int64",
  7117. "x-go-name": "Size"
  7118. },
  7119. "ssh_url": {
  7120. "type": "string",
  7121. "x-go-name": "SSHURL"
  7122. },
  7123. "stars_count": {
  7124. "type": "integer",
  7125. "format": "int64",
  7126. "x-go-name": "Stars"
  7127. },
  7128. "updated_at": {
  7129. "type": "string",
  7130. "format": "date-time",
  7131. "x-go-name": "Updated"
  7132. },
  7133. "watchers_count": {
  7134. "type": "integer",
  7135. "format": "int64",
  7136. "x-go-name": "Watchers"
  7137. },
  7138. "website": {
  7139. "type": "string",
  7140. "x-go-name": "Website"
  7141. }
  7142. },
  7143. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7144. },
  7145. "SearchResults": {
  7146. "description": "SearchResults results of a successful search",
  7147. "type": "object",
  7148. "properties": {
  7149. "data": {
  7150. "type": "array",
  7151. "items": {
  7152. "$ref": "#/definitions/Repository"
  7153. },
  7154. "x-go-name": "Data"
  7155. },
  7156. "ok": {
  7157. "type": "boolean",
  7158. "x-go-name": "OK"
  7159. }
  7160. },
  7161. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7162. },
  7163. "ServerVersion": {
  7164. "description": "ServerVersion wraps the version of the server",
  7165. "type": "object",
  7166. "properties": {
  7167. "version": {
  7168. "type": "string",
  7169. "x-go-name": "Version"
  7170. }
  7171. },
  7172. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7173. },
  7174. "StateType": {
  7175. "description": "StateType issue state type",
  7176. "type": "string",
  7177. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7178. },
  7179. "Status": {
  7180. "description": "Status holds a single Status of a single Commit",
  7181. "type": "object",
  7182. "properties": {
  7183. "context": {
  7184. "type": "string",
  7185. "x-go-name": "Context"
  7186. },
  7187. "created_at": {
  7188. "type": "string",
  7189. "format": "date-time",
  7190. "x-go-name": "Created"
  7191. },
  7192. "creator": {
  7193. "$ref": "#/definitions/User"
  7194. },
  7195. "description": {
  7196. "type": "string",
  7197. "x-go-name": "Description"
  7198. },
  7199. "id": {
  7200. "type": "integer",
  7201. "format": "int64",
  7202. "x-go-name": "ID"
  7203. },
  7204. "status": {
  7205. "$ref": "#/definitions/StatusState"
  7206. },
  7207. "target_url": {
  7208. "type": "string",
  7209. "x-go-name": "TargetURL"
  7210. },
  7211. "updated_at": {
  7212. "type": "string",
  7213. "format": "date-time",
  7214. "x-go-name": "Updated"
  7215. },
  7216. "url": {
  7217. "type": "string",
  7218. "x-go-name": "URL"
  7219. }
  7220. },
  7221. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7222. },
  7223. "StatusState": {
  7224. "description": "StatusState holds the state of a Status\nIt can be \"pending\", \"success\", \"error\", \"failure\", and \"warning\"",
  7225. "type": "string",
  7226. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7227. },
  7228. "Team": {
  7229. "description": "Team represents a team in an organization",
  7230. "type": "object",
  7231. "properties": {
  7232. "description": {
  7233. "type": "string",
  7234. "x-go-name": "Description"
  7235. },
  7236. "id": {
  7237. "type": "integer",
  7238. "format": "int64",
  7239. "x-go-name": "ID"
  7240. },
  7241. "name": {
  7242. "type": "string",
  7243. "x-go-name": "Name"
  7244. },
  7245. "permission": {
  7246. "type": "string",
  7247. "enum": [
  7248. "none",
  7249. "read",
  7250. "write",
  7251. "admin",
  7252. "owner"
  7253. ],
  7254. "x-go-name": "Permission"
  7255. }
  7256. },
  7257. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7258. },
  7259. "TrackedTime": {
  7260. "description": "TrackedTime worked time for an issue / pr",
  7261. "type": "object",
  7262. "properties": {
  7263. "created": {
  7264. "type": "string",
  7265. "format": "date-time",
  7266. "x-go-name": "Created"
  7267. },
  7268. "id": {
  7269. "type": "integer",
  7270. "format": "int64",
  7271. "x-go-name": "ID"
  7272. },
  7273. "issue_id": {
  7274. "type": "integer",
  7275. "format": "int64",
  7276. "x-go-name": "IssueID"
  7277. },
  7278. "time": {
  7279. "description": "Time in seconds",
  7280. "type": "integer",
  7281. "format": "int64",
  7282. "x-go-name": "Time"
  7283. },
  7284. "user_id": {
  7285. "type": "integer",
  7286. "format": "int64",
  7287. "x-go-name": "UserID"
  7288. }
  7289. },
  7290. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7291. },
  7292. "User": {
  7293. "description": "User represents a user",
  7294. "type": "object",
  7295. "properties": {
  7296. "avatar_url": {
  7297. "description": "URL to the user's avatar",
  7298. "type": "string",
  7299. "x-go-name": "AvatarURL"
  7300. },
  7301. "email": {
  7302. "type": "string",
  7303. "format": "email",
  7304. "x-go-name": "Email"
  7305. },
  7306. "full_name": {
  7307. "description": "the user's full name",
  7308. "type": "string",
  7309. "x-go-name": "FullName"
  7310. },
  7311. "id": {
  7312. "description": "the user's id",
  7313. "type": "integer",
  7314. "format": "int64",
  7315. "x-go-name": "ID"
  7316. },
  7317. "language": {
  7318. "description": "User locale",
  7319. "type": "string",
  7320. "x-go-name": "Language"
  7321. },
  7322. "login": {
  7323. "description": "the user's username",
  7324. "type": "string",
  7325. "x-go-name": "UserName"
  7326. }
  7327. },
  7328. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7329. },
  7330. "WatchInfo": {
  7331. "description": "WatchInfo represents an API watch status of one repository",
  7332. "type": "object",
  7333. "properties": {
  7334. "created_at": {
  7335. "type": "string",
  7336. "format": "date-time",
  7337. "x-go-name": "CreatedAt"
  7338. },
  7339. "ignored": {
  7340. "type": "boolean",
  7341. "x-go-name": "Ignored"
  7342. },
  7343. "reason": {
  7344. "type": "object",
  7345. "x-go-name": "Reason"
  7346. },
  7347. "repository_url": {
  7348. "type": "string",
  7349. "x-go-name": "RepositoryURL"
  7350. },
  7351. "subscribed": {
  7352. "type": "boolean",
  7353. "x-go-name": "Subscribed"
  7354. },
  7355. "url": {
  7356. "type": "string",
  7357. "x-go-name": "URL"
  7358. }
  7359. },
  7360. "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
  7361. }
  7362. },
  7363. "responses": {
  7364. "AccessToken": {
  7365. "description": "AccessToken represents a API access token.",
  7366. "headers": {
  7367. "name": {
  7368. "type": "string"
  7369. },
  7370. "sha1": {
  7371. "type": "string"
  7372. }
  7373. }
  7374. },
  7375. "AccessTokenList": {
  7376. "description": "AccessTokenList represents a list of API access token."
  7377. },
  7378. "Attachment": {
  7379. "schema": {
  7380. "$ref": "#/definitions/Attachment"
  7381. }
  7382. },
  7383. "AttachmentList": {
  7384. "schema": {
  7385. "type": "array",
  7386. "items": {
  7387. "$ref": "#/definitions/Attachment"
  7388. }
  7389. }
  7390. },
  7391. "Branch": {
  7392. "schema": {
  7393. "$ref": "#/definitions/Branch"
  7394. }
  7395. },
  7396. "BranchList": {
  7397. "schema": {
  7398. "type": "array",
  7399. "items": {
  7400. "$ref": "#/definitions/Branch"
  7401. }
  7402. }
  7403. },
  7404. "Comment": {
  7405. "schema": {
  7406. "$ref": "#/definitions/Comment"
  7407. }
  7408. },
  7409. "CommentList": {
  7410. "schema": {
  7411. "type": "array",
  7412. "items": {
  7413. "$ref": "#/definitions/Comment"
  7414. }
  7415. }
  7416. },
  7417. "DeployKey": {
  7418. "schema": {
  7419. "$ref": "#/definitions/DeployKey"
  7420. }
  7421. },
  7422. "DeployKeyList": {
  7423. "schema": {
  7424. "type": "array",
  7425. "items": {
  7426. "$ref": "#/definitions/DeployKey"
  7427. }
  7428. }
  7429. },
  7430. "EmailList": {
  7431. "schema": {
  7432. "type": "array",
  7433. "items": {
  7434. "$ref": "#/definitions/Email"
  7435. }
  7436. }
  7437. },
  7438. "GPGKey": {
  7439. "schema": {
  7440. "$ref": "#/definitions/GPGKey"
  7441. }
  7442. },
  7443. "GPGKeyList": {
  7444. "schema": {
  7445. "type": "array",
  7446. "items": {
  7447. "$ref": "#/definitions/GPGKey"
  7448. }
  7449. }
  7450. },
  7451. "Hook": {
  7452. "schema": {
  7453. "type": "array",
  7454. "items": {
  7455. "$ref": "#/definitions/Branch"
  7456. }
  7457. }
  7458. },
  7459. "HookList": {
  7460. "schema": {
  7461. "type": "array",
  7462. "items": {
  7463. "$ref": "#/definitions/Branch"
  7464. }
  7465. }
  7466. },
  7467. "Issue": {
  7468. "schema": {
  7469. "$ref": "#/definitions/Issue"
  7470. }
  7471. },
  7472. "IssueList": {
  7473. "schema": {
  7474. "type": "array",
  7475. "items": {
  7476. "$ref": "#/definitions/Issue"
  7477. }
  7478. }
  7479. },
  7480. "Label": {
  7481. "schema": {
  7482. "$ref": "#/definitions/Label"
  7483. }
  7484. },
  7485. "LabelList": {
  7486. "schema": {
  7487. "type": "array",
  7488. "items": {
  7489. "$ref": "#/definitions/Label"
  7490. }
  7491. }
  7492. },
  7493. "MarkdownRender": {
  7494. "description": "MarkdownRender is a rendered markdown document"
  7495. },
  7496. "Milestone": {
  7497. "schema": {
  7498. "$ref": "#/definitions/Milestone"
  7499. }
  7500. },
  7501. "MilestoneList": {
  7502. "schema": {
  7503. "type": "array",
  7504. "items": {
  7505. "$ref": "#/definitions/Milestone"
  7506. }
  7507. }
  7508. },
  7509. "Organization": {
  7510. "schema": {
  7511. "$ref": "#/definitions/Organization"
  7512. }
  7513. },
  7514. "OrganizationList": {
  7515. "schema": {
  7516. "type": "array",
  7517. "items": {
  7518. "$ref": "#/definitions/Organization"
  7519. }
  7520. }
  7521. },
  7522. "PublicKey": {
  7523. "schema": {
  7524. "$ref": "#/definitions/PublicKey"
  7525. }
  7526. },
  7527. "PublicKeyList": {
  7528. "schema": {
  7529. "type": "array",
  7530. "items": {
  7531. "$ref": "#/definitions/PublicKey"
  7532. }
  7533. }
  7534. },
  7535. "PullRequest": {
  7536. "schema": {
  7537. "$ref": "#/definitions/PullRequest"
  7538. }
  7539. },
  7540. "PullRequestList": {
  7541. "schema": {
  7542. "type": "array",
  7543. "items": {
  7544. "$ref": "#/definitions/PullRequest"
  7545. }
  7546. }
  7547. },
  7548. "Release": {
  7549. "schema": {
  7550. "$ref": "#/definitions/Release"
  7551. }
  7552. },
  7553. "ReleaseList": {
  7554. "schema": {
  7555. "type": "array",
  7556. "items": {
  7557. "$ref": "#/definitions/Release"
  7558. }
  7559. }
  7560. },
  7561. "Repository": {
  7562. "schema": {
  7563. "$ref": "#/definitions/Repository"
  7564. }
  7565. },
  7566. "RepositoryList": {
  7567. "schema": {
  7568. "type": "array",
  7569. "items": {
  7570. "$ref": "#/definitions/Repository"
  7571. }
  7572. }
  7573. },
  7574. "SearchResults": {
  7575. "schema": {
  7576. "$ref": "#/definitions/SearchResults"
  7577. },
  7578. "headers": {
  7579. "body": {}
  7580. }
  7581. },
  7582. "ServerVersion": {
  7583. "schema": {
  7584. "$ref": "#/definitions/ServerVersion"
  7585. }
  7586. },
  7587. "Status": {
  7588. "schema": {
  7589. "$ref": "#/definitions/Status"
  7590. }
  7591. },
  7592. "StatusList": {
  7593. "schema": {
  7594. "type": "array",
  7595. "items": {
  7596. "$ref": "#/definitions/Status"
  7597. }
  7598. }
  7599. },
  7600. "Team": {
  7601. "schema": {
  7602. "$ref": "#/definitions/Team"
  7603. }
  7604. },
  7605. "TeamList": {
  7606. "schema": {
  7607. "type": "array",
  7608. "items": {
  7609. "$ref": "#/definitions/Team"
  7610. }
  7611. }
  7612. },
  7613. "TrackedTime": {
  7614. "schema": {
  7615. "$ref": "#/definitions/TrackedTime"
  7616. }
  7617. },
  7618. "TrackedTimeList": {
  7619. "schema": {
  7620. "type": "array",
  7621. "items": {
  7622. "$ref": "#/definitions/TrackedTime"
  7623. }
  7624. }
  7625. },
  7626. "User": {
  7627. "schema": {
  7628. "$ref": "#/definitions/User"
  7629. }
  7630. },
  7631. "UserList": {
  7632. "schema": {
  7633. "type": "array",
  7634. "items": {
  7635. "$ref": "#/definitions/User"
  7636. }
  7637. }
  7638. },
  7639. "WatchInfo": {
  7640. "schema": {
  7641. "$ref": "#/definitions/WatchInfo"
  7642. }
  7643. },
  7644. "empty": {
  7645. "description": "APIEmpty is an empty response"
  7646. },
  7647. "error": {
  7648. "description": "APIError is error format response",
  7649. "headers": {
  7650. "message": {
  7651. "type": "string"
  7652. },
  7653. "url": {
  7654. "type": "string"
  7655. }
  7656. }
  7657. },
  7658. "forbidden": {
  7659. "description": "APIForbiddenError is a forbidden error response",
  7660. "headers": {
  7661. "message": {
  7662. "type": "string"
  7663. },
  7664. "url": {
  7665. "type": "string"
  7666. }
  7667. }
  7668. },
  7669. "notFound": {
  7670. "description": "APINotFound is a not found empty response"
  7671. },
  7672. "parameterBodies": {
  7673. "schema": {
  7674. "$ref": "#/definitions/EditAttachmentOptions"
  7675. },
  7676. "headers": {
  7677. "AddCollaboratorOption": {},
  7678. "AddTimeOption": {},
  7679. "CreateEmailOption": {},
  7680. "CreateForkOption": {},
  7681. "CreateHookOption": {},
  7682. "CreateIssueCommentOption": {},
  7683. "CreateIssueOption": {},
  7684. "CreateKeyOption": {},
  7685. "CreateLabelOption": {},
  7686. "CreateMilestoneOption": {},
  7687. "CreateOrgOption": {},
  7688. "CreatePullRequestOption": {},
  7689. "CreateReleaseOption": {},
  7690. "CreateRepoOption": {},
  7691. "CreateStatusOption": {},
  7692. "CreateTeamOption": {},
  7693. "CreateUserOption": {},
  7694. "DeleteEmailOption": {},
  7695. "EditAttachmentOptions": {},
  7696. "EditHookOption": {},
  7697. "EditIssueCommentOption": {},
  7698. "EditIssueOption": {},
  7699. "EditLabelOption": {},
  7700. "EditMilestoneOption": {},
  7701. "EditOrgOption": {},
  7702. "EditPullRequestOption": {},
  7703. "EditReleaseOption": {},
  7704. "EditTeamOption": {},
  7705. "EditUserOption": {},
  7706. "IssueLabelsOption": {},
  7707. "MarkdownOption": {},
  7708. "MigrateRepoForm": {}
  7709. }
  7710. },
  7711. "redirect": {
  7712. "description": "APIRedirect is a redirect response"
  7713. },
  7714. "validationError": {
  7715. "description": "APIValidationError is error format response related to input validation",
  7716. "headers": {
  7717. "message": {
  7718. "type": "string"
  7719. },
  7720. "url": {
  7721. "type": "string"
  7722. }
  7723. }
  7724. }
  7725. },
  7726. "securityDefinitions": {
  7727. "AccessToken": {
  7728. "type": "apiKey",
  7729. "name": "access_token",
  7730. "in": "query"
  7731. },
  7732. "AuthorizationHeaderToken": {
  7733. "type": "apiKey",
  7734. "name": "Authorization",
  7735. "in": "header"
  7736. },
  7737. "BasicAuth": {
  7738. "type": "basic"
  7739. },
  7740. "Token": {
  7741. "type": "apiKey",
  7742. "name": "token",
  7743. "in": "query"
  7744. }
  7745. },
  7746. "security": [
  7747. {
  7748. "BasicAuth": [
  7749. "[]"
  7750. ]
  7751. },
  7752. {
  7753. "Token": [
  7754. "[]"
  7755. ]
  7756. },
  7757. {
  7758. "AccessToken": [
  7759. "[]"
  7760. ]
  7761. },
  7762. {
  7763. "AuthorizationHeaderToken": [
  7764. "[]"
  7765. ]
  7766. }
  7767. ]
  7768. }