...
Di seguito la configurazione di services, views, e la lista degli url generati
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
$endpoint = new stdClass();
$endpoint->disabled = FALSE; /* Edit this to true to make a default endpoint disabled initially */
$endpoint->api_version = 3;
$endpoint->name = 'bandoapi';
$endpoint->server = 'rest_server';
$endpoint->path = 'api/v1';
$endpoint->authentication = array();
$endpoint->server_settings = array(
'formatters' => array(
'json' => TRUE,
'bencode' => FALSE,
'jsonp' => FALSE,
'php' => FALSE,
'xml' => FALSE,
),
'parsers' => array(
'application/json' => TRUE,
'application/vnd.php.serialized' => FALSE,
'application/x-www-form-urlencoded' => FALSE,
'application/xml' => FALSE,
'multipart/form-data' => FALSE,
'text/xml' => FALSE,
),
);
$endpoint->resources = array(
'file' => array(
'operations' => array(
'retrieve' => array(
'enabled' => '1',
),
'index' => array(
'enabled' => '1',
),
),
),
'node' => array(
'operations' => array(
'index' => array(
'enabled' => '1',
),
),
),
'system' => array(
'actions' => array(
'connect' => array(
'enabled' => '1',
),
),
),
'taxonomy_term' => array(
'operations' => array(
'retrieve' => array(
'enabled' => '1',
),
'index' => array(
'enabled' => '1',
),
),
),
'taxonomy_vocabulary' => array(
'operations' => array(
'retrieve' => array(
'enabled' => '1',
),
'index' => array(
'enabled' => '1',
),
),
),
'toli-bandi' => array(
'operations' => array(
'index' => array(
'enabled' => '1',
),
),
),
'user' => array(
'operations' => array(
'retrieve' => array(
'enabled' => '1',
),
'index' => array(
'enabled' => '1',
),
),
),
'views' => array(
'operations' => array(
'retrieve' => array(
'enabled' => '1',
),
),
),
);
$endpoint->debug = 0;
|
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
$view = new view();
$view->name = 'bandi_rest_api';
$view->description = 'Esposizione dei bandi degli ultimi 5 anni in rest per migrazione in Drupal 9';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Bandi rest api';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'Bandi rest api';
$handler->display->display_options['use_ajax'] = TRUE;
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'none';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Ripristina';
$handler->display->display_options['exposed_form']['options']['autosubmit'] = TRUE;
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['pager']['options']['items_per_page'] = '5';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['row_options']['inline'] = array(
'title' => 'title',
'field_data_pubblicazione' => 'field_data_pubblicazione',
);
$handler->display->display_options['row_options']['default_field_elements'] = FALSE;
/* Relationship: Contenuto: File del bando (field_file_del_bando:fid) */
$handler->display->display_options['relationships']['field_file_del_bando_fid']['id'] = 'field_file_del_bando_fid';
$handler->display->display_options['relationships']['field_file_del_bando_fid']['table'] = 'field_data_field_file_del_bando';
$handler->display->display_options['relationships']['field_file_del_bando_fid']['field'] = 'field_file_del_bando_fid';
/* Campo: Contenuto: Data pubblicazione */
$handler->display->display_options['fields']['field_data_pubblicazione']['id'] = 'field_data_pubblicazione';
$handler->display->display_options['fields']['field_data_pubblicazione']['table'] = 'field_data_field_data_pubblicazione';
$handler->display->display_options['fields']['field_data_pubblicazione']['field'] = 'field_data_pubblicazione';
$handler->display->display_options['fields']['field_data_pubblicazione']['label'] = 'pubblication_date';
$handler->display->display_options['fields']['field_data_pubblicazione']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_data_pubblicazione']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_data_pubblicazione']['hide_alter_empty'] = FALSE;
$handler->display->display_options['fields']['field_data_pubblicazione']['type'] = 'date_plain';
$handler->display->display_options['fields']['field_data_pubblicazione']['settings'] = array(
'format_type' => 'long',
'fromto' => '',
'multiple_number' => '',
'multiple_from' => '',
'multiple_to' => '',
);
/* Campo: Contenuto: Titolo */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = 'titolo';
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['title']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['title']['hide_alter_empty'] = FALSE;
$handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
/* Campo: Contenuto: Data scadenza */
$handler->display->display_options['fields']['field_data_scadenza']['id'] = 'field_data_scadenza';
$handler->display->display_options['fields']['field_data_scadenza']['table'] = 'field_data_field_data_scadenza';
$handler->display->display_options['fields']['field_data_scadenza']['field'] = 'field_data_scadenza';
$handler->display->display_options['fields']['field_data_scadenza']['label'] = 'end_publication_date';
$handler->display->display_options['fields']['field_data_scadenza']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_data_scadenza']['settings'] = array(
'format_type' => 'long',
'fromto' => 'both',
'multiple_number' => '',
'multiple_from' => '',
'multiple_to' => '',
'show_repeat_rule' => 'show',
);
/* Campo: Contenuto: Orario */
$handler->display->display_options['fields']['field_orario']['id'] = 'field_orario';
$handler->display->display_options['fields']['field_orario']['table'] = 'field_data_field_orario';
$handler->display->display_options['fields']['field_orario']['field'] = 'field_orario';
$handler->display->display_options['fields']['field_orario']['element_label_colon'] = FALSE;
/* Campo: Contenuto: Bando espletato? */
$handler->display->display_options['fields']['field_bando_archiviato']['id'] = 'field_bando_archiviato';
$handler->display->display_options['fields']['field_bando_archiviato']['table'] = 'field_data_field_bando_archiviato';
$handler->display->display_options['fields']['field_bando_archiviato']['field'] = 'field_bando_archiviato';
$handler->display->display_options['fields']['field_bando_archiviato']['label'] = 'Bando_espletato';
$handler->display->display_options['fields']['field_bando_archiviato']['alter']['text'] = 'if ([field_bando_archiviato-value] == 1) \'\'';
$handler->display->display_options['fields']['field_bando_archiviato']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_bando_archiviato']['type'] = 'list_key';
/* Campo: Contenuto: Body */
$handler->display->display_options['fields']['body']['id'] = 'body';
$handler->display->display_options['fields']['body']['table'] = 'field_data_body';
$handler->display->display_options['fields']['body']['field'] = 'body';
$handler->display->display_options['fields']['body']['label'] = 'descrizione';
$handler->display->display_options['fields']['body']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['body']['element_default_classes'] = FALSE;
/* Campo: Contenuto: Pubblicato */
$handler->display->display_options['fields']['status']['id'] = 'status';
$handler->display->display_options['fields']['status']['table'] = 'node';
$handler->display->display_options['fields']['status']['field'] = 'status';
$handler->display->display_options['fields']['status']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['status']['not'] = 0;
/* Campo: Contenuto: Percorso */
$handler->display->display_options['fields']['path_1']['id'] = 'path_1';
$handler->display->display_options['fields']['path_1']['table'] = 'node';
$handler->display->display_options['fields']['path_1']['field'] = 'path';
$handler->display->display_options['fields']['path_1']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['path_1']['element_default_classes'] = FALSE;
/* Campo: File: ID file */
$handler->display->display_options['fields']['fid']['id'] = 'fid';
$handler->display->display_options['fields']['fid']['table'] = 'file_managed';
$handler->display->display_options['fields']['fid']['field'] = 'fid';
/* Campo: File: Nome */
$handler->display->display_options['fields']['filename']['id'] = 'filename';
$handler->display->display_options['fields']['filename']['table'] = 'file_managed';
$handler->display->display_options['fields']['filename']['field'] = 'filename';
/* Campo: File: Percorso */
$handler->display->display_options['fields']['uri']['id'] = 'uri';
$handler->display->display_options['fields']['uri']['table'] = 'file_managed';
$handler->display->display_options['fields']['uri']['field'] = 'uri';
/* Campo: File: Etichetta file */
$handler->display->display_options['fields']['field_etichetta_file']['id'] = 'field_etichetta_file';
$handler->display->display_options['fields']['field_etichetta_file']['table'] = 'field_data_field_etichetta_file';
$handler->display->display_options['fields']['field_etichetta_file']['field'] = 'field_etichetta_file';
$handler->display->display_options['fields']['field_etichetta_file']['relationship'] = 'field_file_del_bando_fid';
$handler->display->display_options['fields']['field_etichetta_file']['element_label_colon'] = FALSE;
/* Campo: Global: Visualizza */
$handler->display->display_options['fields']['view']['id'] = 'view';
$handler->display->display_options['fields']['view']['table'] = 'views';
$handler->display->display_options['fields']['view']['field'] = 'view';
/* Filter criterion: Contenuto: Tipo */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
'bando' => 'bando',
);
/* Filter criterion: Contenuto: Data scadenza (field_data_scadenza) */
$handler->display->display_options['filters']['field_data_scadenza_value']['id'] = 'field_data_scadenza_value';
$handler->display->display_options['filters']['field_data_scadenza_value']['table'] = 'field_data_field_data_scadenza';
$handler->display->display_options['filters']['field_data_scadenza_value']['field'] = 'field_data_scadenza_value';
$handler->display->display_options['filters']['field_data_scadenza_value']['operator'] = '>';
$handler->display->display_options['filters']['field_data_scadenza_value']['default_date'] = 'now -5 year';
/* Display: Bandi */
$handler = $view->new_display('services', 'Bandi', 'bandi');
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['style_options']['default_row_class'] = FALSE;
$handler->display->display_options['style_options']['row_class_special'] = FALSE;
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['row_options']['inline'] = array(
'title' => 'title',
'field_data_pubblicazione' => 'field_data_pubblicazione',
);
$handler->display->display_options['row_options']['default_field_elements'] = FALSE;
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Campo: Contenuto: Data pubblicazione */
$handler->display->display_options['fields']['field_data_pubblicazione']['id'] = 'field_data_pubblicazione';
$handler->display->display_options['fields']['field_data_pubblicazione']['table'] = 'field_data_field_data_pubblicazione';
$handler->display->display_options['fields']['field_data_pubblicazione']['field'] = 'field_data_pubblicazione';
$handler->display->display_options['fields']['field_data_pubblicazione']['label'] = 'pubblication_date';
$handler->display->display_options['fields']['field_data_pubblicazione']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_data_pubblicazione']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_data_pubblicazione']['hide_alter_empty'] = FALSE;
$handler->display->display_options['fields']['field_data_pubblicazione']['type'] = 'date_plain';
$handler->display->display_options['fields']['field_data_pubblicazione']['settings'] = array(
'format_type' => 'long',
'fromto' => '',
'multiple_number' => '',
'multiple_from' => '',
'multiple_to' => '',
);
/* Campo: Contenuto: Titolo */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = 'titolo';
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['title']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['title']['hide_alter_empty'] = FALSE;
$handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
/* Campo: Contenuto: Data scadenza */
$handler->display->display_options['fields']['field_data_scadenza']['id'] = 'field_data_scadenza';
$handler->display->display_options['fields']['field_data_scadenza']['table'] = 'field_data_field_data_scadenza';
$handler->display->display_options['fields']['field_data_scadenza']['field'] = 'field_data_scadenza';
$handler->display->display_options['fields']['field_data_scadenza']['label'] = 'end_publication_date';
$handler->display->display_options['fields']['field_data_scadenza']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_data_scadenza']['settings'] = array(
'format_type' => 'long',
'fromto' => 'both',
'multiple_number' => '',
'multiple_from' => '',
'multiple_to' => '',
'show_repeat_rule' => 'show',
);
/* Campo: Contenuto: Orario */
$handler->display->display_options['fields']['field_orario']['id'] = 'field_orario';
$handler->display->display_options['fields']['field_orario']['table'] = 'field_data_field_orario';
$handler->display->display_options['fields']['field_orario']['field'] = 'field_orario';
$handler->display->display_options['fields']['field_orario']['element_label_colon'] = FALSE;
/* Campo: Contenuto: Bando espletato? */
$handler->display->display_options['fields']['field_bando_archiviato']['id'] = 'field_bando_archiviato';
$handler->display->display_options['fields']['field_bando_archiviato']['table'] = 'field_data_field_bando_archiviato';
$handler->display->display_options['fields']['field_bando_archiviato']['field'] = 'field_bando_archiviato';
$handler->display->display_options['fields']['field_bando_archiviato']['label'] = 'Bando_espletato';
$handler->display->display_options['fields']['field_bando_archiviato']['alter']['text'] = 'if ([field_bando_archiviato-value] == 1) \'\'';
$handler->display->display_options['fields']['field_bando_archiviato']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_bando_archiviato']['type'] = 'list_key';
/* Campo: Contenuto: Body */
$handler->display->display_options['fields']['body']['id'] = 'body';
$handler->display->display_options['fields']['body']['table'] = 'field_data_body';
$handler->display->display_options['fields']['body']['field'] = 'body';
$handler->display->display_options['fields']['body']['label'] = 'descrizione';
$handler->display->display_options['fields']['body']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['body']['element_default_classes'] = FALSE;
/* Campo: Contenuto: Pubblicato */
$handler->display->display_options['fields']['status']['id'] = 'status';
$handler->display->display_options['fields']['status']['table'] = 'node';
$handler->display->display_options['fields']['status']['field'] = 'status';
$handler->display->display_options['fields']['status']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['status']['not'] = 0;
/* Campo: Contenuto: Percorso */
$handler->display->display_options['fields']['path_1']['id'] = 'path_1';
$handler->display->display_options['fields']['path_1']['table'] = 'node';
$handler->display->display_options['fields']['path_1']['field'] = 'path';
$handler->display->display_options['fields']['path_1']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['path_1']['element_default_classes'] = FALSE;
/* Campo: File: ID file */
$handler->display->display_options['fields']['fid']['id'] = 'fid';
$handler->display->display_options['fields']['fid']['table'] = 'file_managed';
$handler->display->display_options['fields']['fid']['field'] = 'fid';
$handler->display->display_options['fields']['fid']['relationship'] = 'field_file_del_bando_fid';
$handler->display->display_options['fields']['fid']['label'] = 'file_id';
$handler->display->display_options['fields']['fid']['element_label_colon'] = FALSE;
/* Campo: File: Nome */
$handler->display->display_options['fields']['filename']['id'] = 'filename';
$handler->display->display_options['fields']['filename']['table'] = 'file_managed';
$handler->display->display_options['fields']['filename']['field'] = 'filename';
$handler->display->display_options['fields']['filename']['relationship'] = 'field_file_del_bando_fid';
$handler->display->display_options['fields']['filename']['label'] = 'fileName';
$handler->display->display_options['fields']['filename']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['filename']['link_to_file'] = FALSE;
/* Campo: File: Percorso */
$handler->display->display_options['fields']['uri']['id'] = 'uri';
$handler->display->display_options['fields']['uri']['table'] = 'file_managed';
$handler->display->display_options['fields']['uri']['field'] = 'uri';
$handler->display->display_options['fields']['uri']['relationship'] = 'field_file_del_bando_fid';
$handler->display->display_options['fields']['uri']['label'] = 'filePath';
$handler->display->display_options['fields']['uri']['element_label_colon'] = FALSE;
/* Campo: File: Etichetta file */
$handler->display->display_options['fields']['field_etichetta_file']['id'] = 'field_etichetta_file';
$handler->display->display_options['fields']['field_etichetta_file']['table'] = 'field_data_field_etichetta_file';
$handler->display->display_options['fields']['field_etichetta_file']['field'] = 'field_etichetta_file';
$handler->display->display_options['fields']['field_etichetta_file']['relationship'] = 'field_file_del_bando_fid';
$handler->display->display_options['fields']['field_etichetta_file']['label'] = 'fileLabel';
$handler->display->display_options['fields']['field_etichetta_file']['element_label_colon'] = FALSE;
/* Campo: Contenuto: Nid */
$handler->display->display_options['fields']['nid']['id'] = 'nid';
$handler->display->display_options['fields']['nid']['table'] = 'node';
$handler->display->display_options['fields']['nid']['field'] = 'nid';
$handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
/* Campo: Campo: Elenco dei paragrafi */
$handler->display->display_options['fields']['field_paragrafi']['id'] = 'field_paragrafi';
$handler->display->display_options['fields']['field_paragrafi']['table'] = 'field_data_field_paragrafi';
$handler->display->display_options['fields']['field_paragrafi']['field'] = 'field_paragrafi';
$handler->display->display_options['fields']['field_paragrafi']['label'] = 'paragrph';
$handler->display->display_options['fields']['field_paragrafi']['alter']['trim_whitespace'] = TRUE;
$handler->display->display_options['fields']['field_paragrafi']['alter']['nl2br'] = TRUE;
$handler->display->display_options['fields']['field_paragrafi']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_paragrafi']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_paragrafi']['hide_alter_empty'] = FALSE;
$handler->display->display_options['fields']['field_paragrafi']['settings'] = array(
'view_mode' => 'full',
);
$handler->display->display_options['fields']['field_paragrafi']['delta_offset'] = '0';
$handler->display->display_options['fields']['field_paragrafi']['multi_type'] = 'ul';
$handler->display->display_options['path'] = 'toli-bandi';
/* Display: BandiCounter */
$handler = $view->new_display('services', 'BandiCounter', 'count_bandi');
$handler->display->display_options['defaults']['group_by'] = FALSE;
$handler->display->display_options['group_by'] = TRUE;
$handler->display->display_options['defaults']['pager'] = FALSE;
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['defaults']['relationships'] = FALSE;
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Campo: Contenuto: Nid */
$handler->display->display_options['fields']['nid']['id'] = 'nid';
$handler->display->display_options['fields']['nid']['table'] = 'node';
$handler->display->display_options['fields']['nid']['field'] = 'nid';
$handler->display->display_options['fields']['nid']['group_type'] = 'count_distinct';
$handler->display->display_options['fields']['nid']['label'] = 'total';
$handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['nid']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['nid']['hide_alter_empty'] = FALSE;
$handler->display->display_options['fields']['nid']['separator'] = '';
$handler->display->display_options['path'] = 'count-bandi';
/* Display: BandoFile */
$handler = $view->new_display('services', 'BandoFile', 'bando_file');
$handler->display->display_options['defaults']['pager'] = FALSE;
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['pager']['options']['items_per_page'] = '5';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['style_options']['default_row_class'] = FALSE;
$handler->display->display_options['style_options']['row_class_special'] = FALSE;
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['row_options']['inline'] = array(
'title' => 'title',
'field_data_pubblicazione' => 'field_data_pubblicazione',
);
$handler->display->display_options['row_options']['default_field_elements'] = FALSE;
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Campo: File: ID file */
$handler->display->display_options['fields']['fid']['id'] = 'fid';
$handler->display->display_options['fields']['fid']['table'] = 'file_managed';
$handler->display->display_options['fields']['fid']['field'] = 'fid';
$handler->display->display_options['fields']['fid']['relationship'] = 'field_file_del_bando_fid';
$handler->display->display_options['fields']['fid']['label'] = 'file_id';
$handler->display->display_options['fields']['fid']['element_label_colon'] = FALSE;
/* Campo: File: Nome */
$handler->display->display_options['fields']['filename']['id'] = 'filename';
$handler->display->display_options['fields']['filename']['table'] = 'file_managed';
$handler->display->display_options['fields']['filename']['field'] = 'filename';
$handler->display->display_options['fields']['filename']['relationship'] = 'field_file_del_bando_fid';
$handler->display->display_options['fields']['filename']['label'] = 'fileName';
$handler->display->display_options['fields']['filename']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['filename']['link_to_file'] = FALSE;
/* Campo: File: Percorso */
$handler->display->display_options['fields']['uri']['id'] = 'uri';
$handler->display->display_options['fields']['uri']['table'] = 'file_managed';
$handler->display->display_options['fields']['uri']['field'] = 'uri';
$handler->display->display_options['fields']['uri']['relationship'] = 'field_file_del_bando_fid';
$handler->display->display_options['fields']['uri']['label'] = 'filePath';
$handler->display->display_options['fields']['uri']['element_label_colon'] = FALSE;
/* Campo: File: Etichetta file */
$handler->display->display_options['fields']['field_etichetta_file']['id'] = 'field_etichetta_file';
$handler->display->display_options['fields']['field_etichetta_file']['table'] = 'field_data_field_etichetta_file';
$handler->display->display_options['fields']['field_etichetta_file']['field'] = 'field_etichetta_file';
$handler->display->display_options['fields']['field_etichetta_file']['relationship'] = 'field_file_del_bando_fid';
$handler->display->display_options['fields']['field_etichetta_file']['label'] = 'fileLabel';
$handler->display->display_options['fields']['field_etichetta_file']['element_label_colon'] = FALSE;
$handler->display->display_options['path'] = 'toli-bandi';
/* Display: BandoFileCounter */
$handler = $view->new_display('services', 'BandoFileCounter', 'bando_file_counter');
$handler->display->display_options['defaults']['group_by'] = FALSE;
$handler->display->display_options['group_by'] = TRUE;
$handler->display->display_options['defaults']['pager'] = FALSE;
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['style_options']['default_row_class'] = FALSE;
$handler->display->display_options['style_options']['row_class_special'] = FALSE;
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['row_options']['inline'] = array(
'title' => 'title',
'field_data_pubblicazione' => 'field_data_pubblicazione',
);
$handler->display->display_options['row_options']['default_field_elements'] = FALSE;
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Campo: File: ID file */
$handler->display->display_options['fields']['fid']['id'] = 'fid';
$handler->display->display_options['fields']['fid']['table'] = 'file_managed';
$handler->display->display_options['fields']['fid']['field'] = 'fid';
$handler->display->display_options['fields']['fid']['relationship'] = 'field_file_del_bando_fid';
$handler->display->display_options['fields']['fid']['group_type'] = 'count_distinct';
$handler->display->display_options['fields']['fid']['label'] = 'total';
$handler->display->display_options['fields']['fid']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['fid']['separator'] = '';
$handler->display->display_options['path'] = 'toli-bandi';
/* Display: BandiParagraphFiles */
$handler = $view->new_display('services', 'BandiParagraphFiles', 'paragraph_files');
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['style_options']['default_row_class'] = FALSE;
$handler->display->display_options['style_options']['row_class_special'] = FALSE;
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['row_options']['inline'] = array(
'title' => 'title',
'field_data_pubblicazione' => 'field_data_pubblicazione',
);
$handler->display->display_options['row_options']['default_field_elements'] = FALSE;
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['relationships'] = FALSE;
/* Relationship: Campo: Elenco dei paragrafi (field_paragrafi) */
$handler->display->display_options['relationships']['field_paragrafi_value']['id'] = 'field_paragrafi_value';
$handler->display->display_options['relationships']['field_paragrafi_value']['table'] = 'field_data_field_paragrafi';
$handler->display->display_options['relationships']['field_paragrafi_value']['field'] = 'field_paragrafi_value';
$handler->display->display_options['relationships']['field_paragrafi_value']['delta'] = '-1';
/* Relationship: Campo: Manifesto degli studi (field_documento:fid) */
$handler->display->display_options['relationships']['field_documento_fid']['id'] = 'field_documento_fid';
$handler->display->display_options['relationships']['field_documento_fid']['table'] = 'field_data_field_documento';
$handler->display->display_options['relationships']['field_documento_fid']['field'] = 'field_documento_fid';
$handler->display->display_options['relationships']['field_documento_fid']['relationship'] = 'field_paragrafi_value';
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Campo: Contenuto: Nid */
$handler->display->display_options['fields']['nid']['id'] = 'nid';
$handler->display->display_options['fields']['nid']['table'] = 'node';
$handler->display->display_options['fields']['nid']['field'] = 'nid';
$handler->display->display_options['fields']['nid']['label'] = '';
$handler->display->display_options['fields']['nid']['exclude'] = TRUE;
$handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
/* Campo: File: ID file */
$handler->display->display_options['fields']['fid']['id'] = 'fid';
$handler->display->display_options['fields']['fid']['table'] = 'file_managed';
$handler->display->display_options['fields']['fid']['field'] = 'fid';
$handler->display->display_options['fields']['fid']['relationship'] = 'field_documento_fid';
$handler->display->display_options['fields']['fid']['label'] = 'fileID';
$handler->display->display_options['fields']['fid']['alter']['alter_text'] = TRUE;
$handler->display->display_options['fields']['fid']['alter']['text'] = '[nid]_[fid]';
$handler->display->display_options['fields']['fid']['element_label_colon'] = FALSE;
/* Campo: File: Etichetta file */
$handler->display->display_options['fields']['field_etichetta_file']['id'] = 'field_etichetta_file';
$handler->display->display_options['fields']['field_etichetta_file']['table'] = 'field_data_field_etichetta_file';
$handler->display->display_options['fields']['field_etichetta_file']['field'] = 'field_etichetta_file';
$handler->display->display_options['fields']['field_etichetta_file']['relationship'] = 'field_documento_fid';
$handler->display->display_options['fields']['field_etichetta_file']['label'] = 'fileLabel';
/* Campo: File: Nome */
$handler->display->display_options['fields']['filename']['id'] = 'filename';
$handler->display->display_options['fields']['filename']['table'] = 'file_managed';
$handler->display->display_options['fields']['filename']['field'] = 'filename';
$handler->display->display_options['fields']['filename']['relationship'] = 'field_documento_fid';
$handler->display->display_options['fields']['filename']['label'] = 'filename';
$handler->display->display_options['fields']['filename']['link_to_file'] = FALSE;
/* Campo: File: Percorso */
$handler->display->display_options['fields']['uri']['id'] = 'uri';
$handler->display->display_options['fields']['uri']['table'] = 'file_managed';
$handler->display->display_options['fields']['uri']['field'] = 'uri';
$handler->display->display_options['fields']['uri']['relationship'] = 'field_documento_fid';
$handler->display->display_options['fields']['uri']['label'] = 'filePath';
$handler->display->display_options['path'] = 'toli-bandi';
/* Display: BandiParagraphFilesCounter */
$handler = $view->new_display('services', 'BandiParagraphFilesCounter', 'paragraph_files_counter');
$handler->display->display_options['defaults']['group_by'] = FALSE;
$handler->display->display_options['group_by'] = TRUE;
$handler->display->display_options['defaults']['pager'] = FALSE;
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['style_options']['default_row_class'] = FALSE;
$handler->display->display_options['style_options']['row_class_special'] = FALSE;
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['row_options']['inline'] = array(
'title' => 'title',
'field_data_pubblicazione' => 'field_data_pubblicazione',
);
$handler->display->display_options['row_options']['default_field_elements'] = FALSE;
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['relationships'] = FALSE;
/* Relationship: Campo: Elenco dei paragrafi (field_paragrafi) */
$handler->display->display_options['relationships']['field_paragrafi_value']['id'] = 'field_paragrafi_value';
$handler->display->display_options['relationships']['field_paragrafi_value']['table'] = 'field_data_field_paragrafi';
$handler->display->display_options['relationships']['field_paragrafi_value']['field'] = 'field_paragrafi_value';
$handler->display->display_options['relationships']['field_paragrafi_value']['delta'] = '-1';
/* Relationship: Campo: Manifesto degli studi (field_documento:fid) */
$handler->display->display_options['relationships']['field_documento_fid']['id'] = 'field_documento_fid';
$handler->display->display_options['relationships']['field_documento_fid']['table'] = 'field_data_field_documento';
$handler->display->display_options['relationships']['field_documento_fid']['field'] = 'field_documento_fid';
$handler->display->display_options['relationships']['field_documento_fid']['relationship'] = 'field_paragrafi_value';
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Campo: File: ID file */
$handler->display->display_options['fields']['fid']['id'] = 'fid';
$handler->display->display_options['fields']['fid']['table'] = 'file_managed';
$handler->display->display_options['fields']['fid']['field'] = 'fid';
$handler->display->display_options['fields']['fid']['relationship'] = 'field_documento_fid';
$handler->display->display_options['fields']['fid']['group_type'] = 'count_distinct';
$handler->display->display_options['fields']['fid']['label'] = 'total';
$handler->display->display_options['fields']['fid']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['fid']['separator'] = '';
$handler->display->display_options['path'] = 'toli-bandi';
$translatables['bandi_rest_api'] = array(
t('Master'),
t('Bandi rest api'),
t('more'),
t('Apply'),
t('Ripristina'),
t('Sort by'),
t('Asc'),
t('Desc'),
t('file from field_file_del_bando'),
t('pubblication_date'),
t('titolo'),
t('end_publication_date'),
t('Orario'),
t('Bando_espletato'),
t('if ([field_bando_archiviato-value] == 1) \'\''),
t('descrizione'),
t('Pubblicato'),
t('Percorso'),
t('ID file'),
t('Nome'),
t('Etichetta file'),
t('Visualizza'),
t('Bandi'),
t('file_id'),
t('fileName'),
t('filePath'),
t('fileLabel'),
t('Nid'),
t('paragrph'),
t('BandiCounter'),
t('total'),
t('BandoFile'),
t('BandoFileCounter'),
t('BandiParagraphFiles'),
t('Paragraph item from field_paragrafi'),
t('file from field_documento'),
t('fileID'),
t('[nid]_[fid]'),
t('filename'),
t('BandiParagraphFilesCounter'),
);
|
Indirizzi url :
- https://www.uniss.it/api/v1/views/bandi_rest_api?display_id=bandi
- https://www.uniss.it/api/v1/views/bandi_rest_api?display_id=count_bandi
- https://www.uniss.it/api/v1/views/bandi_rest_api?display_id=bando_file
- https://www.uniss.it/api/v1/views/bandi_rest_api?display_id=bando_file_counter
- https://www.uniss.it/api/v1/views/bandi_rest_api?display_id=paragraph_files
- https://www.uniss.it/api/v1/views/bandi_rest_api?display_id=paragraph_files_counter
Per poter scorrere tutta la lista nei servizi (bandi, bando_file, paragraph_files) occorre dare 2 parametri in più ( limit,offset) e questa cosa viene gestita dal modulo cineca_migrate_announcements in unissd9.