bcgov / bcgov/bcdata

Use `GET` over `POST` where possible

Open
#351 0 comments 1 reaction 0 assignees View on GitHub
considering enhancement wfs
Dominant language
R
Stars
87
Forks
14
PR merge metrics
No merged PRs in 30d

Description

we use POST because we use the spatial filtering features of WFS and allow a user to subset a layer by uploading a feature and using the WFS spatial predicates (INTERSECTS, WITHIN, etc). Sometimes this upload is bigger than can be supplied via query parameter in GET so we use POST and add the feature to the request body.

However, there are lots of requests that don't require POST, and we've had various issues with POST requests (eg. #348), so it may be a good idea to use GET except when we are doing a spatial filter.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.