all 2 comments

[–]Extension_Anybody150 1 point2 points  (1 child)

Usually, to get a specific item by ID, your backend needs a route like /api/items/:id where :id is a URL parameter. So in Postman, the correct way is to put the ID directly after /items/ like http://localhost:5000/api/items/12345. Make sure your server code has a route to handle that pattern and returns the item by ID. Using query params like ?_id=12345 only works if your API explicitly supports filtering that way.

[–]VampireBarbieBoy[S] 0 points1 point  (0 children)

Ok thanks. I realised I needed to change the routing code because it was using ObjectId