Avnish1985 / bitly-api

Automatically exported from code.google.com/p/bitly-api
0 stars 0 forks source link

HTTP 405 Method not allowed with RESTful API #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem (provide an exact http api call where
appropriate)?

Just call the clicks API function through a HTTP POST method and you'll get an 
HTTP 405 status code back.

I've tried with HTTP PUT as well, with same result.

HTTP GET seems to work just fine.

What's peculiar is that until now I've had no problems with HTTP POST for 
calling the various methods (shorten, expand, validate are the ones I've tried)

If this is by design, it'd be great if you'd put it in the ApiDocumentation 
(http://code.google.com/p/bitly-api/wiki/ApiDocumentation)

- Steffen

Original issue reported on code.google.com by ckode...@gmail.com on 6 Aug 2010 at 8:13

GoogleCodeExporter commented 8 years ago
Thanks for reporting this; we'll work on updating the documentation to clarify 
this, and we will look into handling POST across all our API endpoints.

Original comment by jehiah on 7 Aug 2010 at 1:16

GoogleCodeExporter commented 8 years ago
Sounds very nice, thank you :-)

- Steffen

Original comment by ckode...@gmail.com on 8 Aug 2010 at 12:05