QubitProducts / bamboo

HAProxy auto configuration and auto service discovery for Mesos Marathon
Apache License 2.0
793 stars 214 forks source link

Delete REST API not working #157

Closed rayjohnson closed 8 years ago

rayjohnson commented 9 years ago

The delete API doesn't appear to work. When doing something like this: curl -i -X DELETE http://marathon1.np.wc1.yellowpages.com:8081/api/services//test-bamboo-prod

I am getting an error like: 405 Http method DELETE is not supported by this URL

I'm calling other APIs and they all seem to work. Just the delete is not.

Any ideas?

Ray

j1n6 commented 9 years ago

could you try this (without double // before the marathon ID in the URL)?

curl -i -X DELETE http://marathon1.np.wc1.yellowpages.com:8081/api/services/test-bamboo-prod

j1n6 commented 9 years ago

em, it should work. It might have been a regression bug after refactoring, I flag it as bug for now.

rayjohnson commented 9 years ago

I did try that. Sorry I did not mention that. Also, I think the version of Bamboo we have installed is 0.2.11.7

Ray

On Friday, August 28, 2015, Jing Dong notifications@github.com wrote:

could you try this (without double // before the marathon ID in the URL)?

curl -i -X DELETE http://marathon1.np.wc1.yellowpages.com:8081/api/services/test-bamboo-prod

— Reply to this email directly or view it on GitHub https://github.com/QubitProducts/bamboo/issues/157#issuecomment-135881635 .

j1n6 commented 9 years ago

Do you mean version 0.2.11 or 0.2.7?

This is a release note for 0.2.11 that improves the API URL encoding issue. https://github.com/QubitProducts/bamboo/releases/tag/v0.2.11

j1n6 commented 8 years ago

close for now, I can't seem to reproduce the issue yet.