pacificclimate / scip-backend

Backend that serves salmon population data to the scip webpage
GNU Affero General Public License v3.0
0 stars 0 forks source link

Accept POST requests #9

Closed corviday closed 7 months ago

corviday commented 8 months ago

Sometimes the frontend wants to send a really long WKT string as an overlap parameter - one region selectable by a user clicking in the Fraser watershed is almost ten thousand characters to describe. Overlong URLs are not currently an issue for this backend, but they are an issue for the PCEX backend, because gunicorn imposes a length limit on URLs.

As it is expected to be an easy fix, and as we will probably run this backend in gunicorn eventually, update to accept POST requests so that the front end can use them to send extra-long overlap strings.