Why can't I create an API from a web frontend?

Why can't I create an API from a web frontend?

hoannguyen02
Shopify Partner
23 2 2

Hi team, 

I am using cli to generate extension it works, however when I try to get products on web frontend by changing 

 

/api/products/count

 to 

/api/products

 

 The error is 

 

No shop provided

 

 

Could you help?

Thank you very much

 

hoannguyen02_2-1692156135287.png

hoannguyen02_3-1692156150490.png

 

hoannguyen02_0-1692155864055.png

hoannguyen02_1-1692155895529.png

Replies 0 (0)