You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// @Description API verifies that packages actually exist in aptly database and checks constraint that conflicting packages can’t be part of the same local repository.
408
411
// @Tags Repos
409
-
// @Produce json
412
+
// @Param name path string true "Repository name"
410
413
// @Param request body reposPackagesAddDeleteParams true "Parameters"
411
414
// @Param _async query bool false "Run in background and return task object"
// @Description Any package(s) can be removed from a local repository. Package references from a local repository can be retrieved with GET /api/repos/:name/packages.
428
432
// @Tags Repos
429
-
// @Produce json
430
-
// @Param request body reposPackagesAddDeleteParams true "Parameters"
433
+
// @Param name path string true "Repository name"
431
434
// @Param _async query bool false "Run in background and return task object"
435
+
// @Consume json
436
+
// @Param request body reposPackagesAddDeleteParams true "Parameters"
437
+
// @Produce json
432
438
// @Success 200 {object} string "msg"
433
439
// @Failure 400 {object} Error "Bad Request"
434
440
// @Failure 404 {object} Error "Not Found"
@@ -608,8 +614,8 @@ type reposCopyPackageParams struct {
608
614
// @Description Copies a package from a source to destination repository
609
615
// @Tags Repos
610
616
// @Produce json
611
-
// @Param name path string true "Source repo"
612
-
// @Param src path string true "Destination repo"
617
+
// @Param name path string true "Destination repo"
618
+
// @Param src path string true "Source repo"
613
619
// @Param file path string true "File/packages to copy"
614
620
// @Param _async query bool false "Run in background and return task object"
// @Description Allows automatic processing of .changes file controlling package upload (uploaded using File Upload API) to the local repository. i.e. Exposes repo include command in api.
764
770
// @Tags Repos
765
-
// @Produce json
771
+
// @Param name path string true "Repository name"
772
+
// @Param dir path string true "Directory of packages"
773
+
// @Param file path string true "File/packages to include"
766
774
// @Param forceReplace query int false "when value is set to 1, when adding package that conflicts with existing package, remove existing package"
767
775
// @Param noRemoveFiles query int false "when value is set to 1, don’t remove files that have been imported successfully into repository"
768
776
// @Param acceptUnsigned query int false "when value is set to 1, accept unsigned .changes files"
769
777
// @Param ignoreSignature query int false "when value is set to 1 disable verification of .changes file signature"
770
778
// @Param _async query bool false "Run in background and return task object"
@@ -784,12 +793,14 @@ type reposIncludePackageFromDirResponse struct {
784
793
// @Summary Include Directory
785
794
// @Description Allows automatic processing of .changes file controlling package upload (uploaded using File Upload API) to the local repository. i.e. Exposes repo include command in api.
786
795
// @Tags Repos
787
-
// @Produce json
796
+
// @Param name path string true "Repository name"
797
+
// @Param dir path string true "Directory of packages"
788
798
// @Param forceReplace query int false "when value is set to 1, when adding package that conflicts with existing package, remove existing package"
789
799
// @Param noRemoveFiles query int false "when value is set to 1, don’t remove files that have been imported successfully into repository"
790
800
// @Param acceptUnsigned query int false "when value is set to 1, accept unsigned .changes files"
791
801
// @Param ignoreSignature query int false "when value is set to 1 disable verification of .changes file signature"
792
802
// @Param _async query bool false "Run in background and return task object"
0 commit comments