There is an undocumented API that will validate an API bundle for an API proxy but not upload the bundle. It has the form:
curl -X POST -u uName:pWord -F "file=@proxyBundle.zip" "https://api.enterprise.apigee.com/v1/organizations/{orgName}/apis/{apiName}/revisions/1"
It does not create a new revision either, it just validates the bundle.
Is this a supported API that should be added to the doc?
Stephen
Solved! Go to Solution.
The API above actually does an import, so it is not the correct API to use to validate an API bundle.
The API to use is:
curl -v -X POST -u uName:pWord -F "file=@proxyBundle.zip" "https://api.enterprise.apigee.com/v1/organizations/{orgName}/apis?name={apiName}&action=validate"
Thanks @arghya das.
Stephen
After working with engineering, I have added the following API to the doc: Update API Proxy Revision.
Here is the description:
Uploads a ZIP-formatted API proxy configuration bundle from a local machine to an existing revision of an API proxy.
Caution: Do not use this API if the API proxy is deployed in multiple environments. If the API is deployed in multiple environments, then use the Edge UI to update it.
Stephen
Even maven plugin is using this API
The API above actually does an import, so it is not the correct API to use to validate an API bundle.
The API to use is:
curl -v -X POST -u uName:pWord -F "file=@proxyBundle.zip" "https://api.enterprise.apigee.com/v1/organizations/{orgName}/apis?name={apiName}&action=validate"
Thanks @arghya das.
Stephen
@sgilson What about the API that you mentioned in the question? Can we document that as well?
That API is to update an activated revision.
No - the recommendation is still to not doc or use that API.
After working with engineering, I have added the following API to the doc: Update API Proxy Revision.
Here is the description:
Uploads a ZIP-formatted API proxy configuration bundle from a local machine to an existing revision of an API proxy.
Caution: Do not use this API if the API proxy is deployed in multiple environments. If the API is deployed in multiple environments, then use the Edge UI to update it.
Stephen
User | Count |
---|---|
3 | |
2 | |
1 | |
1 | |
1 |