@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)
| 35 | // @Success 200 {array} string "List of packages" |
| 36 | // @Router /api/packages [get] |
| 37 | func apiPackages(c *gin.Context) { |
| 38 | collectionFactory := context.NewCollectionFactory() |
| 39 | collection := collectionFactory.PackageCollection() |
| 40 | showPackages(c, collection.AllPackageRefs(), collectionFactory) |
| 41 | } |
nothing calls this directly
no test coverage detected