From a6eb1ed5bea06e0a64ceb3ae710f3a6236ad652b Mon Sep 17 00:00:00 2001 From: Agnieszka Figiel Date: Tue, 24 Oct 2023 15:06:51 +0200 Subject: [PATCH] Data info content type for storing tooltips --- .../sync/admin-role.strapi-super-admin.json | 43 +++ ...ntent_types##api##data-info.data-info.json | 135 ++++++++ cms/export_custom-db.json | 314 +++++++++++------- .../content-types/data-info/schema.json | 25 ++ .../api/data-info/controllers/data-info.ts | 7 + .../documentation/1.0.0/data-info.json | 257 ++++++++++++++ cms/src/api/data-info/routes/data-info.ts | 10 + cms/src/api/data-info/services/data-info.ts | 7 + cms/types/generated/contentTypes.d.ts | 32 ++ 9 files changed, 719 insertions(+), 111 deletions(-) create mode 100644 cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##data-info.data-info.json create mode 100644 cms/src/api/data-info/content-types/data-info/schema.json create mode 100644 cms/src/api/data-info/controllers/data-info.ts create mode 100644 cms/src/api/data-info/documentation/1.0.0/data-info.json create mode 100644 cms/src/api/data-info/routes/data-info.ts create mode 100644 cms/src/api/data-info/services/data-info.ts diff --git a/cms/config/sync/admin-role.strapi-super-admin.json b/cms/config/sync/admin-role.strapi-super-admin.json index 8de2040e..ab25583f 100644 --- a/cms/config/sync/admin-role.strapi-super-admin.json +++ b/cms/config/sync/admin-role.strapi-super-admin.json @@ -3,6 +3,49 @@ "code": "strapi-super-admin", "description": "Super Admins can access and manage all features and settings.", "permissions": [ + { + "action": "plugin::content-manager.explorer.create", + "actionParameters": {}, + "subject": "api::data-info.data-info", + "properties": { + "fields": [ + "slug", + "content" + ] + }, + "conditions": [] + }, + { + "action": "plugin::content-manager.explorer.delete", + "actionParameters": {}, + "subject": "api::data-info.data-info", + "properties": {}, + "conditions": [] + }, + { + "action": "plugin::content-manager.explorer.read", + "actionParameters": {}, + "subject": "api::data-info.data-info", + "properties": { + "fields": [ + "slug", + "content" + ] + }, + "conditions": [] + }, + { + "action": "plugin::content-manager.explorer.update", + "actionParameters": {}, + "subject": "api::data-info.data-info", + "properties": { + "fields": [ + "slug", + "content" + ] + }, + "conditions": [] + }, { "action": "plugin::content-manager.explorer.create", "actionParameters": {}, diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##data-info.data-info.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##data-info.data-info.json new file mode 100644 index 00000000..7f764618 --- /dev/null +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##data-info.data-info.json @@ -0,0 +1,135 @@ +{ + "key": "plugin_content_manager_configuration_content_types::api::data-info.data-info", + "value": { + "uid": "api::data-info.data-info", + "settings": { + "bulkable": true, + "filterable": true, + "searchable": true, + "pageSize": 10, + "mainField": "slug", + "defaultSortBy": "slug", + "defaultSortOrder": "ASC" + }, + "metadatas": { + "id": { + "edit": {}, + "list": { + "label": "id", + "searchable": true, + "sortable": true + } + }, + "slug": { + "edit": { + "label": "slug", + "description": "", + "placeholder": "", + "visible": true, + "editable": true + }, + "list": { + "label": "slug", + "searchable": true, + "sortable": true + } + }, + "content": { + "edit": { + "label": "content", + "description": "", + "placeholder": "", + "visible": true, + "editable": true + }, + "list": { + "label": "content", + "searchable": true, + "sortable": true + } + }, + "createdAt": { + "edit": { + "label": "createdAt", + "description": "", + "placeholder": "", + "visible": false, + "editable": true + }, + "list": { + "label": "createdAt", + "searchable": true, + "sortable": true + } + }, + "updatedAt": { + "edit": { + "label": "updatedAt", + "description": "", + "placeholder": "", + "visible": false, + "editable": true + }, + "list": { + "label": "updatedAt", + "searchable": true, + "sortable": true + } + }, + "createdBy": { + "edit": { + "label": "createdBy", + "description": "", + "placeholder": "", + "visible": false, + "editable": true, + "mainField": "firstname" + }, + "list": { + "label": "createdBy", + "searchable": true, + "sortable": true + } + }, + "updatedBy": { + "edit": { + "label": "updatedBy", + "description": "", + "placeholder": "", + "visible": false, + "editable": true, + "mainField": "firstname" + }, + "list": { + "label": "updatedBy", + "searchable": true, + "sortable": true + } + } + }, + "layouts": { + "list": [ + "id", + "slug", + "content" + ], + "edit": [ + [ + { + "name": "slug", + "size": 6 + } + ], + [ + { + "name": "content", + "size": 6 + } + ] + ] + } + }, + "type": "object", + "environment": null, + "tag": null +} \ No newline at end of file diff --git a/cms/export_custom-db.json b/cms/export_custom-db.json index 42ae969e..0e109170 100644 --- a/cms/export_custom-db.json +++ b/cms/export_custom-db.json @@ -8,7 +8,7 @@ "name": "MPA", "info": null, "createdAt": "2023-10-09T18:00:35.426Z", - "updatedAt": "2023-10-20T10:35:35.617Z", + "updatedAt": "2023-10-24T11:15:05.514Z", "createdBy": null, "updatedBy": null }, @@ -18,7 +18,7 @@ "name": "OECM", "info": null, "createdAt": "2023-10-09T18:00:45.377Z", - "updatedAt": "2023-10-20T10:35:35.636Z", + "updatedAt": "2023-10-24T11:15:05.517Z", "createdBy": null, "updatedBy": null } @@ -30,7 +30,7 @@ "cumSumProtectedArea": 49388.08, "protectedArea": 14016.04, "createdAt": "2023-10-09T18:06:25.069Z", - "updatedAt": "2023-10-20T10:35:36.136Z", + "updatedAt": "2023-10-24T11:15:05.522Z", "protectedAreasCount": 12, "location": 1, "protection_status": 2, @@ -43,7 +43,7 @@ "cumSumProtectedArea": 57086.42, "protectedArea": 7698.34, "createdAt": "2023-10-09T18:07:23.774Z", - "updatedAt": "2023-10-20T10:35:36.194Z", + "updatedAt": "2023-10-24T11:15:05.533Z", "protectedAreasCount": 18, "location": 1, "protection_status": 2, @@ -56,7 +56,7 @@ "cumSumProtectedArea": 73020.52, "protectedArea": 17531.99, "createdAt": "2023-10-09T18:08:11.027Z", - "updatedAt": "2023-10-20T10:35:36.241Z", + "updatedAt": "2023-10-24T11:15:05.543Z", "protectedAreasCount": 24, "location": 1, "protection_status": 2, @@ -69,7 +69,7 @@ "cumSumProtectedArea": 81937.99, "protectedArea": 8917.46, "createdAt": "2023-10-09T18:09:07.222Z", - "updatedAt": "2023-10-20T10:35:36.293Z", + "updatedAt": "2023-10-24T11:15:05.554Z", "protectedAreasCount": 29, "location": 1, "protection_status": 2, @@ -82,7 +82,7 @@ "cumSumProtectedArea": 88077, "protectedArea": 6139.01, "createdAt": "2023-10-09T18:09:53.024Z", - "updatedAt": "2023-10-20T10:35:36.338Z", + "updatedAt": "2023-10-24T11:15:05.570Z", "protectedAreasCount": 33, "location": 1, "protection_status": 2, @@ -95,7 +95,7 @@ "cumSumProtectedArea": 103438.89, "protectedArea": 15361.89, "createdAt": "2023-10-09T18:10:55.677Z", - "updatedAt": "2023-10-20T10:35:36.392Z", + "updatedAt": "2023-10-24T11:15:05.579Z", "protectedAreasCount": 41, "location": 1, "protection_status": 2, @@ -108,7 +108,7 @@ "cumSumProtectedArea": 104821.11, "protectedArea": 1382.22, "createdAt": "2023-10-09T18:11:47.597Z", - "updatedAt": "2023-10-20T10:35:36.440Z", + "updatedAt": "2023-10-24T11:15:05.587Z", "protectedAreasCount": 46, "location": 1, "protection_status": 2, @@ -121,7 +121,7 @@ "cumSumProtectedArea": 119875.35, "protectedArea": 15054.24, "createdAt": "2023-10-09T18:13:05.513Z", - "updatedAt": "2023-10-20T10:35:36.482Z", + "updatedAt": "2023-10-24T11:15:05.595Z", "protectedAreasCount": 50, "location": 1, "protection_status": 2, @@ -134,7 +134,7 @@ "cumSumProtectedArea": 294347.25, "protectedArea": 19770.83, "createdAt": "2023-10-09T18:16:58.350Z", - "updatedAt": "2023-10-20T10:35:36.527Z", + "updatedAt": "2023-10-24T11:15:05.605Z", "protectedAreasCount": 10000, "location": 1, "protection_status": 1, @@ -147,7 +147,7 @@ "cumSumProtectedArea": 4067.7, "protectedArea": 1039233, "createdAt": "2023-10-09T18:17:35.404Z", - "updatedAt": "2023-10-20T10:35:36.580Z", + "updatedAt": "2023-10-24T11:15:05.612Z", "protectedAreasCount": 10569, "location": 1, "protection_status": 1, @@ -160,7 +160,7 @@ "cumSumProtectedArea": 317505.54, "protectedArea": 19090.58, "createdAt": "2023-10-09T18:18:13.921Z", - "updatedAt": "2023-10-20T10:35:36.626Z", + "updatedAt": "2023-10-24T11:15:05.619Z", "protectedAreasCount": 11178, "location": 1, "protection_status": 1, @@ -173,7 +173,7 @@ "cumSumProtectedArea": 333510.37, "protectedArea": 16004.83, "createdAt": "2023-10-09T18:18:52.180Z", - "updatedAt": "2023-10-20T10:35:36.668Z", + "updatedAt": "2023-10-24T11:15:05.627Z", "protectedAreasCount": 12563, "location": 1, "protection_status": 1, @@ -186,7 +186,7 @@ "cumSumProtectedArea": 348528.82, "protectedArea": 15018.45, "createdAt": "2023-10-09T18:20:00.527Z", - "updatedAt": "2023-10-20T10:35:36.723Z", + "updatedAt": "2023-10-24T11:15:05.632Z", "protectedAreasCount": 12981, "location": 1, "protection_status": 1, @@ -199,7 +199,7 @@ "cumSumProtectedArea": 356396.89, "protectedArea": 7868.07, "createdAt": "2023-10-09T18:20:55.327Z", - "updatedAt": "2023-10-20T10:35:36.771Z", + "updatedAt": "2023-10-24T11:15:05.640Z", "protectedAreasCount": 12002, "location": 1, "protection_status": 1, @@ -212,7 +212,7 @@ "cumSumProtectedArea": 372116.52, "protectedArea": 15719.63, "createdAt": "2023-10-09T18:21:28.688Z", - "updatedAt": "2023-10-20T10:35:36.815Z", + "updatedAt": "2023-10-24T11:15:05.646Z", "protectedAreasCount": 13895, "location": 1, "protection_status": 1, @@ -225,7 +225,7 @@ "cumSumProtectedArea": 388064.81, "protectedArea": 15948.29, "createdAt": "2023-10-09T18:22:00.955Z", - "updatedAt": "2023-10-20T10:35:36.861Z", + "updatedAt": "2023-10-24T11:15:05.652Z", "protectedAreasCount": 15000, "location": 1, "protection_status": 1, @@ -238,7 +238,7 @@ "cumSumProtectedArea": 971611, "protectedArea": 10000, "createdAt": "2023-10-24T09:01:00.033Z", - "updatedAt": "2023-10-24T09:01:00.033Z", + "updatedAt": "2023-10-24T11:15:05.662Z", "protectedAreasCount": 177, "location": 2, "protection_status": 1, @@ -251,7 +251,7 @@ "cumSumProtectedArea": 975719, "protectedArea": 10000, "createdAt": "2023-10-24T09:01:29.660Z", - "updatedAt": "2023-10-24T09:01:29.660Z", + "updatedAt": "2023-10-24T11:15:05.668Z", "protectedAreasCount": 170, "location": 2, "protection_status": 1, @@ -264,7 +264,7 @@ "cumSumProtectedArea": 965719, "protectedArea": 10000, "createdAt": "2023-10-24T09:01:59.705Z", - "updatedAt": "2023-10-24T09:01:59.705Z", + "updatedAt": "2023-10-24T11:15:05.676Z", "protectedAreasCount": 160, "location": 2, "protection_status": 1, @@ -277,7 +277,7 @@ "cumSumProtectedArea": 951611, "protectedArea": 10000, "createdAt": "2023-10-24T09:02:37.595Z", - "updatedAt": "2023-10-24T09:02:37.595Z", + "updatedAt": "2023-10-24T11:15:05.683Z", "protectedAreasCount": 150, "location": 2, "protection_status": 1, @@ -290,7 +290,7 @@ "cumSumProtectedArea": 941611, "protectedArea": 10000, "createdAt": "2023-10-24T09:03:06.696Z", - "updatedAt": "2023-10-24T09:03:06.696Z", + "updatedAt": "2023-10-24T11:15:05.690Z", "protectedAreasCount": 140, "location": 2, "protection_status": 1, @@ -303,7 +303,7 @@ "cumSumProtectedArea": 931611, "protectedArea": 10000, "createdAt": "2023-10-24T09:03:33.793Z", - "updatedAt": "2023-10-24T09:03:33.793Z", + "updatedAt": "2023-10-24T11:15:05.697Z", "protectedAreasCount": 140, "location": 2, "protection_status": 1, @@ -316,7 +316,7 @@ "cumSumProtectedArea": 921611, "protectedArea": 10000, "createdAt": "2023-10-24T09:04:03.663Z", - "updatedAt": "2023-10-24T09:04:03.663Z", + "updatedAt": "2023-10-24T11:15:05.705Z", "protectedAreasCount": 130, "location": 2, "protection_status": 1, @@ -329,7 +329,7 @@ "cumSumProtectedArea": 10000, "protectedArea": 1000, "createdAt": "2023-10-24T09:06:49.641Z", - "updatedAt": "2023-10-24T09:06:49.641Z", + "updatedAt": "2023-10-24T11:15:05.711Z", "protectedAreasCount": 15, "location": 2, "protection_status": 2, @@ -342,7 +342,7 @@ "cumSumProtectedArea": 9000, "protectedArea": 1000, "createdAt": "2023-10-24T09:07:11.709Z", - "updatedAt": "2023-10-24T09:07:11.709Z", + "updatedAt": "2023-10-24T11:15:05.718Z", "protectedAreasCount": 14, "location": 2, "protection_status": 2, @@ -355,7 +355,7 @@ "cumSumProtectedArea": 8000, "protectedArea": 1000, "createdAt": "2023-10-24T09:07:35.694Z", - "updatedAt": "2023-10-24T09:07:35.694Z", + "updatedAt": "2023-10-24T11:15:05.727Z", "protectedAreasCount": 13, "location": 2, "protection_status": 2, @@ -368,7 +368,7 @@ "cumSumProtectedArea": 7000, "protectedArea": 1000, "createdAt": "2023-10-24T09:08:02.278Z", - "updatedAt": "2023-10-24T09:08:02.278Z", + "updatedAt": "2023-10-24T11:15:05.734Z", "protectedAreasCount": 12, "location": 2, "protection_status": 2, @@ -381,7 +381,7 @@ "cumSumProtectedArea": 6000, "protectedArea": 1000, "createdAt": "2023-10-24T09:08:25.069Z", - "updatedAt": "2023-10-24T09:08:25.069Z", + "updatedAt": "2023-10-24T11:15:05.741Z", "protectedAreasCount": 11, "location": 2, "protection_status": 2, @@ -394,7 +394,7 @@ "cumSumProtectedArea": 6000, "protectedArea": 1000, "createdAt": "2023-10-24T09:08:47.579Z", - "updatedAt": "2023-10-24T09:08:47.579Z", + "updatedAt": "2023-10-24T11:15:05.748Z", "protectedAreasCount": 10, "location": 2, "protection_status": 2, @@ -407,7 +407,7 @@ "cumSumProtectedArea": 5000, "protectedArea": 1000, "createdAt": "2023-10-24T09:09:05.929Z", - "updatedAt": "2023-10-24T09:09:05.929Z", + "updatedAt": "2023-10-24T11:15:05.763Z", "protectedAreasCount": 9, "location": 2, "protection_status": 2, @@ -420,7 +420,7 @@ "cumSumProtectedArea": 301954, "protectedArea": 10000, "createdAt": "2023-10-24T09:10:49.168Z", - "updatedAt": "2023-10-24T09:10:49.168Z", + "updatedAt": "2023-10-24T11:15:05.771Z", "protectedAreasCount": 1364, "location": 7, "protection_status": 1, @@ -433,7 +433,7 @@ "cumSumProtectedArea": 4737, "protectedArea": 100, "createdAt": "2023-10-24T09:11:26.901Z", - "updatedAt": "2023-10-24T09:11:26.901Z", + "updatedAt": "2023-10-24T11:15:05.781Z", "protectedAreasCount": 43, "location": 7, "protection_status": 2, @@ -446,7 +446,7 @@ "cumSumProtectedArea": 132281, "protectedArea": 10000, "createdAt": "2023-10-24T10:29:14.156Z", - "updatedAt": "2023-10-24T10:29:14.156Z", + "updatedAt": "2023-10-24T11:15:05.789Z", "protectedAreasCount": 511, "location": 4, "protection_status": 1, @@ -459,7 +459,7 @@ "cumSumProtectedArea": 100, "protectedArea": 10, "createdAt": "2023-10-24T10:29:35.960Z", - "updatedAt": "2023-10-24T10:29:35.960Z", + "updatedAt": "2023-10-24T11:15:05.798Z", "protectedAreasCount": 6, "location": 4, "protection_status": 2, @@ -472,7 +472,7 @@ "cumSumProtectedArea": 3329627, "protectedArea": 10000, "createdAt": "2023-10-24T10:30:26.006Z", - "updatedAt": "2023-10-24T10:30:26.006Z", + "updatedAt": "2023-10-24T11:15:05.807Z", "protectedAreasCount": 37, "location": 8, "protection_status": 1, @@ -485,7 +485,7 @@ "cumSumProtectedArea": 3319627, "protectedArea": 10000, "createdAt": "2023-10-24T10:32:08.309Z", - "updatedAt": "2023-10-24T10:32:08.309Z", + "updatedAt": "2023-10-24T11:15:05.815Z", "protectedAreasCount": 33, "location": 8, "protection_status": 1, @@ -498,7 +498,7 @@ "cumSumProtectedArea": 3309627, "protectedArea": 10000, "createdAt": "2023-10-24T10:32:46.697Z", - "updatedAt": "2023-10-24T10:32:46.697Z", + "updatedAt": "2023-10-24T11:15:05.824Z", "protectedAreasCount": 30, "location": 8, "protection_status": 1, @@ -511,7 +511,7 @@ "cumSumProtectedArea": 3299627, "protectedArea": 10000, "createdAt": "2023-10-24T10:33:15.588Z", - "updatedAt": "2023-10-24T10:33:15.588Z", + "updatedAt": "2023-10-24T11:15:05.831Z", "protectedAreasCount": 28, "location": 8, "protection_status": 1, @@ -524,7 +524,7 @@ "cumSumProtectedArea": 3299627, "protectedArea": 10000, "createdAt": "2023-10-24T10:33:36.752Z", - "updatedAt": "2023-10-24T10:33:36.752Z", + "updatedAt": "2023-10-24T11:15:05.840Z", "protectedAreasCount": 25, "location": 8, "protection_status": 1, @@ -537,7 +537,7 @@ "cumSumProtectedArea": 3279627, "protectedArea": 10000, "createdAt": "2023-10-24T10:33:58.192Z", - "updatedAt": "2023-10-24T10:33:58.192Z", + "updatedAt": "2023-10-24T11:15:05.847Z", "protectedAreasCount": 22, "location": 8, "protection_status": 1, @@ -550,7 +550,7 @@ "cumSumProtectedArea": 3269627, "protectedArea": 10000, "createdAt": "2023-10-24T10:34:17.789Z", - "updatedAt": "2023-10-24T10:34:17.789Z", + "updatedAt": "2023-10-24T11:15:05.862Z", "protectedAreasCount": 19, "location": 8, "protection_status": 1, @@ -563,7 +563,7 @@ "id": 1, "area": 80777.16, "createdAt": "2023-10-09T18:04:45.059Z", - "updatedAt": "2023-10-20T10:35:36.952Z", + "updatedAt": "2023-10-24T11:15:05.871Z", "location": 1, "mpaa_protection_level": 1, "createdBy": null, @@ -573,7 +573,7 @@ "id": 2, "area": 136195.75, "createdAt": "2023-10-09T18:05:00.025Z", - "updatedAt": "2023-10-20T10:35:37.010Z", + "updatedAt": "2023-10-24T11:15:05.880Z", "location": 1, "mpaa_protection_level": 2, "createdBy": null, @@ -583,7 +583,7 @@ "id": 3, "area": 6.75, "createdAt": "2023-10-24T09:31:03.567Z", - "updatedAt": "2023-10-24T09:31:03.567Z", + "updatedAt": "2023-10-24T11:15:05.888Z", "location": 7, "mpaa_protection_level": 1, "createdBy": null, @@ -593,7 +593,7 @@ "id": 4, "area": 201619, "createdAt": "2023-10-24T09:31:25.307Z", - "updatedAt": "2023-10-24T09:31:25.307Z", + "updatedAt": "2023-10-24T11:15:05.895Z", "location": 7, "mpaa_protection_level": 2, "createdBy": null, @@ -603,7 +603,7 @@ "id": 5, "area": 120261, "createdAt": "2023-10-24T09:31:59.230Z", - "updatedAt": "2023-10-24T09:31:59.230Z", + "updatedAt": "2023-10-24T11:15:05.905Z", "location": 2, "mpaa_protection_level": 1, "createdBy": null, @@ -613,7 +613,7 @@ "id": 6, "area": 851348, "createdAt": "2023-10-24T09:32:30.149Z", - "updatedAt": "2023-10-24T09:32:30.149Z", + "updatedAt": "2023-10-24T11:15:05.914Z", "location": 2, "mpaa_protection_level": 2, "createdBy": null, @@ -623,7 +623,7 @@ "id": 7, "area": 109286, "createdAt": "2023-10-24T09:32:55.216Z", - "updatedAt": "2023-10-24T09:33:19.371Z", + "updatedAt": "2023-10-24T11:15:05.922Z", "location": 4, "mpaa_protection_level": 2, "createdBy": null, @@ -633,7 +633,7 @@ "id": 8, "area": 1701246, "createdAt": "2023-10-24T09:34:45.881Z", - "updatedAt": "2023-10-24T09:34:45.881Z", + "updatedAt": "2023-10-24T11:15:05.930Z", "location": 8, "mpaa_protection_level": 1, "createdBy": null, @@ -643,7 +643,7 @@ "id": 9, "area": 1628381, "createdAt": "2023-10-24T09:35:10.152Z", - "updatedAt": "2023-10-24T09:35:10.152Z", + "updatedAt": "2023-10-24T11:15:05.937Z", "location": 8, "mpaa_protection_level": 2, "createdBy": null, @@ -655,7 +655,7 @@ "id": 1, "area": 147894.05, "createdAt": "2023-10-09T17:53:51.182Z", - "updatedAt": "2023-10-20T10:35:38.599Z", + "updatedAt": "2023-10-24T11:15:05.945Z", "location": 1, "fishing_protection_level": 1, "createdBy": null, @@ -665,7 +665,7 @@ "id": 2, "area": 191410.98, "createdAt": "2023-10-09T17:54:09.922Z", - "updatedAt": "2023-10-20T10:35:38.653Z", + "updatedAt": "2023-10-24T11:15:05.953Z", "location": 1, "fishing_protection_level": 2, "createdBy": null, @@ -675,7 +675,7 @@ "id": 3, "area": 286354.1, "createdAt": "2023-10-09T17:54:26.300Z", - "updatedAt": "2023-10-20T10:35:38.696Z", + "updatedAt": "2023-10-24T11:15:05.965Z", "location": 1, "fishing_protection_level": 3, "createdBy": null, @@ -685,7 +685,7 @@ "id": 4, "area": 1851423, "createdAt": "2023-10-24T09:19:11.987Z", - "updatedAt": "2023-10-24T09:23:25.407Z", + "updatedAt": "2023-10-24T11:15:05.972Z", "location": 7, "fishing_protection_level": 1, "createdBy": null, @@ -695,7 +695,7 @@ "id": 5, "area": 458077, "createdAt": "2023-10-24T09:22:31.010Z", - "updatedAt": "2023-10-24T09:22:31.010Z", + "updatedAt": "2023-10-24T11:15:05.981Z", "location": 7, "fishing_protection_level": 2, "createdBy": null, @@ -705,7 +705,7 @@ "id": 6, "area": 3571155, "createdAt": "2023-10-24T09:24:09.059Z", - "updatedAt": "2023-10-24T09:24:09.059Z", + "updatedAt": "2023-10-24T11:15:05.990Z", "location": 7, "fishing_protection_level": 3, "createdBy": null, @@ -715,7 +715,7 @@ "id": 7, "area": 119908, "createdAt": "2023-10-24T09:25:54.479Z", - "updatedAt": "2023-10-24T09:26:38.156Z", + "updatedAt": "2023-10-24T11:15:05.997Z", "location": 2, "fishing_protection_level": 1, "createdBy": null, @@ -725,7 +725,7 @@ "id": 8, "area": 393567, "createdAt": "2023-10-24T09:26:29.363Z", - "updatedAt": "2023-10-24T09:26:29.363Z", + "updatedAt": "2023-10-24T11:15:06.005Z", "location": 2, "fishing_protection_level": 2, "createdBy": null, @@ -735,7 +735,7 @@ "id": 9, "area": 3164188, "createdAt": "2023-10-24T09:27:20.453Z", - "updatedAt": "2023-10-24T09:27:48.344Z", + "updatedAt": "2023-10-24T11:15:06.012Z", "location": 2, "fishing_protection_level": 3, "createdBy": null, @@ -745,7 +745,7 @@ "id": 10, "area": 1783, "createdAt": "2023-10-24T09:28:17.239Z", - "updatedAt": "2023-10-24T09:28:17.239Z", + "updatedAt": "2023-10-24T11:15:06.019Z", "location": 4, "fishing_protection_level": 1, "createdBy": null, @@ -755,7 +755,7 @@ "id": 11, "area": 7312, "createdAt": "2023-10-24T09:28:46.341Z", - "updatedAt": "2023-10-24T09:28:46.341Z", + "updatedAt": "2023-10-24T11:15:06.026Z", "location": 4, "fishing_protection_level": 2, "createdBy": null, @@ -765,7 +765,7 @@ "id": 12, "area": 1000572, "createdAt": "2023-10-24T09:29:32.063Z", - "updatedAt": "2023-10-24T09:29:32.063Z", + "updatedAt": "2023-10-24T11:15:06.035Z", "location": 4, "fishing_protection_level": 3, "createdBy": null, @@ -775,7 +775,7 @@ "id": 13, "area": 2640679, "createdAt": "2023-10-24T09:36:22.854Z", - "updatedAt": "2023-10-24T09:36:22.854Z", + "updatedAt": "2023-10-24T11:15:06.042Z", "location": 8, "fishing_protection_level": 1, "createdBy": null, @@ -785,7 +785,7 @@ "id": 14, "area": 3551477, "createdAt": "2023-10-24T09:36:49.304Z", - "updatedAt": "2023-10-24T09:36:49.304Z", + "updatedAt": "2023-10-24T11:15:06.049Z", "location": 8, "fishing_protection_level": 2, "createdBy": null, @@ -795,7 +795,7 @@ "id": 15, "area": 215866561, "createdAt": "2023-10-24T10:25:41.412Z", - "updatedAt": "2023-10-24T10:25:41.412Z", + "updatedAt": "2023-10-24T11:15:06.061Z", "location": 8, "fishing_protection_level": 3, "createdBy": null, @@ -807,7 +807,7 @@ "id": 1, "totalMarineArea": 361000000, "createdAt": "2023-10-09T17:51:13.794Z", - "updatedAt": "2023-10-20T10:35:35.660Z", + "updatedAt": "2023-10-24T11:15:06.069Z", "code": "GLOB", "name": "Worldwide", "type": "worldwide", @@ -847,7 +847,7 @@ "id": 2, "totalMarineArea": 3830955, "createdAt": "2023-10-10T14:02:56.853Z", - "updatedAt": "2023-10-20T10:35:35.718Z", + "updatedAt": "2023-10-24T11:15:06.082Z", "code": "BRA", "name": "Brasil", "type": "country", @@ -885,7 +885,7 @@ "id": 3, "totalMarineArea": 8148250, "createdAt": "2023-10-10T14:04:30.833Z", - "updatedAt": "2023-10-20T10:35:35.769Z", + "updatedAt": "2023-10-24T11:15:06.096Z", "code": "AUS", "name": "Australia", "type": "country", @@ -901,7 +901,7 @@ "id": 4, "totalMarineArea": 1039233, "createdAt": "2023-10-10T14:05:03.026Z", - "updatedAt": "2023-10-20T10:35:35.815Z", + "updatedAt": "2023-10-24T11:15:06.104Z", "code": "ESP", "name": "Spain", "type": "country", @@ -928,7 +928,7 @@ "id": 5, "totalMarineArea": 600000, "createdAt": "2023-10-10T14:07:27.469Z", - "updatedAt": "2023-10-20T10:35:35.878Z", + "updatedAt": "2023-10-24T11:15:06.115Z", "code": "KOR", "name": "Korea", "type": "country", @@ -944,7 +944,7 @@ "id": 6, "totalMarineArea": 11351000, "createdAt": "2023-10-10T14:08:02.385Z", - "updatedAt": "2023-10-20T10:35:35.932Z", + "updatedAt": "2023-10-24T11:15:06.124Z", "code": "USA", "name": "United States of America", "type": "country", @@ -960,7 +960,7 @@ "id": 7, "totalMarineArea": 6805586, "createdAt": "2023-10-10T14:08:38.182Z", - "updatedAt": "2023-10-20T10:35:35.971Z", + "updatedAt": "2023-10-24T11:15:06.132Z", "code": "GBR", "name": "United Kingdom", "type": "country", @@ -988,7 +988,7 @@ "id": 8, "totalMarineArea": 240666667, "createdAt": "2023-10-10T14:09:44.636Z", - "updatedAt": "2023-10-20T10:35:36.021Z", + "updatedAt": "2023-10-24T11:15:06.145Z", "code": "ABNJ", "name": "Highseas", "type": "country", @@ -1019,7 +1019,7 @@ "id": 9, "totalMarineArea": 10351000, "createdAt": "2023-10-10T14:10:43.898Z", - "updatedAt": "2023-10-20T10:35:36.077Z", + "updatedAt": "2023-10-24T11:15:06.158Z", "code": "EEE", "name": "Europe", "type": "region", @@ -1042,7 +1042,7 @@ "name": "Fully / Highly Protected", "info": null, "createdAt": "2023-10-09T18:03:52.299Z", - "updatedAt": "2023-10-20T10:35:36.909Z", + "updatedAt": "2023-10-24T11:15:06.169Z", "createdBy": null, "updatedBy": null }, @@ -1052,7 +1052,7 @@ "name": "Less Protected / Unknown", "info": null, "createdAt": "2023-10-09T18:04:19.597Z", - "updatedAt": "2023-10-20T10:35:36.929Z", + "updatedAt": "2023-10-24T11:15:06.172Z", "createdBy": null, "updatedBy": null } @@ -1064,7 +1064,7 @@ "name": "Highly", "info": null, "createdAt": "2023-10-09T17:52:27.434Z", - "updatedAt": "2023-10-20T10:35:37.602Z", + "updatedAt": "2023-10-24T11:15:06.177Z", "createdBy": null, "updatedBy": null }, @@ -1074,7 +1074,7 @@ "name": "Moderately", "info": null, "createdAt": "2023-10-09T17:52:54.865Z", - "updatedAt": "2023-10-20T10:35:37.626Z", + "updatedAt": "2023-10-24T11:15:06.180Z", "createdBy": null, "updatedBy": null }, @@ -1084,7 +1084,7 @@ "name": "Less", "info": null, "createdAt": "2023-10-09T17:53:13.011Z", - "updatedAt": "2023-10-20T10:35:37.675Z", + "updatedAt": "2023-10-24T11:15:06.183Z", "createdBy": null, "updatedBy": null } @@ -1096,7 +1096,7 @@ "name": "Designated / implemented", "info": null, "createdAt": "2023-10-09T17:59:47.613Z", - "updatedAt": "2023-10-20T10:35:37.072Z", + "updatedAt": "2023-10-24T11:15:06.186Z", "createdBy": null, "updatedBy": null }, @@ -1106,7 +1106,7 @@ "name": "Designated / unimplemented", "info": null, "createdAt": "2023-10-09T18:00:00.776Z", - "updatedAt": "2023-10-20T10:35:37.102Z", + "updatedAt": "2023-10-24T11:15:06.190Z", "createdBy": null, "updatedBy": null }, @@ -1116,7 +1116,7 @@ "name": "Proposed / committed", "info": null, "createdAt": "2023-10-09T18:00:15.236Z", - "updatedAt": "2023-10-20T10:35:37.127Z", + "updatedAt": "2023-10-24T11:15:06.193Z", "createdBy": null, "updatedBy": null } @@ -1127,7 +1127,7 @@ "year": 2023, "area": 60932.13, "createdAt": "2023-10-09T18:01:13.948Z", - "updatedAt": "2023-10-20T10:35:37.183Z", + "updatedAt": "2023-10-24T11:15:06.198Z", "location": 1, "mpaa_establishment_stage": 1, "protection_status": 2, @@ -1139,7 +1139,7 @@ "year": 2023, "area": 56710.02, "createdAt": "2023-10-09T18:01:44.996Z", - "updatedAt": "2023-10-20T10:35:37.266Z", + "updatedAt": "2023-10-24T11:15:06.207Z", "location": 1, "mpaa_establishment_stage": 2, "protection_status": 2, @@ -1151,7 +1151,7 @@ "year": 2023, "area": 311675.1, "createdAt": "2023-10-09T18:02:13.453Z", - "updatedAt": "2023-10-20T10:35:37.322Z", + "updatedAt": "2023-10-24T11:15:06.213Z", "location": 1, "mpaa_establishment_stage": 3, "protection_status": 2, @@ -1163,7 +1163,7 @@ "year": 2023, "area": 84461.76, "createdAt": "2023-10-09T18:02:37.147Z", - "updatedAt": "2023-10-20T10:35:37.374Z", + "updatedAt": "2023-10-24T11:15:06.219Z", "location": 1, "mpaa_establishment_stage": 1, "protection_status": 1, @@ -1175,7 +1175,7 @@ "year": 2023, "area": 164579.41, "createdAt": "2023-10-09T18:02:55.685Z", - "updatedAt": "2023-10-20T10:35:37.444Z", + "updatedAt": "2023-10-24T11:15:06.225Z", "location": 1, "mpaa_establishment_stage": 2, "protection_status": 1, @@ -1187,7 +1187,7 @@ "year": 2023, "area": 202021.55, "createdAt": "2023-10-09T18:03:18.032Z", - "updatedAt": "2023-10-20T10:35:37.519Z", + "updatedAt": "2023-10-24T11:15:06.231Z", "location": 1, "mpaa_establishment_stage": 3, "protection_status": 1, @@ -1200,7 +1200,7 @@ "id": 1, "area": 178766, "createdAt": "2023-10-19T14:11:12.562Z", - "updatedAt": "2023-10-20T10:35:37.858Z", + "updatedAt": "2023-10-24T11:15:06.238Z", "mpa": 2, "fishing_protection_level": 3, "mpaa_protection_level": 2, @@ -1212,7 +1212,7 @@ "id": 2, "area": 67679, "createdAt": "2023-10-19T14:15:18.276Z", - "updatedAt": "2023-10-20T10:35:37.958Z", + "updatedAt": "2023-10-24T11:15:06.248Z", "mpa": 1, "fishing_protection_level": 1, "mpaa_protection_level": 1, @@ -1224,7 +1224,7 @@ "id": 3, "area": 1606529, "createdAt": "2023-10-19T14:22:00.962Z", - "updatedAt": "2023-10-20T10:35:38.026Z", + "updatedAt": "2023-10-24T11:15:06.256Z", "mpa": 3, "fishing_protection_level": 1, "mpaa_protection_level": 1, @@ -1236,7 +1236,7 @@ "id": 4, "area": 434800, "createdAt": "2023-10-19T14:23:07.833Z", - "updatedAt": "2023-10-20T10:35:38.099Z", + "updatedAt": "2023-10-24T11:15:06.265Z", "mpa": 3, "fishing_protection_level": 1, "mpaa_protection_level": 2, @@ -1248,7 +1248,7 @@ "id": 5, "area": 0.15, "createdAt": "2023-10-24T08:55:40.949Z", - "updatedAt": "2023-10-24T08:55:40.949Z", + "updatedAt": "2023-10-24T11:15:06.273Z", "mpa": 4, "fishing_protection_level": 3, "mpaa_protection_level": 2, @@ -1264,7 +1264,7 @@ "name": "Monumento Natural Das Ilhas de Trindade, Martim Vaz e Do Monte Columbia", "area": 67698, "createdAt": "2023-10-13T12:39:17.944Z", - "updatedAt": "2023-10-20T10:35:37.704Z", + "updatedAt": "2023-10-24T11:15:06.283Z", "year": 2018, "mpaa_establishment_stage": 1, "protection_status": 1, @@ -1280,7 +1280,7 @@ "name": "Charlie-Gibbs North High Seas Marine Protected Area", "area": 178766, "createdAt": "2023-10-13T12:51:35.526Z", - "updatedAt": "2023-10-20T10:35:37.762Z", + "updatedAt": "2023-10-24T11:15:06.295Z", "year": 2012, "mpaa_establishment_stage": 1, "protection_status": 1, @@ -1296,7 +1296,7 @@ "name": "Ross Sea Region", "area": 2041330, "createdAt": "2023-10-19T14:20:56.081Z", - "updatedAt": "2023-10-20T10:35:37.814Z", + "updatedAt": "2023-10-24T11:15:06.307Z", "year": 2017, "mpaa_establishment_stage": 1, "protection_status": 1, @@ -1313,7 +1313,7 @@ "name": "Parque Estadual Da Ilha Anchieta", "area": 0.15, "createdAt": "2023-10-24T08:50:35.738Z", - "updatedAt": "2023-10-24T08:55:11.587Z", + "updatedAt": "2023-10-24T11:15:06.320Z", "year": 1977, "mpaa_establishment_stage": 1, "protection_status": 1, @@ -1331,7 +1331,7 @@ "name": "Saltmarshes", "info": null, "createdAt": "2023-10-09T17:54:55.874Z", - "updatedAt": "2023-10-20T10:35:38.170Z", + "updatedAt": "2023-10-24T11:15:06.330Z", "createdBy": null, "updatedBy": null }, @@ -1341,7 +1341,7 @@ "name": "Seagrasses", "info": null, "createdAt": "2023-10-09T17:55:08.906Z", - "updatedAt": "2023-10-20T10:35:38.195Z", + "updatedAt": "2023-10-24T11:15:06.333Z", "createdBy": null, "updatedBy": null }, @@ -1351,7 +1351,7 @@ "name": "Warm-water corals", "info": null, "createdAt": "2023-10-09T17:55:31.406Z", - "updatedAt": "2023-10-20T10:35:38.215Z", + "updatedAt": "2023-10-24T11:15:06.336Z", "createdBy": null, "updatedBy": null }, @@ -1361,7 +1361,7 @@ "name": "Cold-water corals", "info": null, "createdAt": "2023-10-09T17:55:51.134Z", - "updatedAt": "2023-10-20T10:35:38.235Z", + "updatedAt": "2023-10-24T11:15:06.339Z", "createdBy": null, "updatedBy": null }, @@ -1371,7 +1371,7 @@ "name": "Mangroves", "info": null, "createdAt": "2023-10-09T17:56:06.117Z", - "updatedAt": "2023-10-20T10:35:38.255Z", + "updatedAt": "2023-10-24T11:15:06.342Z", "createdBy": null, "updatedBy": null }, @@ -1381,7 +1381,7 @@ "name": "Seamounts", "info": null, "createdAt": "2023-10-09T17:56:21.561Z", - "updatedAt": "2023-10-20T10:35:38.275Z", + "updatedAt": "2023-10-24T11:15:06.345Z", "createdBy": null, "updatedBy": null } @@ -1393,7 +1393,7 @@ "protectedArea": 111638.25, "totalArea": 224435.08, "createdAt": "2023-10-09T17:57:00.168Z", - "updatedAt": "2023-10-20T10:35:38.304Z", + "updatedAt": "2023-10-24T11:15:06.348Z", "location": 1, "habitat": 1, "createdBy": null, @@ -1405,7 +1405,7 @@ "protectedArea": 74787.45, "totalArea": 314001.94, "createdAt": "2023-10-09T17:57:24.349Z", - "updatedAt": "2023-10-20T10:35:38.352Z", + "updatedAt": "2023-10-24T11:15:06.363Z", "location": 1, "habitat": 2, "createdBy": null, @@ -1417,7 +1417,7 @@ "protectedArea": 63259.5, "totalArea": 149886.97, "createdAt": "2023-10-09T17:57:55.786Z", - "updatedAt": "2023-10-20T10:35:38.401Z", + "updatedAt": "2023-10-24T11:15:06.371Z", "location": 1, "habitat": 3, "createdBy": null, @@ -1429,7 +1429,7 @@ "protectedArea": 4400.14, "totalArea": 15336.98, "createdAt": "2023-10-09T17:58:29.609Z", - "updatedAt": "2023-10-20T10:35:38.456Z", + "updatedAt": "2023-10-24T11:15:06.376Z", "location": 1, "habitat": 4, "createdBy": null, @@ -1441,7 +1441,7 @@ "protectedArea": 61287.2, "totalArea": 147358.99, "createdAt": "2023-10-09T17:58:54.453Z", - "updatedAt": "2023-10-20T10:35:38.514Z", + "updatedAt": "2023-10-24T11:15:06.381Z", "location": 1, "habitat": 5, "createdBy": null, @@ -1453,12 +1453,104 @@ "protectedArea": 297168.14, "totalArea": 352349.89, "createdAt": "2023-10-09T17:59:25.804Z", - "updatedAt": "2023-10-20T10:35:38.552Z", + "updatedAt": "2023-10-24T11:15:06.387Z", "location": 1, "habitat": 6, "createdBy": null, "updatedBy": null } + }, + "api::data-info.data-info": { + "1": { + "id": 1, + "slug": "high-seas", + "createdAt": "2023-10-24T12:43:33.345Z", + "updatedAt": "2023-10-24T13:05:36.641Z", + "content": "High Seas refers to all Marine Areas Beyond National Jurisdiction. It is also abbreviated as ABNJ. ", + "createdBy": null, + "updatedBy": null + }, + "2": { + "id": 2, + "slug": "location-type", + "createdAt": "2023-10-24T12:56:35.929Z", + "updatedAt": "2023-10-24T12:56:35.929Z", + "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur pellentesque a velit quis euismod. Nam efficitur pulvinar tincidunt. Duis sollicitudin ligula lacinia pretium scelerisque. Quisque aliquam vel ipsum non porta. Donec sagittis ex sed urna maximus finibus. Pellentesque ac lobortis dui. Donec eget ex volutpat, hendrerit tellus ut, bibendum lacus. Pellentesque mi lorem, dictum in dui vitae, semper vulputate mauris. Phasellus id faucibus mi, a finibus orci. Suspendisse efficitur risus aliquet ex ornare, vitae pellentesque orci consequat.\n\n", + "createdBy": null, + "updatedBy": null + }, + "3": { + "id": 3, + "slug": "mpas", + "createdAt": "2023-10-24T12:57:18.317Z", + "updatedAt": "2023-10-24T12:57:18.317Z", + "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur pellentesque a velit quis euismod. Nam efficitur pulvinar tincidunt. Duis sollicitudin ligula lacinia pretium scelerisque. Quisque aliquam vel ipsum non porta. Donec sagittis ex sed urna maximus finibus. Pellentesque ac lobortis dui. Donec eget ex volutpat, hendrerit tellus ut, bibendum lacus. Pellentesque mi lorem, dictum in dui vitae, semper vulputate mauris. Phasellus id faucibus mi, a finibus orci. Suspendisse efficitur risus aliquet ex ornare, vitae pellentesque orci consequat.\n\n", + "createdBy": null, + "updatedBy": null + }, + "4": { + "id": 4, + "slug": "oecms", + "createdAt": "2023-10-24T12:57:30.213Z", + "updatedAt": "2023-10-24T12:57:30.213Z", + "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur pellentesque a velit quis euismod. Nam efficitur pulvinar tincidunt. Duis sollicitudin ligula lacinia pretium scelerisque. Quisque aliquam vel ipsum non porta. Donec sagittis ex sed urna maximus finibus. Pellentesque ac lobortis dui. Donec eget ex volutpat, hendrerit tellus ut, bibendum lacus. Pellentesque mi lorem, dictum in dui vitae, semper vulputate mauris. Phasellus id faucibus mi, a finibus orci. Suspendisse efficitur risus aliquet ex ornare, vitae pellentesque orci consequat.\n\n", + "createdBy": null, + "updatedBy": null + }, + "5": { + "id": 5, + "slug": "protection-level", + "createdAt": "2023-10-24T12:58:26.202Z", + "updatedAt": "2023-10-24T12:58:26.202Z", + "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur pellentesque a velit quis euismod. Nam efficitur pulvinar tincidunt. Duis sollicitudin ligula lacinia pretium scelerisque. Quisque aliquam vel ipsum non porta. Donec sagittis ex sed urna maximus finibus. Pellentesque ac lobortis dui. Donec eget ex volutpat, hendrerit tellus ut, bibendum lacus. Pellentesque mi lorem, dictum in dui vitae, semper vulputate mauris. Phasellus id faucibus mi, a finibus orci. Suspendisse efficitur risus aliquet ex ornare, vitae pellentesque orci consequat.\n\n", + "createdBy": null, + "updatedBy": null + }, + "6": { + "id": 6, + "slug": "fishing-protection-level", + "createdAt": "2023-10-24T12:58:54.312Z", + "updatedAt": "2023-10-24T12:58:54.312Z", + "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur pellentesque a velit quis euismod. Nam efficitur pulvinar tincidunt. Duis sollicitudin ligula lacinia pretium scelerisque. Quisque aliquam vel ipsum non porta. Donec sagittis ex sed urna maximus finibus. Pellentesque ac lobortis dui. Donec eget ex volutpat, hendrerit tellus ut, bibendum lacus. Pellentesque mi lorem, dictum in dui vitae, semper vulputate mauris. Phasellus id faucibus mi, a finibus orci. Suspendisse efficitur risus aliquet ex ornare, vitae pellentesque orci consequat.\n\n", + "createdBy": null, + "updatedBy": null + }, + "7": { + "id": 7, + "slug": "coverage", + "createdAt": "2023-10-24T12:59:13.493Z", + "updatedAt": "2023-10-24T12:59:13.493Z", + "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur pellentesque a velit quis euismod. Nam efficitur pulvinar tincidunt. Duis sollicitudin ligula lacinia pretium scelerisque. Quisque aliquam vel ipsum non porta. Donec sagittis ex sed urna maximus finibus. Pellentesque ac lobortis dui. Donec eget ex volutpat, hendrerit tellus ut, bibendum lacus. Pellentesque mi lorem, dictum in dui vitae, semper vulputate mauris. Phasellus id faucibus mi, a finibus orci. Suspendisse efficitur risus aliquet ex ornare, vitae pellentesque orci consequat.\n\n", + "createdBy": null, + "updatedBy": null + }, + "8": { + "id": 8, + "slug": "global-contribution", + "createdAt": "2023-10-24T12:59:30.211Z", + "updatedAt": "2023-10-24T12:59:30.211Z", + "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur pellentesque a velit quis euismod. Nam efficitur pulvinar tincidunt. Duis sollicitudin ligula lacinia pretium scelerisque. Quisque aliquam vel ipsum non porta. Donec sagittis ex sed urna maximus finibus. Pellentesque ac lobortis dui. Donec eget ex volutpat, hendrerit tellus ut, bibendum lacus. Pellentesque mi lorem, dictum in dui vitae, semper vulputate mauris. Phasellus id faucibus mi, a finibus orci. Suspendisse efficitur risus aliquet ex ornare, vitae pellentesque orci consequat.\n\n", + "createdBy": null, + "updatedBy": null + }, + "9": { + "id": 9, + "slug": "establishment-stage", + "createdAt": "2023-10-24T13:02:15.344Z", + "updatedAt": "2023-10-24T13:02:15.344Z", + "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur pellentesque a velit quis euismod. Nam efficitur pulvinar tincidunt. Duis sollicitudin ligula lacinia pretium scelerisque. Quisque aliquam vel ipsum non porta. Donec sagittis ex sed urna maximus finibus. Pellentesque ac lobortis dui. Donec eget ex volutpat, hendrerit tellus ut, bibendum lacus. Pellentesque mi lorem, dictum in dui vitae, semper vulputate mauris. Phasellus id faucibus mi, a finibus orci. Suspendisse efficitur risus aliquet ex ornare, vitae pellentesque orci consequat.\n\n", + "createdBy": null, + "updatedBy": null + }, + "10": { + "id": 10, + "slug": "30x30-target", + "createdAt": "2023-10-24T13:04:28.869Z", + "updatedAt": "2023-10-24T13:04:28.869Z", + "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur pellentesque a velit quis euismod. Nam efficitur pulvinar tincidunt. Duis sollicitudin ligula lacinia pretium scelerisque. Quisque aliquam vel ipsum non porta. Donec sagittis ex sed urna maximus finibus. Pellentesque ac lobortis dui. Donec eget ex volutpat, hendrerit tellus ut, bibendum lacus. Pellentesque mi lorem, dictum in dui vitae, semper vulputate mauris. Phasellus id faucibus mi, a finibus orci. Suspendisse efficitur risus aliquet ex ornare, vitae pellentesque orci consequat.\n\n", + "createdBy": null, + "updatedBy": null + } } } } \ No newline at end of file diff --git a/cms/src/api/data-info/content-types/data-info/schema.json b/cms/src/api/data-info/content-types/data-info/schema.json new file mode 100644 index 00000000..eeb34dcb --- /dev/null +++ b/cms/src/api/data-info/content-types/data-info/schema.json @@ -0,0 +1,25 @@ +{ + "kind": "collectionType", + "collectionName": "data_infos", + "info": { + "singularName": "data-info", + "pluralName": "data-infos", + "displayName": "Data Info", + "description": "" + }, + "options": { + "draftAndPublish": false + }, + "pluginOptions": {}, + "attributes": { + "slug": { + "type": "string", + "required": true, + "unique": true + }, + "content": { + "type": "text", + "required": true + } + } +} diff --git a/cms/src/api/data-info/controllers/data-info.ts b/cms/src/api/data-info/controllers/data-info.ts new file mode 100644 index 00000000..6a633f90 --- /dev/null +++ b/cms/src/api/data-info/controllers/data-info.ts @@ -0,0 +1,7 @@ +/** + * data-info controller + */ + +import { factories } from '@strapi/strapi' + +export default factories.createCoreController('api::data-info.data-info'); diff --git a/cms/src/api/data-info/documentation/1.0.0/data-info.json b/cms/src/api/data-info/documentation/1.0.0/data-info.json new file mode 100644 index 00000000..b7e80967 --- /dev/null +++ b/cms/src/api/data-info/documentation/1.0.0/data-info.json @@ -0,0 +1,257 @@ +{ + "/data-infos": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DataInfoListResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Data-info" + ], + "parameters": [ + { + "name": "sort", + "in": "query", + "description": "Sort by attributes ascending (asc) or descending (desc)", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "pagination[withCount]", + "in": "query", + "description": "Return page/pageSize (default: true)", + "deprecated": false, + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "name": "pagination[page]", + "in": "query", + "description": "Page number (default: 0)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "pagination[pageSize]", + "in": "query", + "description": "Page size (default: 25)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "pagination[start]", + "in": "query", + "description": "Offset value (default: 0)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "pagination[limit]", + "in": "query", + "description": "Number of entities to return (default: 25)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "fields", + "in": "query", + "description": "Fields to return (ex: title,author)", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "populate", + "in": "query", + "description": "Relations to return", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "filters", + "in": "query", + "description": "Filters to apply", + "deprecated": false, + "required": false, + "schema": { + "type": "object" + }, + "style": "deepObject" + }, + { + "name": "locale", + "in": "query", + "description": "Locale to apply", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + } + ], + "operationId": "get/data-infos" + } + }, + "/data-infos/{id}": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DataInfoResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Data-info" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "get/data-infos/{id}" + } + } +} diff --git a/cms/src/api/data-info/routes/data-info.ts b/cms/src/api/data-info/routes/data-info.ts new file mode 100644 index 00000000..3556538f --- /dev/null +++ b/cms/src/api/data-info/routes/data-info.ts @@ -0,0 +1,10 @@ +/** + * data-info router + */ + +import { factories } from '@strapi/strapi'; + +export default factories.createCoreRouter('api::data-info.data-info', { + only: ['find', 'findOne'] +}); + diff --git a/cms/src/api/data-info/services/data-info.ts b/cms/src/api/data-info/services/data-info.ts new file mode 100644 index 00000000..654de1db --- /dev/null +++ b/cms/src/api/data-info/services/data-info.ts @@ -0,0 +1,7 @@ +/** + * data-info service + */ + +import { factories } from '@strapi/strapi'; + +export default factories.createCoreService('api::data-info.data-info'); diff --git a/cms/types/generated/contentTypes.d.ts b/cms/types/generated/contentTypes.d.ts index 64ebcaf3..28773af9 100644 --- a/cms/types/generated/contentTypes.d.ts +++ b/cms/types/generated/contentTypes.d.ts @@ -677,6 +677,37 @@ export interface PluginUsersPermissionsUser extends Schema.CollectionType { }; } +export interface ApiDataInfoDataInfo extends Schema.CollectionType { + collectionName: 'data_infos'; + info: { + singularName: 'data-info'; + pluralName: 'data-infos'; + displayName: 'Data Info'; + description: ''; + }; + options: { + draftAndPublish: false; + }; + attributes: { + slug: Attribute.String & Attribute.Required & Attribute.Unique; + content: Attribute.Text & Attribute.Required; + createdAt: Attribute.DateTime; + updatedAt: Attribute.DateTime; + createdBy: Attribute.Relation< + 'api::data-info.data-info', + 'oneToOne', + 'admin::user' + > & + Attribute.Private; + updatedBy: Attribute.Relation< + 'api::data-info.data-info', + 'oneToOne', + 'admin::user' + > & + Attribute.Private; + }; +} + export interface ApiFishingProtectionLevelFishingProtectionLevel extends Schema.CollectionType { collectionName: 'fishing_protection_levels'; @@ -1266,6 +1297,7 @@ declare module '@strapi/types' { 'plugin::users-permissions.permission': PluginUsersPermissionsPermission; 'plugin::users-permissions.role': PluginUsersPermissionsRole; 'plugin::users-permissions.user': PluginUsersPermissionsUser; + 'api::data-info.data-info': ApiDataInfoDataInfo; 'api::fishing-protection-level.fishing-protection-level': ApiFishingProtectionLevelFishingProtectionLevel; 'api::fishing-protection-level-stat.fishing-protection-level-stat': ApiFishingProtectionLevelStatFishingProtectionLevelStat; 'api::habitat.habitat': ApiHabitatHabitat;