papinet / papiNet-API

papiNet is a global paper, forest products and bioproducts industry e-Business initiative.
http://www.papinet.org/
Apache License 2.0
9 stars 3 forks source link

Should `POST /.../check-availability` have a request body to filter, e.g. per basisWeight #68

Closed patricekrakow closed 2 months ago

patricekrakow commented 1 year ago

...

patricekrakow commented 1 year ago

Yes, we should do that... Here is a schematic example:

Here is an example:

POST /seller-products/345/check-availability
{
  paper:
    basisWeights: 45
}
200 OK
{
  sellerProductId: 345
  paper:
    basisWeights: 45
  location: BE
  quantity: 1000

  sellerProductId: 345
  paper:
    basisWeights: 45
  location: NL
  quantity: 2000
}
patricekrakow commented 2 months ago

We did not specify any requestBody within the '/seller-products/{sellerProductId}/check-availability'.post or '/customer-articles/{customerArticleId}/check-availability'.post API endpoints when releasing the version 1.3.0.

When should revisit this idea to have requestbody for filtering purpose when we will re-introduce the .../check-availability API endpoints.

I will close this issue for now.