to get a personalized navigation.
to get a personalized navigation.
The endpoint for a specific inventoryitem is now returning a list of every single inventory item.
endpoint in postman:
GET: {{baseUrl}}/controller/api/v1/inventory/:inventoryNumber
curl:
Hi,
We are not able to reproduce this:
Okay,
So, I investigated it a bit more and tried a different inventoryItem.
The issue seems to be with this specific inventoryitem i am trying to get. It starts with a # in the inventorynumber.
If i try to get an inventory without # in the beginning, it works fine.
It seems like it ignores everything following # in the request?
example:
It should say 'inventory with number 2#200 could not be found' in this case.
The first error returned with inventorynumber being #200 (which is an inventoryitem that exists).
Hi,
You'll need to encode the inventoryNumber in this case, have a look at this article and try it:
Method for getting resources with reserved characters - B64URL Encoding
Copyright © 2022 Visma.com. All rights reserved.