diff --git a/strapi/src/api/project-requirement/content-types/project-requirement/schema.json b/strapi/src/api/project-requirement/content-types/project-requirement/schema.json new file mode 100644 index 0000000..f414e0d --- /dev/null +++ b/strapi/src/api/project-requirement/content-types/project-requirement/schema.json @@ -0,0 +1,33 @@ +{ + "kind": "collectionType", + "collectionName": "project_requirements", + "info": { + "singularName": "project-requirement", + "pluralName": "project-requirements", + "displayName": "Project Requirement", + "description": "" + }, + "options": { + "draftAndPublish": true + }, + "pluginOptions": {}, + "attributes": { + "Description": { + "type": "blocks", + "required": true + }, + "Title": { + "type": "string", + "required": true + }, + "Demo": { + "type": "media", + "multiple": false, + "required": false, + "allowedTypes": [ + "images", + "videos" + ] + } + } +} diff --git a/strapi/src/api/project-requirement/controllers/project-requirement.ts b/strapi/src/api/project-requirement/controllers/project-requirement.ts new file mode 100644 index 0000000..ec74a17 --- /dev/null +++ b/strapi/src/api/project-requirement/controllers/project-requirement.ts @@ -0,0 +1,7 @@ +/** + * project-requirement controller + */ + +import { factories } from '@strapi/strapi' + +export default factories.createCoreController('api::project-requirement.project-requirement'); diff --git a/strapi/src/api/project-requirement/routes/project-requirement.ts b/strapi/src/api/project-requirement/routes/project-requirement.ts new file mode 100644 index 0000000..4ec1c67 --- /dev/null +++ b/strapi/src/api/project-requirement/routes/project-requirement.ts @@ -0,0 +1,7 @@ +/** + * project-requirement router + */ + +import { factories } from '@strapi/strapi'; + +export default factories.createCoreRouter('api::project-requirement.project-requirement'); diff --git a/strapi/src/api/project-requirement/services/project-requirement.ts b/strapi/src/api/project-requirement/services/project-requirement.ts new file mode 100644 index 0000000..bb8230d --- /dev/null +++ b/strapi/src/api/project-requirement/services/project-requirement.ts @@ -0,0 +1,7 @@ +/** + * project-requirement service + */ + +import { factories } from '@strapi/strapi'; + +export default factories.createCoreService('api::project-requirement.project-requirement');