catalogApp.py
def categoryItemsJSON(category_id):
    '''
    Returns JSON objects for all items matching category_id
    '''
    category = session.query(Category).filter_by(id=category_id).one()
    items = session.query(Item).filter_by(
        category_id=category.id).all()
    return jsonify(Items=[i.serialize for i in items])

    Returns JSON objects for all items matching category_id
    
Returns JSON objects for all items matching category_id
Returns JSON objects for all items matching category_id
def categoryItemsJSON(category_id):
    category = session.query(Category).filter_by(id=category_id).one()
    items = session.query(Item).filter_by(
        category_id=category.id).all()
    return jsonify(Items=[i.serialize for i in items])
def categoryItemsJSON ( category_id ) : category = session . query ( Category ) . filter_by ( id = category_id ) . one ( ) items = session . query ( Item ) . filter_by ( category_id = category . id ) . all ( ) return jsonify ( Items = [ i . serialize for i in items ] )
Returns JSON objects for all items matching category_id
Returns JSON objects for all items matching category_id
'''
    Returns JSON objects for all items matching category_id
    '''
category_id