0.13.4 : add form-template
All checks were successful
Build release Docker image / Build Docker Images (push) Successful in 10m31s
All checks were successful
Build release Docker image / Build Docker Images (push) Successful in 10m31s
This commit is contained in:
@@ -100,6 +100,9 @@
|
||||
"relation": "oneToMany",
|
||||
"target": "api::channel.channel",
|
||||
"mappedBy": "choral"
|
||||
},
|
||||
"available_tags": {
|
||||
"type": "json"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "form_templates",
|
||||
"info": {
|
||||
"singularName": "form-template",
|
||||
"pluralName": "form-templates",
|
||||
"displayName": "FormTemplate"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"title": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"state": {
|
||||
"type": "enumeration",
|
||||
"enum": [
|
||||
"draft",
|
||||
"published",
|
||||
"archived"
|
||||
],
|
||||
"default": "draft"
|
||||
},
|
||||
"original_file": {
|
||||
"allowedTypes": [
|
||||
"images",
|
||||
"files",
|
||||
"videos",
|
||||
"audios"
|
||||
],
|
||||
"type": "media",
|
||||
"multiple": false
|
||||
},
|
||||
"schema": {
|
||||
"type": "json"
|
||||
},
|
||||
"target_tags": {
|
||||
"type": "json"
|
||||
},
|
||||
"choral": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::choral.choral"
|
||||
},
|
||||
"author": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "plugin::users-permissions.user"
|
||||
}
|
||||
}
|
||||
}
|
||||
7
src/api/form-template/controllers/form-template.ts
Normal file
7
src/api/form-template/controllers/form-template.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* form-template controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::form-template.form-template');
|
||||
7
src/api/form-template/routes/form-template.ts
Normal file
7
src/api/form-template/routes/form-template.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* form-template router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::form-template.form-template');
|
||||
7
src/api/form-template/services/form-template.ts
Normal file
7
src/api/form-template/services/form-template.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* form-template service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::form-template.form-template');
|
||||
File diff suppressed because it is too large
Load Diff
@@ -264,6 +264,9 @@
|
||||
"relation": "oneToMany",
|
||||
"target": "api::order.order",
|
||||
"mappedBy": "user"
|
||||
},
|
||||
"admin_tags": {
|
||||
"type": "json"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user