MCPcopy Index your code
hub / github.com/aptly-dev/aptly / apiPackages

Function apiPackages

api/packages.go:37–41  ·  view source on GitHub ↗

@Summary List Packages @Description **Get list of packages** @Tags Packages @Consume json @Produce json @Param q query string false "search query" @Param format query string false "format: `details` for more detailed information" @Success 200 {array} string "List of packages" @Router /api/packages

(c *gin.Context)

Source from the content-addressed store, hash-verified

35// @Success 200 {array} string "List of packages"
36// @Router /api/packages [get]
37func apiPackages(c *gin.Context) {
38 collectionFactory := context.NewCollectionFactory()
39 collection := collectionFactory.PackageCollection()
40 showPackages(c, collection.AllPackageRefs(), collectionFactory)
41}

Callers

nothing calls this directly

Calls 4

PackageCollectionMethod · 0.95
showPackagesFunction · 0.85
NewCollectionFactoryMethod · 0.80
AllPackageRefsMethod · 0.80

Tested by

no test coverage detected