Ver código fonte

add collc type product suzuki, honda, hino

master
yusmar 4 anos atrás
pai
commit
0d9aecaeda
16 arquivos alterados com 361 adições e 1 exclusões
  1. +52
    -0
      api/product-hino/config/routes.json
  2. +8
    -0
      api/product-hino/controllers/product-hino.js
  3. +8
    -0
      api/product-hino/models/product-hino.js
  4. +44
    -0
      api/product-hino/models/product-hino.settings.json
  5. +8
    -0
      api/product-hino/services/product-hino.js
  6. +52
    -0
      api/product-honda/config/routes.json
  7. +8
    -0
      api/product-honda/controllers/product-honda.js
  8. +8
    -0
      api/product-honda/models/product-honda.js
  9. +44
    -0
      api/product-honda/models/product-honda.settings.json
  10. +8
    -0
      api/product-honda/services/product-honda.js
  11. +52
    -0
      api/products-suzuki/config/routes.json
  12. +8
    -0
      api/products-suzuki/controllers/products-suzuki.js
  13. +8
    -0
      api/products-suzuki/models/products-suzuki.js
  14. +44
    -0
      api/products-suzuki/models/products-suzuki.settings.json
  15. +8
    -0
      api/products-suzuki/services/products-suzuki.js
  16. +1
    -1
      package.json

+ 52
- 0
api/product-hino/config/routes.json Ver arquivo

@@ -0,0 +1,52 @@
{
"routes": [
{
"method": "GET",
"path": "/product-hinos",
"handler": "product-hino.find",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/product-hinos/count",
"handler": "product-hino.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/product-hinos/:id",
"handler": "product-hino.findOne",
"config": {
"policies": []
}
},
{
"method": "POST",
"path": "/product-hinos",
"handler": "product-hino.create",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/product-hinos/:id",
"handler": "product-hino.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/product-hinos/:id",
"handler": "product-hino.delete",
"config": {
"policies": []
}
}
]
}

+ 8
- 0
api/product-hino/controllers/product-hino.js Ver arquivo

@@ -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 = {};

+ 8
- 0
api/product-hino/models/product-hino.js Ver arquivo

@@ -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 = {};

+ 44
- 0
api/product-hino/models/product-hino.settings.json Ver arquivo

@@ -0,0 +1,44 @@
{
"kind": "collectionType",
"collectionName": "product_hinos",
"info": {
"name": "ProductHino",
"description": ""
},
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": true
},
"attributes": {
"name": {
"type": "string"
},
"description": {
"type": "text"
},
"price": {
"type": "biginteger"
},
"price1": {
"type": "biginteger"
},
"price2": {
"type": "biginteger"
},
"stock": {
"type": "biginteger"
},
"img": {
"collection": "file",
"via": "related",
"allowedTypes": [
"images",
"files",
"videos"
],
"plugin": "upload",
"required": false
}
}
}

+ 8
- 0
api/product-hino/services/product-hino.js Ver arquivo

@@ -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 = {};

+ 52
- 0
api/product-honda/config/routes.json Ver arquivo

@@ -0,0 +1,52 @@
{
"routes": [
{
"method": "GET",
"path": "/product-hondas",
"handler": "product-honda.find",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/product-hondas/count",
"handler": "product-honda.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/product-hondas/:id",
"handler": "product-honda.findOne",
"config": {
"policies": []
}
},
{
"method": "POST",
"path": "/product-hondas",
"handler": "product-honda.create",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/product-hondas/:id",
"handler": "product-honda.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/product-hondas/:id",
"handler": "product-honda.delete",
"config": {
"policies": []
}
}
]
}

+ 8
- 0
api/product-honda/controllers/product-honda.js Ver arquivo

@@ -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 = {};

+ 8
- 0
api/product-honda/models/product-honda.js Ver arquivo

@@ -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 = {};

+ 44
- 0
api/product-honda/models/product-honda.settings.json Ver arquivo

@@ -0,0 +1,44 @@
{
"kind": "collectionType",
"collectionName": "product_hondas",
"info": {
"name": "ProductHonda",
"description": ""
},
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": true
},
"attributes": {
"name": {
"type": "string"
},
"description": {
"type": "text"
},
"price": {
"type": "biginteger"
},
"price1": {
"type": "biginteger"
},
"price2": {
"type": "biginteger"
},
"stock": {
"type": "biginteger"
},
"img": {
"collection": "file",
"via": "related",
"allowedTypes": [
"images",
"files",
"videos"
],
"plugin": "upload",
"required": false
}
}
}

+ 8
- 0
api/product-honda/services/product-honda.js Ver arquivo

@@ -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 = {};

+ 52
- 0
api/products-suzuki/config/routes.json Ver arquivo

@@ -0,0 +1,52 @@
{
"routes": [
{
"method": "GET",
"path": "/products-suzukis",
"handler": "products-suzuki.find",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/products-suzukis/count",
"handler": "products-suzuki.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/products-suzukis/:id",
"handler": "products-suzuki.findOne",
"config": {
"policies": []
}
},
{
"method": "POST",
"path": "/products-suzukis",
"handler": "products-suzuki.create",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/products-suzukis/:id",
"handler": "products-suzuki.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/products-suzukis/:id",
"handler": "products-suzuki.delete",
"config": {
"policies": []
}
}
]
}

+ 8
- 0
api/products-suzuki/controllers/products-suzuki.js Ver arquivo

@@ -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 = {};

+ 8
- 0
api/products-suzuki/models/products-suzuki.js Ver arquivo

@@ -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 = {};

+ 44
- 0
api/products-suzuki/models/products-suzuki.settings.json Ver arquivo

@@ -0,0 +1,44 @@
{
"kind": "collectionType",
"collectionName": "products_suzukis",
"info": {
"name": "ProductSuzuki",
"description": ""
},
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": true
},
"attributes": {
"name": {
"type": "string"
},
"description": {
"type": "text"
},
"price1": {
"type": "biginteger"
},
"stock": {
"type": "biginteger"
},
"img": {
"collection": "file",
"via": "related",
"allowedTypes": [
"images",
"files",
"videos"
],
"plugin": "upload",
"required": false
},
"price2": {
"type": "biginteger"
},
"price": {
"type": "biginteger"
}
}
}

+ 8
- 0
api/products-suzuki/services/products-suzuki.js Ver arquivo

@@ -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 = {};

+ 1
- 1
package.json Ver arquivo

@@ -33,7 +33,7 @@
"uuid": "9bc5e63a-1de4-48f2-919a-bc487e6e2d09"
},
"engines": {
"node": ">=10.16.0 <=14.x.x",
"node": ">=10.16.0 <=16.x.x",
"npm": ">=6.0.0"
},
"license": "MIT"


Carregando…
Cancelar
Salvar