Skip to main content

api_controller_with_fk_template

Function api_controller_with_fk_template 

Source
pub fn api_controller_with_fk_template(
    name: &str,
    snake_name: &str,
    plural_snake: &str,
    form_fields: &str,
    update_fields: &str,
    insert_fields: &str,
    foreign_keys: &[ForeignKeyField],
) -> String
Expand description

Template for generating API-only controller with FK nested data support