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
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
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]")
and then use the version variable for your export call.
okay thanks Daniel