Strapi how get to single product in api tutorial # 5

Strapi how get to single product in api tutorial # 5

In this tutorial we will learn how to get single product via api.

You need to send get request from your api client.

[sourcecode]http://localhost:1337/api/products/:id[/sourcecode]

you need to know id of the product or post
Let suppose id=1 so your reponse should look like this

[sourcecode]http://localhost:1337/api/products/1[/sourcecode]
Let suppose id=22 so your reponse should look like this
[sourcecode]http://localhost:1337/api/products/22[/sourcecode]

and so on..

strapi get single product

strapi get single product

Tony BB
 

TonyBB is a Coach , marketer, hypnotist and a founder of RSKVF Production who specializes in providing simple, affordable, and easy to use solutions for Life.

Click Here to Leave a Comment Below 0 comments

Leave a Reply: