File tree Expand file tree Collapse file tree 15 files changed +287
-16
lines changed
Expand file tree Collapse file tree 15 files changed +287
-16
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "kind" : " collectionType" ,
3+ "collectionName" : " authors" ,
4+ "info" : {
5+ "singularName" : " author" ,
6+ "pluralName" : " authors" ,
7+ "displayName" : " Author"
8+ },
9+ "options" : {
10+ "draftAndPublish" : true
11+ },
12+ "pluginOptions" : {},
13+ "attributes" : {
14+ "author" : {
15+ "type" : " string"
16+ },
17+ "blogs" : {
18+ "type" : " relation" ,
19+ "relation" : " manyToMany" ,
20+ "target" : " api::blog-page.blog-page" ,
21+ "mappedBy" : " authors"
22+ }
23+ }
24+ }
Original file line number Diff line number Diff line change 1+ /**
2+ * author controller
3+ */
4+
5+ import { factories } from '@strapi/strapi'
6+
7+ export default factories . createCoreController ( 'api::author.author' ) ;
Original file line number Diff line number Diff line change 1+ /**
2+ * author router
3+ */
4+
5+ import { factories } from '@strapi/strapi' ;
6+
7+ export default factories . createCoreRouter ( 'api::author.author' ) ;
Original file line number Diff line number Diff line change 1+ /**
2+ * author service
3+ */
4+
5+ import { factories } from '@strapi/strapi' ;
6+
7+ export default factories . createCoreService ( 'api::author.author' ) ;
Original file line number Diff line number Diff line change 1+ {
2+ "kind" : " collectionType" ,
3+ "collectionName" : " blog_pages" ,
4+ "info" : {
5+ "singularName" : " blog-page" ,
6+ "pluralName" : " blog-pages" ,
7+ "displayName" : " Blog Page" ,
8+ "description" : " "
9+ },
10+ "options" : {
11+ "draftAndPublish" : true
12+ },
13+ "pluginOptions" : {},
14+ "attributes" : {
15+ "title" : {
16+ "type" : " string" ,
17+ "required" : true
18+ },
19+ "seoTitle" : {
20+ "type" : " string" ,
21+ "required" : true
22+ },
23+ "description" : {
24+ "type" : " text" ,
25+ "required" : true
26+ },
27+ "image" : {
28+ "type" : " media" ,
29+ "multiple" : false ,
30+ "required" : false ,
31+ "allowedTypes" : [
32+ " images" ,
33+ " files" ,
34+ " videos" ,
35+ " audios"
36+ ]
37+ },
38+ "slug" : {
39+ "type" : " string" ,
40+ "required" : true
41+ },
42+ "content" : {
43+ "type" : " richtext" ,
44+ "required" : true
45+ },
46+ "publishDate" : {
47+ "type" : " date" ,
48+ "required" : true
49+ },
50+ "catogaries" : {
51+ "type" : " relation" ,
52+ "relation" : " manyToMany" ,
53+ "target" : " api::catogary.catogary" ,
54+ "mappedBy" : " blogs"
55+ },
56+ "caseStudies" : {
57+ "type" : " boolean" ,
58+ "default" : false
59+ },
60+ "authors" : {
61+ "type" : " relation" ,
62+ "relation" : " manyToMany" ,
63+ "target" : " api::author.author" ,
64+ "inversedBy" : " blogs"
65+ },
66+ "seoDescription" : {
67+ "type" : " text"
68+ }
69+ }
70+ }
Original file line number Diff line number Diff line change 1+ /**
2+ * blog-page controller
3+ */
4+
5+ import { factories } from '@strapi/strapi'
6+
7+ export default factories . createCoreController ( 'api::blog-page.blog-page' ) ;
Original file line number Diff line number Diff line change 1+ /**
2+ * blog-page router
3+ */
4+
5+ import { factories } from '@strapi/strapi' ;
6+
7+ export default factories . createCoreRouter ( 'api::blog-page.blog-page' ) ;
Original file line number Diff line number Diff line change 1+ /**
2+ * blog-page service
3+ */
4+
5+ import { factories } from '@strapi/strapi' ;
6+
7+ export default factories . createCoreService ( 'api::blog-page.blog-page' ) ;
Original file line number Diff line number Diff line change 1+ {
2+ "kind" : " collectionType" ,
3+ "collectionName" : " catogaries" ,
4+ "info" : {
5+ "singularName" : " catogary" ,
6+ "pluralName" : " catogaries" ,
7+ "displayName" : " Catogary"
8+ },
9+ "options" : {
10+ "draftAndPublish" : true
11+ },
12+ "pluginOptions" : {},
13+ "attributes" : {
14+ "category" : {
15+ "type" : " string"
16+ },
17+ "blogs" : {
18+ "type" : " relation" ,
19+ "relation" : " manyToMany" ,
20+ "target" : " api::blog-page.blog-page" ,
21+ "inversedBy" : " catogaries"
22+ }
23+ }
24+ }
Original file line number Diff line number Diff line change 1+ /**
2+ * catogary controller
3+ */
4+
5+ import { factories } from '@strapi/strapi'
6+
7+ export default factories . createCoreController ( 'api::catogary.catogary' ) ;
You can’t perform that action at this time.
0 commit comments