Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jay Mehta
/
zango-strapi
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 05edab9e
authored
2024-05-09 19:58:07 +0530
by
jaymehta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
enquires
1 parent
19abb7f4
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
49 additions
and
26 deletions
src/api/end-user/content-types/end-user/schema.json
src/api/course-detail/content-types/course-detail/schema.json → src/api/enquiry/content-types/enquiry/schema.json
src/api/course-detail/controllers/course-detail.js → src/api/enquiry/controllers/enquiry.js
src/api/course-detail/routes/course-detail.js → src/api/enquiry/routes/enquiry.js
src/api/course-detail/services/course-detail.js → src/api/enquiry/services/enquiry.js
src/api/experience/content-types/experience/schema.json
src/api/vendor/content-types/vendor/schema.json
src/api/end-user/content-types/end-user/schema.json
View file @
05edab9
...
...
@@ -21,14 +21,14 @@
"age"
:
{
"type"
:
"string"
},
"courseDetail"
:
{
"type"
:
"relation"
,
"relation"
:
"oneToOne"
,
"target"
:
"api::course-detail.course-detail"
,
"inversedBy"
:
"endUser"
},
"email"
:
{
"type"
:
"string"
},
"enquiries"
:
{
"type"
:
"relation"
,
"relation"
:
"oneToOne"
,
"target"
:
"api::enquiry.enquiry"
,
"mappedBy"
:
"endUser"
}
}
}
src/api/
course-detail/content-types/course-detail
/schema.json
→
src/api/
enquiry/content-types/enquiry
/schema.json
View file @
05edab9
{
"kind"
:
"collectionType"
,
"collectionName"
:
"
course_detail
s"
,
"collectionName"
:
"
enquire
s"
,
"info"
:
{
"singularName"
:
"course-detail"
,
"pluralName"
:
"course-details"
,
"displayName"
:
"Course-details"
"singularName"
:
"enquiry"
,
"pluralName"
:
"enquires"
,
"displayName"
:
"Enquires"
,
"description"
:
""
},
"options"
:
{
"draftAndPublish"
:
true
},
"pluginOptions"
:
{},
"attributes"
:
{
"experience"
:
{
"type"
:
"relation"
,
"relation"
:
"oneToOne"
,
"target"
:
"api::experience.experience"
,
"inversedBy"
:
"enquiries"
},
"endUser"
:
{
"type"
:
"relation"
,
"relation"
:
"oneToOne"
,
"target"
:
"api::end-user.end-user"
,
"
mappedBy"
:
"courseDetail
"
"
inversedBy"
:
"enquiries
"
},
"experience"
:
{
"status"
:
{
"type"
:
"enumeration"
,
"enum"
:
[
"pending"
,
"closed"
]
},
"date"
:
{
"type"
:
"date"
},
"vendor"
:
{
"type"
:
"relation"
,
"relation"
:
"oneToOne"
,
"target"
:
"api::
experience.experience
"
,
"
mappedBy"
:
"courseDetail
"
"target"
:
"api::
vendor.vendor
"
,
"
inversedBy"
:
"enquiries
"
}
}
}
src/api/
course-detail/controllers/course-detail
.js
→
src/api/
enquiry/controllers/enquiry
.js
View file @
05edab9
'use strict'
;
/**
*
course-detail
controller
*
enquiry
controller
*/
const
{
createCoreController
}
=
require
(
'@strapi/strapi'
).
factories
;
module
.
exports
=
createCoreController
(
'api::
course-detail.course-detail
'
);
module
.
exports
=
createCoreController
(
'api::
enquiry.enquiry
'
);
src/api/
course-detail/routes/course-detail
.js
→
src/api/
enquiry/routes/enquiry
.js
View file @
05edab9
'use strict'
;
/**
*
course-detail
router
*
enquiry
router
*/
const
{
createCoreRouter
}
=
require
(
'@strapi/strapi'
).
factories
;
module
.
exports
=
createCoreRouter
(
'api::
course-detail.course-detail
'
);
module
.
exports
=
createCoreRouter
(
'api::
enquiry.enquiry
'
);
src/api/
course-detail/services/course-detail
.js
→
src/api/
enquiry/services/enquiry
.js
View file @
05edab9
'use strict'
;
/**
*
course-detail
service
*
enquiry
service
*/
const
{
createCoreService
}
=
require
(
'@strapi/strapi'
).
factories
;
module
.
exports
=
createCoreService
(
'api::
course-detail.course-detail
'
);
module
.
exports
=
createCoreService
(
'api::
enquiry.enquiry
'
);
src/api/experience/content-types/experience/schema.json
View file @
05edab9
...
...
@@ -45,12 +45,6 @@
"target"
:
"api::vendor.vendor"
,
"inversedBy"
:
"experiences"
},
"courseDetail"
:
{
"type"
:
"relation"
,
"relation"
:
"oneToOne"
,
"target"
:
"api::course-detail.course-detail"
,
"inversedBy"
:
"experience"
},
"masterPincode"
:
{
"type"
:
"relation"
,
"relation"
:
"oneToOne"
,
...
...
@@ -154,6 +148,12 @@
},
"minGroupSize"
:
{
"type"
:
"integer"
},
"enquiries"
:
{
"type"
:
"relation"
,
"relation"
:
"oneToOne"
,
"target"
:
"api::enquiry.enquiry"
,
"mappedBy"
:
"experience"
}
}
}
src/api/vendor/content-types/vendor/schema.json
View file @
05edab9
...
...
@@ -67,6 +67,12 @@
},
"addressLine1"
:
{
"type"
:
"text"
},
"enquiries"
:
{
"type"
:
"relation"
,
"relation"
:
"oneToOne"
,
"target"
:
"api::enquiry.enquiry"
,
"inversedBy"
:
"vendor"
}
}
}
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment