I added a v1/health_check
endpoint to my service running on Openshift. The endpoint accepts all http verbs and returns what was in the request.
For example, running:
curl -X DELETE -G 'http://localhost:8080/v1/health_check' -F "user_id=1" -F "build_category_id=14" -F "notification_type=slack"
against the service when it is running locally returns:
{
"endpoint": "/v1/health_check",
"form_data": {
"build_category_id": "14",
"notification_type": "slack",
"user_id": "1"
},
"http_method": "DELETE",
"request_data": {}
}
When I use the same curl request against the service when it is running on Openshift, I get:
{
"endpoint": "/v1/health_check",
"form_data": {},
"http_method": "DELETE",
"request_data": {}
}
Does anyone have any ideas why the body of the DELETE
methods are getting lost in Openshift?
Other notes:
- It's a flask service using
gevent.wsgi
WSGIServer
- I also acknowledge after some research that this isn't the most RESTful approach, especially after reading Is an entity body allowed for an HTTP DELETE request?
- When I rsh onto the Openshift pod and curl the service, the endpoint works as expected, meaning the entity body goes through.