Create awtis & mizik routes & models
This commit is contained in:
@@ -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": []
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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 = {};
|
||||
@@ -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 = {};
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 = {};
|
||||
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"routes": [
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/mizik",
|
||||
"handler": "mizik.find",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/mizik/count",
|
||||
"handler": "mizik.count",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/mizik/:id",
|
||||
"handler": "mizik.findOne",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "POST",
|
||||
"path": "/mizik",
|
||||
"handler": "mizik.create",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "PUT",
|
||||
"path": "/mizik/:id",
|
||||
"handler": "mizik.update",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "DELETE",
|
||||
"path": "/mizik/:id",
|
||||
"handler": "mizik.delete",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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 = {};
|
||||
@@ -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 = {};
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "mizik",
|
||||
"info": {
|
||||
"name": "mizik",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"increments": true,
|
||||
"timestamps": true,
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"attributes": {
|
||||
"titre": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"transcription": {
|
||||
"type": "richtext"
|
||||
},
|
||||
"traductions": {
|
||||
"type": "component",
|
||||
"repeatable": false,
|
||||
"component": "trad.traductions"
|
||||
},
|
||||
"annee": {
|
||||
"type": "integer"
|
||||
},
|
||||
"liens": {
|
||||
"type": "component",
|
||||
"repeatable": true,
|
||||
"component": "url.liens"
|
||||
},
|
||||
"awtis": {
|
||||
"collection": "awtis",
|
||||
"via": "miziks"
|
||||
},
|
||||
"kouteyAchtey": {
|
||||
"type": "component",
|
||||
"repeatable": true,
|
||||
"component": "store.store"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 = {};
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"collectionName": "components_store_stores",
|
||||
"info": {
|
||||
"name": "Album",
|
||||
"icon": "music",
|
||||
"description": ""
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"lien": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"store": {
|
||||
"type": "enumeration",
|
||||
"enum": [
|
||||
"Tidal",
|
||||
"Spotify",
|
||||
"Deezer",
|
||||
"Qobuz",
|
||||
"PlayStore",
|
||||
"AppleMusic",
|
||||
"Autre"
|
||||
],
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"collectionName": "components_trad_traductions",
|
||||
"info": {
|
||||
"name": "traductions",
|
||||
"icon": "spell-check",
|
||||
"description": ""
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"francais": {
|
||||
"type": "richtext"
|
||||
},
|
||||
"english": {
|
||||
"type": "richtext"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"collectionName": "components_url_liens",
|
||||
"info": {
|
||||
"name": "liens",
|
||||
"icon": "link",
|
||||
"description": ""
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"lien": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"Hebergeur": {
|
||||
"type": "enumeration",
|
||||
"enum": [
|
||||
"YouTube",
|
||||
"PeerTube",
|
||||
"DailyMotion",
|
||||
"Vimeo",
|
||||
"SoundCloud",
|
||||
"Autre"
|
||||
],
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user