| @@ -0,0 +1,52 @@ | |||||
| { | |||||
| "routes": [ | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/product-otrs", | |||||
| "handler": "product-otr.find", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/product-otrs/count", | |||||
| "handler": "product-otr.count", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/product-otrs/:id", | |||||
| "handler": "product-otr.findOne", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "POST", | |||||
| "path": "/product-otrs", | |||||
| "handler": "product-otr.create", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "PUT", | |||||
| "path": "/product-otrs/:id", | |||||
| "handler": "product-otr.update", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "DELETE", | |||||
| "path": "/product-otrs/:id", | |||||
| "handler": "product-otr.delete", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| } | |||||
| ] | |||||
| } | |||||
| @@ -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 = {}; | |||||
| @@ -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 = {}; | |||||
| @@ -0,0 +1,25 @@ | |||||
| { | |||||
| "kind": "collectionType", | |||||
| "collectionName": "product_otrs", | |||||
| "info": { | |||||
| "name": "Product_OTR", | |||||
| "description": "" | |||||
| }, | |||||
| "options": { | |||||
| "increments": true, | |||||
| "timestamps": true, | |||||
| "draftAndPublish": true | |||||
| }, | |||||
| "attributes": { | |||||
| "product": { | |||||
| "model": "product", | |||||
| "via": "product_otrs" | |||||
| }, | |||||
| "name": { | |||||
| "type": "string" | |||||
| }, | |||||
| "price": { | |||||
| "type": "biginteger" | |||||
| } | |||||
| } | |||||
| } | |||||
| @@ -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 = {}; | |||||
| @@ -223,6 +223,16 @@ | |||||
| }, | }, | ||||
| "otr_price_bengkulu": { | "otr_price_bengkulu": { | ||||
| "type": "biginteger" | "type": "biginteger" | ||||
| }, | |||||
| "price1": { | |||||
| "type": "biginteger" | |||||
| }, | |||||
| "price2": { | |||||
| "type": "biginteger" | |||||
| }, | |||||
| "product_otrs": { | |||||
| "via": "product", | |||||
| "collection": "product-otr" | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| @@ -0,0 +1,52 @@ | |||||
| { | |||||
| "routes": [ | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/yg-parts", | |||||
| "handler": "yg-part.find", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/yg-parts/count", | |||||
| "handler": "yg-part.count", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/yg-parts/:id", | |||||
| "handler": "yg-part.findOne", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "POST", | |||||
| "path": "/yg-parts", | |||||
| "handler": "yg-part.create", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "PUT", | |||||
| "path": "/yg-parts/:id", | |||||
| "handler": "yg-part.update", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "DELETE", | |||||
| "path": "/yg-parts/:id", | |||||
| "handler": "yg-part.delete", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| } | |||||
| ] | |||||
| } | |||||
| @@ -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 = {}; | |||||
| @@ -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 = {}; | |||||
| @@ -0,0 +1,42 @@ | |||||
| { | |||||
| "kind": "collectionType", | |||||
| "collectionName": "yg_parts", | |||||
| "info": { | |||||
| "name": "YGPart", | |||||
| "description": "" | |||||
| }, | |||||
| "options": { | |||||
| "increments": true, | |||||
| "timestamps": true, | |||||
| "draftAndPublish": true | |||||
| }, | |||||
| "attributes": { | |||||
| "name": { | |||||
| "type": "string" | |||||
| }, | |||||
| "img": { | |||||
| "model": "file", | |||||
| "via": "related", | |||||
| "allowedTypes": [ | |||||
| "images", | |||||
| "files", | |||||
| "videos" | |||||
| ], | |||||
| "plugin": "upload", | |||||
| "required": false | |||||
| }, | |||||
| "ygp_units": { | |||||
| "collection": "ygp", | |||||
| "via": "yg_part" | |||||
| }, | |||||
| "description": { | |||||
| "type": "text" | |||||
| }, | |||||
| "price1": { | |||||
| "type": "biginteger" | |||||
| }, | |||||
| "price2": { | |||||
| "type": "biginteger" | |||||
| } | |||||
| } | |||||
| } | |||||
| @@ -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 = {}; | |||||
| @@ -2,7 +2,7 @@ | |||||
| "kind": "collectionType", | "kind": "collectionType", | ||||
| "collectionName": "ygps", | "collectionName": "ygps", | ||||
| "info": { | "info": { | ||||
| "name": "YGP", | |||||
| "name": "YGP_Unit", | |||||
| "description": "" | "description": "" | ||||
| }, | }, | ||||
| "options": { | "options": { | ||||
| @@ -45,6 +45,13 @@ | |||||
| }, | }, | ||||
| "otr_price_bengkulu": { | "otr_price_bengkulu": { | ||||
| "type": "biginteger" | "type": "biginteger" | ||||
| }, | |||||
| "yg_part": { | |||||
| "via": "ygp_units", | |||||
| "model": "yg-part" | |||||
| }, | |||||
| "berat": { | |||||
| "type": "biginteger" | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||