I am using python script to deploy
I am using python script to deploy
I am using python script to deploy
@rsekhar , I think script needs to be updated so that it will deploy all proxy end points.. can you point me to the script you are talking about ?
I am using below script to upload my files into apigee
https://api.enterprise.apigee.com/v1/organizations/{org-name}/apis?action=import&name={proxy-name}
and
below url for deploy my proxies
https://api.enterprise.apigee.com/v1/organizations/{org-name}/apis/{api-name}/deploymentsā?action=deploy&env={env}&revision={version-of-proxy}&basepath={base-path}
I import files like below
apiproxy/programs-programs.xml
apiproxy/policies/Response-Cache-1.xml
apiproxy/policies/Invalidate-Cache-1.xml
apiproxy/proxies/programsV1.xml
apiproxy/proxies/default.xml
apiproxy/policies/Verify-API-Key.xml
apiproxy/policies/JSON-Threat-Protection.xml
apiproxy/policies/Auth-Key.xml
apiproxy/policies/Add-Auth-Header.xml
apiproxy/policies/Quota-1.xml
apiproxy/policies/Spike-Arrest.xml
apiproxy/policies/Raise-Fault-1.xml
apiproxy/policies/Regular-Expression-Protection.xml
apiproxy/targets/BOD-Programs-programs-v1-EndPoint.xml
Kindly advise me
I am using Apigee Edge deploy.py script
If you want my script file. kindly tell me
Hi Anil,
Thanks, I resolved my issue and now I able to deploy more than one proxy end points
@rsekhar , Glad to know, Would you like to share the solution with community in a separate thread ? I am sure, It will be helpful for others.
Is it possible to have two basepaths for single proxy without having to create multiple proxy endpoints?
I need this as I donāt want to duplicate the endpoints. The only difference in both the endpoints will be the basepath
My use case is - I am having version as part of basepath and I am extracting the version number using a policy.
I only want to modify the response based on the version, so is it possible to do that using 2 basepaths for the same proxy?
Is it possible to have two basepaths for single proxy without having to create multiple proxy endpoints ? - NO
What do you mean āI need this as I donāt want to duplicate the endpoints.ā ? And why you donāt want to create multiple proxy endpoints in single proxy ?
I am not against creating multiple proxy endpoints but it seems like a lot of duplicate work for a small change. I only want to modify response based on version(version is part of basepath) and if I have multiple proxy endpoints, every time I need to change something in a proxy, I have to change in both the places
Hello, I have a slight variation of this problem.
Over a period of time, my proxy has grown leaps and bounds and has more than 100 APIs. I was wondering if there is a way to better manager this volume with the constraint that we need to keep the basepath still the same. thanks
if you have 100 APIs in one proxy then its a bad code.
You should have made the proxies short and simple.
Having basepath the same is fine till you have minor changes at the backend. Its is suggested to do versioning whenever there is a major change in the backend.
100 APIs is probably way too many, especially if thereās not a lot of shared logic amongst them.
One way you could split your APIs is to create new API proxies with more āspecialisedā basepaths.
Eg: If your original API has /basepath as the basepath and handles /suffix1 and /suffix2 in conditional flows, you could create 2 API proxies, one with basepath /basepath/suffix1, the other with basepath /basepath/suffix2. Your API clients wonāt notice any difference.
If those two suffixes share some common logic, you can factor this out in a shared flow invoked by your new 2 API proxies