'GET /api/forms/{encoded_form_id}
Displays information about a form.'

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

    form_definition_id = id
    try:
        decoded_form_definition_id = trans.security.decode_id(form_definition_id)
    except TypeError:
        trans.response.status = 400
        return ('Malformed    form    definition    id    (    %s    )    specified,    unable    to    decode.' % str(form_definition_id))
    try:
        form_definition = trans.sa_session.query(trans.app.model.FormDefinition).get(decoded_form_definition_id)
    except:
        form_definition = None
    if ((not form_definition) or (not trans.user_is_admin())):
        trans.response.status = 400
        return ('Invalid    form    definition    id    (    %s    )    specified.' % str(form_definition_id))
    item = form_definition.to_dict(view='element', value_mapper={'id': trans.security.encode_id, 'form_definition_current_id': trans.security.encode_id})
    item['url'] = url_for('form', id=form_definition_id)
    return item
