Skip to content

Commit

Permalink
try forcing GET
Browse files Browse the repository at this point in the history
  • Loading branch information
james-jdgtl committed Jul 24, 2024
1 parent 68ff845 commit 3ff1cd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/get-sc-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ else
fi

http_sc() {
echo "Command is http --debug ${SC_HTTPIE_OPTS[@]} ${SC_API_ENDPOINT}/$@"
http --debug "${SC_HTTPIE_OPTS[@]}" "${SC_API_ENDPOINT}/$@"
# echo "Command is http --debug ${SC_HTTPIE_OPTS[@]} ${SC_API_ENDPOINT}/$@"
http "${SC_HTTPIE_OPTS[@]}" "${SC_API_ENDPOINT}/$@"
}

echo "COMPONENT_NAME is ${COMPONENT_NAME}" >&2

#COMPONENT_SETTINGS=$(http_sc "components?filters[name][\$eq]=${COMPONENT_NAME}&populate=*")
COMPONENT_SETTINGS=$(http_sc "components?filters[name][\$eq]=${COMPONENT_NAME}&populate[0]=product&populate[1]=environments")
COMPONENT_SETTINGS=$(http_sc GET "components?filters[name][\$eq]=${COMPONENT_NAME}&populate[0]=product&populate[1]=environments")

if [ $(echo $COMPONENT_SETTINGS | jq ".meta.pagination.total") -eq 0 ]
then
Expand Down

0 comments on commit 3ff1cd4

Please sign in to comment.