Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Features/models #3

Merged
merged 13 commits into from
Mar 7, 2022
44 changes: 44 additions & 0 deletions src/api/blog/content-types/blog/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"kind": "collectionType",
"collectionName": "blogs",
"info": {
"singularName": "blog",
"pluralName": "blogs",
"displayName": "Blog",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"title": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"content": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "richtext"
},
"media": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "string"
}
}
}
9 changes: 9 additions & 0 deletions src/api/blog/controllers/blog.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* blog controller
*/

const { createCoreController } = require('@strapi/strapi').factories;

module.exports = createCoreController('api::blog.blog');
9 changes: 9 additions & 0 deletions src/api/blog/routes/blog.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* blog router.
*/

const { createCoreRouter } = require('@strapi/strapi').factories;

module.exports = createCoreRouter('api::blog.blog');
9 changes: 9 additions & 0 deletions src/api/blog/services/blog.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* blog service.
*/

const { createCoreService } = require('@strapi/strapi').factories;

module.exports = createCoreService('api::blog.blog');
66 changes: 66 additions & 0 deletions src/api/description/content-types/description/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"kind": "singleType",
"collectionName": "descriptions",
"info": {
"singularName": "description",
"pluralName": "descriptions",
"displayName": "Description",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"role": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string",
"required": true
},
"avatar": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "string",
"maxLength": 2048,
"regex": "https?://.*",
"minLength": 7
},
"description": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "text"
},
"birthdate": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "date",
"required": true
},
"name": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "string",
"required": true
}
}
}
9 changes: 9 additions & 0 deletions src/api/description/controllers/description.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* description controller
*/

const { createCoreController } = require('@strapi/strapi').factories;

module.exports = createCoreController('api::description.description');
9 changes: 9 additions & 0 deletions src/api/description/routes/description.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* description router.
*/

const { createCoreRouter } = require('@strapi/strapi').factories;

module.exports = createCoreRouter('api::description.description');
9 changes: 9 additions & 0 deletions src/api/description/services/description.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* description service.
*/

const { createCoreService } = require('@strapi/strapi').factories;

module.exports = createCoreService('api::description.description');
82 changes: 82 additions & 0 deletions src/api/diplome/content-types/diplome/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"kind": "collectionType",
"collectionName": "diplomes",
"info": {
"singularName": "diplome",
"pluralName": "diplomes",
"displayName": "Diplomes",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"start": {
"type": "date",
"pluginOptions": {
"i18n": {
"localized": false
}
},
"required": true
},
"end": {
"type": "date",
"pluginOptions": {
"i18n": {
"localized": false
}
},
"required": true
},
"name": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": false
}
},
"required": true
},
"location": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": true
}
},
"required": true
},
"description": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "text"
},
"isApprentice": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "boolean",
"default": false,
"required": true
},
"logo": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "string"
}
}
}
9 changes: 9 additions & 0 deletions src/api/diplome/controllers/diplome.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* diplome controller
*/

const { createCoreController } = require('@strapi/strapi').factories;

module.exports = createCoreController('api::diplome.diplome');
9 changes: 9 additions & 0 deletions src/api/diplome/routes/diplome.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* diplome router.
*/

const { createCoreRouter } = require('@strapi/strapi').factories;

module.exports = createCoreRouter('api::diplome.diplome');
9 changes: 9 additions & 0 deletions src/api/diplome/services/diplome.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* diplome service.
*/

const { createCoreService } = require('@strapi/strapi').factories;

module.exports = createCoreService('api::diplome.diplome');
91 changes: 91 additions & 0 deletions src/api/experience/content-types/experience/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
"kind": "collectionType",
"collectionName": "experiences",
"info": {
"singularName": "experience",
"pluralName": "experiences",
"displayName": "Travails",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"start": {
"type": "date",
"pluginOptions": {
"i18n": {
"localized": false
}
},
"required": true
},
"end": {
"type": "date",
"pluginOptions": {
"i18n": {
"localized": false
}
},
"required": false
},
"name": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": false
}
},
"required": true
},
"location": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": false
}
},
"required": false
},
"role": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string",
"required": true
},
"description": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "text",
"required": false
},
"logo": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "string"
},
"isApprentice": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "boolean",
"default": false
}
}
}
9 changes: 9 additions & 0 deletions src/api/experience/controllers/experience.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* experience controller
*/

const { createCoreController } = require('@strapi/strapi').factories;

module.exports = createCoreController('api::experience.experience');
9 changes: 9 additions & 0 deletions src/api/experience/routes/experience.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* experience router.
*/

const { createCoreRouter } = require('@strapi/strapi').factories;

module.exports = createCoreRouter('api::experience.experience');
Loading