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

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