1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

How to get a specific item from JSON?

Discussão em 'Angular' iniciado por stringempty, Outubro 20, 2024.

  1. stringempty

    stringempty Guest

    I have a collection in a JSON file, when I access it by http://localhost:5000/product/ I see it, but when I try to get a specific product from it, like http://localhost:5000/product/1 I see nothing but [], what could be a possible solution to this?

    I expect the output of http://localhost:5000/product/1 to be { "Id": 1, "name": "Milk", "Quantity": 100, "Unit_coast": 2000 }

    [​IMG]

    [​IMG]

    Continue reading...

Compartilhe esta Página