From 76939cced1e78b790eec9f81e2550eb4bfb5beb7 Mon Sep 17 00:00:00 2001
From: Alejandro Marco <78371908+amalej@users.noreply.github.com>
Date: Tue, 1 Oct 2024 02:13:22 +0800
Subject: [PATCH] Update download-counts.md to correct the endpoint examples
Remove square brackets to correct the API example for downloads counts
---
docs/download-counts.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/download-counts.md b/docs/download-counts.md
index 44af7e6..4573394 100644
--- a/docs/download-counts.md
+++ b/docs/download-counts.md
@@ -17,7 +17,7 @@ during the summer, because the US observes daylight savings but UTC is fixed.
Gets the total downloads for a given period, for all packages or a specific package.
-GET https://api.npmjs.org/downloads/point/{period}[/{package}]
+GET https://api.npmjs.org/downloads/point/{period}/{package}
### Examples
@@ -74,7 +74,7 @@ If you have not specified a package, that key will not be present. The start and
Gets the downloads per day for a given period, for all packages or a specific package.
-GET https://api.npmjs.org/downloads/range/{period}[/{package}]
+GET https://api.npmjs.org/downloads/range/{period}/{package}
### Examples