From aff02c2b9ab7a845b7e31f01bbe1f466c6a7571a Mon Sep 17 00:00:00 2001 From: Janus Troelsen Date: Fri, 22 Nov 2024 22:16:26 +0100 Subject: [PATCH] Detailed doc string on /package/{name}.json --- src/Distribution/Server/Features/PackageInfoJSON.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Distribution/Server/Features/PackageInfoJSON.hs b/src/Distribution/Server/Features/PackageInfoJSON.hs index 3daf2f1ef..ceabedefd 100644 --- a/src/Distribution/Server/Features/PackageInfoJSON.hs +++ b/src/Distribution/Server/Features/PackageInfoJSON.hs @@ -85,7 +85,9 @@ initPackageInfoJSONFeature env = do return $ \core preferred -> do let coreR = coreResource core - info = "Get basic package information" + info = "Get basic package information: \ + \The response contains a JSON object where the keys are version numbers as strings, \ + \and the values are whether the version is preferred or not" vInfo = "Get basic package information at a specific metadata revision" jsonResources = [