This endpoint should follow the pattern of GET /api/v0/markets and should return ALL markets in the database.
In addition to the market’s main attributes, the market resource should also list an attribute for vendor_count, which is the number of vendors that are associated with that market.
'Setup Factory for market. Set up controller for markets. Created Market Serializer and all_markets method. Added jsonape-serializer GEM. US1 complete.
GET /api/v0/markets
and should return ALL markets in the database.vendor_count
, which is the number of vendors that are associated with that market.