'GET /api/forms
Displays a collection (list) of forms.'

@web.expose_api
def index(self, trans, **kwd):

    if (not trans.user_is_admin()):
        trans.response.status = 403
        return 'You    are    not    authorized    to    view    the    list    of    forms.'
    query = trans.sa_session.query(trans.app.model.FormDefinition)
    rval = []
    for form_definition in query:
        item = form_definition.to_dict(value_mapper={'id': trans.security.encode_id, 'form_definition_current_id': trans.security.encode_id})
        item['url'] = url_for('form', id=trans.security.encode_id(form_definition.id))
        rval.append(item)
    return rval
