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.

v1_json.tmpl 228 kB

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