apigee-baas

Apigee rest endpoint path mapping to custom path

做~自己de王妃 提交于 2020-03-05 04:04:27
问题 I have rest end point /admn_resource_manager.I have created a apigee proxy to expose this. I dont want to expose it like this to others as I want something like /adminmanager. Is there any way to map /adminmanager to /admn_resource_manager using Apigee. end user would use http://someurl.apigee/adminmanager instead of http://someurl.apigee/admn_resource_manager I explored KeyValueMapoperation and AssignMessage in Apigee. I am not sure if these are the right option to implement map path.I didn

unable to post file+data using python-requests

女生的网名这么多〃 提交于 2019-12-10 19:22:14
问题 I'm able to post file using curl curl -X POST -i -F name='barca' -F country='spain' -F file=@/home/messi/Desktop/barca.png 'http://localhost:8080/new_org/hel/concerts' Which I can get (file) as curl -X GET -H 'Accept: image/png' 'http://localhost:8080/new_org/hel/concerts/<id or name of entity>' But when I tried same thing using requests.post , I got error. Does anybody know why this happen. (Post Error encounter when file pointer is not at last, but when file pointer is at last, I got