Hello,
is there not a management api /way to export the latest version by default.
Export managment api expects revision number in the path -
So we have to first get all revisions find the latest an then export that version
Thanks,
Aakash
Solved! Go to Solution.
Hi Akash,
The steps you described are correct. I suggest you wrap this in a little script like:
LATEST_VERSION=$(curl -X GET --header "Authorization: Basic ****" "https://api.enterprise.apigee.com/v1/organizations/ORG/apis/API_NAME/revisions" | jq -r ".[-1]")
Hi Akash,
The steps you described are correct. I suggest you wrap this in a little script like:
LATEST_VERSION=$(curl -X GET --header "Authorization: Basic ****" "https://api.enterprise.apigee.com/v1/organizations/ORG/apis/API_NAME/revisions" | jq -r ".[-1]")
okay thanks Daniel