Create awtis & mizik routes & models

This commit is contained in:
2020-12-06 22:13:45 +01:00
parent 3c39285f38
commit b248272d71
13 changed files with 314 additions and 0 deletions
+52
View File
@@ -0,0 +1,52 @@
{
"routes": [
{
"method": "GET",
"path": "/awtis",
"handler": "awtis.find",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/awtis/count",
"handler": "awtis.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/awtis/:id",
"handler": "awtis.findOne",
"config": {
"policies": []
}
},
{
"method": "POST",
"path": "/awtis",
"handler": "awtis.create",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/awtis/:id",
"handler": "awtis.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/awtis/:id",
"handler": "awtis.delete",
"config": {
"policies": []
}
}
]
}
+8
View File
@@ -0,0 +1,8 @@
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/controllers.html#core-controllers)
* to customize this controller
*/
module.exports = {};
+8
View File
@@ -0,0 +1,8 @@
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/models.html#lifecycle-hooks)
* to customize this model
*/
module.exports = {};
+46
View File
@@ -0,0 +1,46 @@
{
"kind": "collectionType",
"collectionName": "awtis",
"info": {
"name": "awtis",
"description": ""
},
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": true
},
"attributes": {
"alias": {
"type": "string",
"unique": true,
"required": true
},
"prenom": {
"type": "string"
},
"nom": {
"type": "string"
},
"bio": {
"type": "richtext"
},
"naissance": {
"type": "date"
},
"photo": {
"collection": "file",
"via": "related",
"allowedTypes": [
"images"
],
"plugin": "upload",
"required": false
},
"miziks": {
"via": "awtis",
"collection": "mizik",
"dominant": true
}
}
}
+8
View File
@@ -0,0 +1,8 @@
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/services.html#core-services)
* to customize this service
*/
module.exports = {};