summaryrefslogtreecommitdiff
path: root/rskrf-productGroups.sh
diff options
context:
space:
mode:
authorAleksei <email@email.email>2022-07-14 17:31:47 +0300
committerAleksei <email@email.email>2022-07-14 17:31:47 +0300
commit62d382f913bfdb5f9bf724b91d013e51202f09ef (patch)
treef5c9061d2810d8bcf12645591fe89670708a90ff /rskrf-productGroups.sh
Diffstat (limited to 'rskrf-productGroups.sh')
-rwxr-xr-xrskrf-productGroups.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/rskrf-productGroups.sh b/rskrf-productGroups.sh
new file mode 100755
index 0000000..e835f61
--- /dev/null
+++ b/rskrf-productGroups.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+burl=https://rskrf.ru/rest/1/catalog/categories/
+curl -s $burl | jq -cr '.response[]|.id' |
+ xargs -I '{}' curl -s $burl'{}' |
+ jq -cr '.response[]|.id' |
+ xargs -I '{}' curl -s $burl'{}'/productGroups/ |
+ jq -cr '.response.productGroups[]|[.id,.title]'