POST /v4/products/stream
(Last updated: 20/12/2024)
This endpoint works the same as POST /v4/products/query except there is no pagination.
All results are returned immediately.
Request
Method
POST
URL
https://api.medipim.fr/v4/products/stream
Headers
Body
filter
: see POST /v4/products/query (required)sorting
: see POST /v4/products/query (required)
Response
Body
Each line of the response contains a single result. The response should be read line by line, and each line JSON decoded separately. Each line ends with a newline character (`\n`).
Each succesful result is formatted like this:
{"meta": {"total": 2, "index": 0}, "result": {"id": 1, ...}}
{"meta": {"total": 2, "index": 1}, "result": {"id": 2, ...}}
-
meta
:total
: Total number of results. (integer)index
: Index of this result in the entire resultset. (integer)
-
result
:id
, ...: product information (same as products query results)
If no results are found matching the filter, the response will have status 204 (= no content).