Allow POST verb for all REST queries
nixphoeni
Joined: 2010-04-25
Posts: 6 |
Posted: Sun, 2014-02-09 01:42 |
According to http://codex.galleryproject.org/Gallery3:API:REST#Request_Format, it appears you can't use POST to request information. But let's say for efficiency reasons I wanted to request all items. It'd be in a GET request like: Quote:
GET /gallery3/index.php/rest/items?urls=["http://example.com/gallery3/index.php/rest/item/3","http://example.com/gallery3/index.php/rest/item/5",...] That URL could get quite long, which some web servers will not like ("URL too long" error). It would be nice to be able to POST this and set the X-Gallery-Request-Method to "GET". |
|