From 348bf515c2487e5d8e27c46523ffab0ed81b7c02 Mon Sep 17 00:00:00 2001 From: sidemt <25644062+sidemt@users.noreply.github.com> Date: Wed, 23 Aug 2023 15:30:19 +0900 Subject: [PATCH] feat(backend): export config for new endpoints --- .../sync/admin-role.strapi-super-admin.json | 12 +++--- ...uration_content_types##api##post.post.json | 42 +++++++++---------- ...types##plugin##users-permissions.user.json | 10 +++-- .../config/sync/user-role.public.json | 9 ++++ .../1.0.0/full_documentation.json | 2 +- 5 files changed, 43 insertions(+), 32 deletions(-) diff --git a/publish-backend/config/sync/admin-role.strapi-super-admin.json b/publish-backend/config/sync/admin-role.strapi-super-admin.json index 90790d987..b68cf6212 100644 --- a/publish-backend/config/sync/admin-role.strapi-super-admin.json +++ b/publish-backend/config/sync/admin-role.strapi-super-admin.json @@ -11,10 +11,10 @@ "title", "slug", "feature_image", - "author", "body", "excerpt", - "tags" + "tags", + "author" ], "locales": [ "en" @@ -50,10 +50,10 @@ "title", "slug", "feature_image", - "author", "body", "excerpt", - "tags" + "tags", + "author" ], "locales": [ "en" @@ -69,10 +69,10 @@ "title", "slug", "feature_image", - "author", "body", "excerpt", - "tags" + "tags", + "author" ], "locales": [ "en" diff --git a/publish-backend/config/sync/core-store.plugin_content_manager_configuration_content_types##api##post.post.json b/publish-backend/config/sync/core-store.plugin_content_manager_configuration_content_types##api##post.post.json index 1fce988bc..879d0fc83 100644 --- a/publish-backend/config/sync/core-store.plugin_content_manager_configuration_content_types##api##post.post.json +++ b/publish-backend/config/sync/core-store.plugin_content_manager_configuration_content_types##api##post.post.json @@ -62,21 +62,6 @@ "sortable": false } }, - "author": { - "edit": { - "label": "author", - "description": "", - "placeholder": "", - "visible": true, - "editable": true, - "mainField": "username" - }, - "list": { - "label": "author", - "searchable": true, - "sortable": true - } - }, "body": { "edit": { "label": "body", @@ -120,6 +105,21 @@ "sortable": false } }, + "author": { + "edit": { + "label": "author", + "description": "", + "placeholder": "", + "visible": true, + "editable": true, + "mainField": "username" + }, + "list": { + "label": "author", + "searchable": true, + "sortable": true + } + }, "createdAt": { "edit": { "label": "createdAt", @@ -173,12 +173,6 @@ "size": 6 } ], - [ - { - "name": "author", - "size": 6 - } - ], [ { "name": "body", @@ -194,6 +188,12 @@ "name": "tags", "size": 6 } + ], + [ + { + "name": "author", + "size": 6 + } ] ] } diff --git a/publish-backend/config/sync/core-store.plugin_content_manager_configuration_content_types##plugin##users-permissions.user.json b/publish-backend/config/sync/core-store.plugin_content_manager_configuration_content_types##plugin##users-permissions.user.json index 4bcd7f6cf..3f912b40f 100644 --- a/publish-backend/config/sync/core-store.plugin_content_manager_configuration_content_types##plugin##users-permissions.user.json +++ b/publish-backend/config/sync/core-store.plugin_content_manager_configuration_content_types##plugin##users-permissions.user.json @@ -409,10 +409,6 @@ { "name": "last_seen", "size": 6 - }, - { - "name": "posts", - "size": 6 } ], [ @@ -424,6 +420,12 @@ "name": "profile_image", "size": 6 } + ], + [ + { + "name": "posts", + "size": 6 + } ] ] } diff --git a/publish-backend/config/sync/user-role.public.json b/publish-backend/config/sync/user-role.public.json index e6e7e4eac..34a24ae0a 100644 --- a/publish-backend/config/sync/user-role.public.json +++ b/publish-backend/config/sync/user-role.public.json @@ -3,6 +3,15 @@ "description": "Default role given to unauthenticated user (unauthenticated API calls).", "type": "public", "permissions": [ + { + "action": "api::custom-post.custom-post.find" + }, + { + "action": "api::custom-post.custom-post.findOne" + }, + { + "action": "api::custom-post.custom-post.findOneBySlug" + }, { "action": "api::post.post.find" }, diff --git a/publish-backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json b/publish-backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json index fd8a5647f..842e024f0 100644 --- a/publish-backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json +++ b/publish-backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json @@ -7,7 +7,7 @@ "termsOfService": null, "contact": null, "license": null, - "x-generation-date": "2023-08-21T16:30:33.656Z" + "x-generation-date": "2023-08-23T06:29:11.115Z" }, "x-strapi-config": { "path": "/documentation",