snapshot merge: use proper REST api

- this breaks the existing api, which is only available in CI builds
- improve swagger doc
This commit is contained in:
André Roth
2024-10-03 15:18:13 +02:00
parent 06b2b920da
commit 38ea720fc5
3 changed files with 65 additions and 38 deletions
+1 -1
View File
@@ -200,7 +200,7 @@ func Router(c *ctx.AptlyContext) http.Handler {
api.GET("/snapshots/:name/packages", apiSnapshotsSearchPackages)
api.DELETE("/snapshots/:name", apiSnapshotsDrop)
api.GET("/snapshots/:name/diff/:withSnapshot", apiSnapshotsDiff)
api.POST("/snapshots/merge", apiSnapshotsMerge)
api.POST("/snapshots/:name/merge", apiSnapshotsMerge)
api.POST("/snapshots/:name/pull", apiSnapshotsPull)
}