hhff / spree_ams

:floppy_disk: A module for Spree's API that responds as per Active Model Serializers
BSD 3-Clause "New" or "Revised" License
15 stars 35 forks source link

Problem with the products API #25

Closed givanse closed 9 years ago

givanse commented 9 years ago

The following API calls work correctly:

// taxons
http://localhost:3000/api/taxons?token=663b...
http://localhost:3000/api/ams/taxons
// spree products
http://localhost:3000/api/products?token=663b...

But this one does not work as expected:

// ams products
http://localhost:3000/api/ams/products

Returns:

{"products":[],"meta":{"total_pages":0}}

I first tested spree-ember using the sample data provided with rake spree_sample:load, I was able to see all the products in the storefront. Now, without the sample data and by manually adding my own products to the backend is that I saw this behavior.

givanse commented 9 years ago

silly me, didn't make the products available :moyai: