News for hackers. Stuff that matters.
Re:An Introduction to APIs by jstx1 on Sunday July 30, 2023 @02:05PM (#36934128)
And also what if you have a huge nested query which is only reading the database but is difficult to pack into URL parmeters (too long for example and you hit a character limit)? POST with a json body instead of GET even though it's against RESTful principles?
Re:An Introduction to APIs by robertlagrant on Sunday July 30, 2023 @08:12PM (#36937448)
This is one acceptable workaround. Generally having caching at this point is unnecessary, and it's probably a good idea or developers to pay special attention if doing this.

If you have a longer-running query you could alternatively construct a Query resource of some sort and then GET it until it's ready.