apigee127

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

swagger tools error handler middleware not catching errors

霸气de小男生 提交于 2019-12-04 18:59:17
问题 overview My custom errorHandler middleware is not catching the swagger-tools request validator error. Instead, the swagger tools HTML error is sent back to the client. How can I get my errorHandler middleware to catch the swagger tools validation error and respond to the client accordingly? my prognosis I'm rather clueless unfortunately. No matter where I put the app.use(errorHandler) directive, the swagger tools html error is returned to the client and my errorHandler function never catches

swagger tools error handler middleware not catching errors

冷暖自知 提交于 2019-12-03 12:41:19
overview My custom errorHandler middleware is not catching the swagger-tools request validator error. Instead, the swagger tools HTML error is sent back to the client. How can I get my errorHandler middleware to catch the swagger tools validation error and respond to the client accordingly? my prognosis I'm rather clueless unfortunately. No matter where I put the app.use(errorHandler) directive, the swagger tools html error is returned to the client and my errorHandler function never catches the error. Maybe I'm overlooking something overtly incorrect about my setup. Below is my app.js file