Make WordPress Core

Opened 7 weeks ago

#63402 new feature request

Query Posts without URL parameters to avoid running into character limit with many filters

Reported by: anghenfil's profile anghenfil Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: REST API Keywords:
Focuses: Cc:

Description

Hey,

currently, the REST API only supports GET requests to query posts. This is fine as long as the query including all filters (e.g. category filters) don't exceed the 2048 char URL character limit. Some servers will report an 500 Internal Server Error if exceeding the limit.

This is problematic, especially when using the exclude category filter which can't be replaced by multiple smaller requests.

There should be an API route to filter posts by body parameters.

Best
anghenfil

Change History (0)

Note: See TracTickets for help on using tickets.