diff --git a/api/accessories/models/accessories.settings.json b/api/accessories/models/accessories.settings.json index 57afc5b..40178a5 100644 --- a/api/accessories/models/accessories.settings.json +++ b/api/accessories/models/accessories.settings.json @@ -35,16 +35,6 @@ "plugin": "upload", "required": false }, - "category_sparepart": { - "type": "enumeration", - "enum": [ - "YGP", - "Yamalube", - "Helmet", - "Apparel", - "Accessories" - ] - }, "stock": { "type": "string" } diff --git a/api/yamalube/config/routes.json b/api/yamalube/config/routes.json new file mode 100644 index 0000000..9d34801 --- /dev/null +++ b/api/yamalube/config/routes.json @@ -0,0 +1,52 @@ +{ + "routes": [ + { + "method": "GET", + "path": "/yamalubes", + "handler": "yamalube.find", + "config": { + "policies": [] + } + }, + { + "method": "GET", + "path": "/yamalubes/count", + "handler": "yamalube.count", + "config": { + "policies": [] + } + }, + { + "method": "GET", + "path": "/yamalubes/:id", + "handler": "yamalube.findOne", + "config": { + "policies": [] + } + }, + { + "method": "POST", + "path": "/yamalubes", + "handler": "yamalube.create", + "config": { + "policies": [] + } + }, + { + "method": "PUT", + "path": "/yamalubes/:id", + "handler": "yamalube.update", + "config": { + "policies": [] + } + }, + { + "method": "DELETE", + "path": "/yamalubes/:id", + "handler": "yamalube.delete", + "config": { + "policies": [] + } + } + ] +} diff --git a/api/yamalube/controllers/yamalube.js b/api/yamalube/controllers/yamalube.js new file mode 100644 index 0000000..556f4fc --- /dev/null +++ b/api/yamalube/controllers/yamalube.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/controllers.html#core-controllers) + * to customize this controller + */ + +module.exports = {}; diff --git a/api/yamalube/models/yamalube.js b/api/yamalube/models/yamalube.js new file mode 100644 index 0000000..dd847ef --- /dev/null +++ b/api/yamalube/models/yamalube.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/models.html#lifecycle-hooks) + * to customize this model + */ + +module.exports = {}; diff --git a/api/yamalube/models/yamalube.settings.json b/api/yamalube/models/yamalube.settings.json new file mode 100644 index 0000000..1bd82f6 --- /dev/null +++ b/api/yamalube/models/yamalube.settings.json @@ -0,0 +1,40 @@ +{ + "kind": "collectionType", + "collectionName": "yamalubes", + "info": { + "name": "Yamalube" + }, + "options": { + "increments": true, + "timestamps": true, + "draftAndPublish": true + }, + "attributes": { + "name": { + "type": "string" + }, + "part_code": { + "type": "string" + }, + "price": { + "type": "biginteger" + }, + "stock": { + "type": "biginteger" + }, + "description": { + "type": "richtext" + }, + "img": { + "model": "file", + "via": "related", + "allowedTypes": [ + "images", + "files", + "videos" + ], + "plugin": "upload", + "required": false + } + } +} diff --git a/api/yamalube/services/yamalube.js b/api/yamalube/services/yamalube.js new file mode 100644 index 0000000..6bc4168 --- /dev/null +++ b/api/yamalube/services/yamalube.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/services.html#core-services) + * to customize this service + */ + +module.exports = {}; diff --git a/api/ygp/config/routes.json b/api/ygp/config/routes.json new file mode 100644 index 0000000..ca013a8 --- /dev/null +++ b/api/ygp/config/routes.json @@ -0,0 +1,52 @@ +{ + "routes": [ + { + "method": "GET", + "path": "/ygps", + "handler": "ygp.find", + "config": { + "policies": [] + } + }, + { + "method": "GET", + "path": "/ygps/count", + "handler": "ygp.count", + "config": { + "policies": [] + } + }, + { + "method": "GET", + "path": "/ygps/:id", + "handler": "ygp.findOne", + "config": { + "policies": [] + } + }, + { + "method": "POST", + "path": "/ygps", + "handler": "ygp.create", + "config": { + "policies": [] + } + }, + { + "method": "PUT", + "path": "/ygps/:id", + "handler": "ygp.update", + "config": { + "policies": [] + } + }, + { + "method": "DELETE", + "path": "/ygps/:id", + "handler": "ygp.delete", + "config": { + "policies": [] + } + } + ] +} diff --git a/api/ygp/controllers/ygp.js b/api/ygp/controllers/ygp.js new file mode 100644 index 0000000..556f4fc --- /dev/null +++ b/api/ygp/controllers/ygp.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/controllers.html#core-controllers) + * to customize this controller + */ + +module.exports = {}; diff --git a/api/ygp/models/ygp.js b/api/ygp/models/ygp.js new file mode 100644 index 0000000..dd847ef --- /dev/null +++ b/api/ygp/models/ygp.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/models.html#lifecycle-hooks) + * to customize this model + */ + +module.exports = {}; diff --git a/api/ygp/models/ygp.settings.json b/api/ygp/models/ygp.settings.json new file mode 100644 index 0000000..59b1ec6 --- /dev/null +++ b/api/ygp/models/ygp.settings.json @@ -0,0 +1,40 @@ +{ + "kind": "collectionType", + "collectionName": "ygps", + "info": { + "name": "YGP" + }, + "options": { + "increments": true, + "timestamps": true, + "draftAndPublish": true + }, + "attributes": { + "name": { + "type": "string" + }, + "part_code": { + "type": "string" + }, + "price": { + "type": "biginteger" + }, + "stock": { + "type": "biginteger" + }, + "description": { + "type": "richtext" + }, + "img": { + "model": "file", + "via": "related", + "allowedTypes": [ + "images", + "files", + "videos" + ], + "plugin": "upload", + "required": false + } + } +} diff --git a/api/ygp/services/ygp.js b/api/ygp/services/ygp.js new file mode 100644 index 0000000..6bc4168 --- /dev/null +++ b/api/ygp/services/ygp.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/services.html#core-services) + * to customize this service + */ + +module.exports = {};