mia-platform / crud-service

A lightweight application to expose restful CRUD API over HTTP interface
https://docs.mia-platform.eu/docs/how_to/crud_service/crud_oss_usage
Apache License 2.0
43 stars 4 forks source link

Add support for QUERY HTTP Method #304

Open fredmaggiowski opened 4 months ago

fredmaggiowski commented 4 months ago

Feature Description

An RFC from IETF has been around for sometime now proposing the QUERY method to help requests with complex queries overcome the HTTP headers limitations: https://www.ietf.org/archive/id/draft-ietf-httpbis-safe-method-w-body-02.html#name-introduction

Since we are experiencing issues with query parameters support for _q, such as (but not limited to):

It would be nice to have a new http method support that allows to provide the desired query via the request body.

Desired solution

The crud service should expose a new API with the QUERY HTTP method, such API would accept a body containing all the queries that are needed, specifically:

For better interface coherence, the API would reject invocations mixing headers and query string parameters

Additional context

Such a feature might help overcoming limitations such as https://github.com/rond-authz/rond/issues/13