Commit 220a4a3c authored by 余海军's avatar 余海军

add

parent d5322613
'use strict';
module.exports = function(Anothercompanysku) {
};
{
"name": "AnotherCompanySku",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "another_company_sku"
},
"properties": {
"id": {
"type": "String",
"required": false,
"length": 36,
"precision": null,
"scale": null,
"mysql": {
"columnName": "id",
"dataType": "varchar",
"dataLength": 36,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"category": {
"type": "String",
"required": false,
"length": 200,
"precision": null,
"scale": null,
"mysql": {
"columnName": "category",
"dataType": "varchar",
"dataLength": 200,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"qty": {
"type": "Number",
"required": false,
"length": null,
"precision": 65,
"scale": 2,
"mysql": {
"columnName": "qty",
"dataType": "decimal",
"dataLength": null,
"dataPrecision": 65,
"dataScale": 2,
"nullable": "Y"
}
},
"precent": {
"type": "String",
"required": false,
"length": 63,
"precision": null,
"scale": null,
"mysql": {
"columnName": "precent",
"dataType": "varchar",
"dataLength": 63,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"companyName": {
"type": "String",
"required": false,
"length": 200,
"precision": null,
"scale": null,
"mysql": {
"columnName": "company_name",
"dataType": "varchar",
"dataLength": 200,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
...@@ -68402,6 +68402,393 @@ paths: ...@@ -68402,6 +68402,393 @@ paths:
type: number type: number
format: double format: double
deprecated: false deprecated: false
/AnotherCompanySkus:
post:
tags:
- AnotherCompanySku
summary: Create a new instance of the model and persist it into the data source.
operationId: AnotherCompanySku.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/AnotherCompanySku'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherCompanySku'
deprecated: false
patch:
tags:
- AnotherCompanySku
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: AnotherCompanySku.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/AnotherCompanySku'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherCompanySku'
deprecated: false
put:
tags:
- AnotherCompanySku
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: AnotherCompanySku.replaceOrCreate__put_AnotherCompanySkus
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/AnotherCompanySku'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherCompanySku'
deprecated: false
get:
tags:
- AnotherCompanySku
summary: Find all instances of the model matched by filter from the data source.
operationId: AnotherCompanySku.find
parameters:
- name: filter
in: query
description: >-
Filter defining fields, where, include, order, offset, and limit -
must be a JSON-encoded string (`{"where":{"something":"value"}}`).
See
https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries
for more details.
required: false
type: string
format: JSON
responses:
'200':
description: Request was successful
schema:
type: array
items:
$ref: '#/definitions/AnotherCompanySku'
deprecated: false
/AnotherCompanySkus/replaceOrCreate:
post:
tags:
- AnotherCompanySku
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: >-
AnotherCompanySku.replaceOrCreate__post_AnotherCompanySkus_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/AnotherCompanySku'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherCompanySku'
deprecated: false
/AnotherCompanySkus/upsertWithWhere:
post:
tags:
- AnotherCompanySku
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: AnotherCompanySku.upsertWithWhere
parameters:
- name: where
in: query
description: Criteria to match model instances
required: false
type: string
format: JSON
- name: data
in: body
description: An object of model property name/value pairs
required: false
schema:
description: An object of model property name/value pairs
$ref: '#/definitions/AnotherCompanySku'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherCompanySku'
deprecated: false
'/AnotherCompanySkus/{id}/exists':
get:
tags:
- AnotherCompanySku
summary: Check whether a model instance exists in the data source.
operationId: 'AnotherCompanySku.exists__get_AnotherCompanySkus_{id}_exists'
parameters:
- name: id
in: path
description: Model id
required: true
type: string
format: JSON
responses:
'200':
description: Request was successful
schema:
type: object
properties:
exists:
type: boolean
deprecated: false
'/AnotherCompanySkus/{id}':
head:
tags:
- AnotherCompanySku
summary: Check whether a model instance exists in the data source.
operationId: 'AnotherCompanySku.exists__head_AnotherCompanySkus_{id}'
parameters:
- name: id
in: path
description: Model id
required: true
type: string
format: JSON
responses:
'200':
description: Request was successful
schema:
type: object
properties:
exists:
type: boolean
deprecated: false
get:
tags:
- AnotherCompanySku
summary: 'Find a model instance by {{id}} from the data source.'
operationId: AnotherCompanySku.findById
parameters:
- name: id
in: path
description: Model id
required: true
type: string
format: JSON
- name: filter
in: query
description: >-
Filter defining fields and include - must be a JSON-encoded string
({"something":"value"})
required: false
type: string
format: JSON
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherCompanySku'
deprecated: false
put:
tags:
- AnotherCompanySku
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'AnotherCompanySku.replaceById__put_AnotherCompanySkus_{id}'
parameters:
- name: id
in: path
description: Model id
required: true
type: string
format: JSON
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/AnotherCompanySku'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherCompanySku'
deprecated: false
delete:
tags:
- AnotherCompanySku
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: AnotherCompanySku.deleteById
parameters:
- name: id
in: path
description: Model id
required: true
type: string
format: JSON
responses:
'200':
description: Request was successful
schema:
type: object
deprecated: false
patch:
tags:
- AnotherCompanySku
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: AnotherCompanySku.prototype.patchAttributes
parameters:
- name: id
in: path
description: AnotherCompanySku id
required: true
type: string
format: JSON
- name: data
in: body
description: An object of model property name/value pairs
required: false
schema:
description: An object of model property name/value pairs
$ref: '#/definitions/AnotherCompanySku'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherCompanySku'
deprecated: false
'/AnotherCompanySkus/{id}/replace':
post:
tags:
- AnotherCompanySku
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'AnotherCompanySku.replaceById__post_AnotherCompanySkus_{id}_replace'
parameters:
- name: id
in: path
description: Model id
required: true
type: string
format: JSON
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/AnotherCompanySku'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherCompanySku'
deprecated: false
/AnotherCompanySkus/findOne:
get:
tags:
- AnotherCompanySku
summary: Find first instance of the model matched by filter from the data source.
operationId: AnotherCompanySku.findOne
parameters:
- name: filter
in: query
description: >-
Filter defining fields, where, include, order, offset, and limit -
must be a JSON-encoded string (`{"where":{"something":"value"}}`).
See
https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries
for more details.
required: false
type: string
format: JSON
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherCompanySku'
deprecated: false
/AnotherCompanySkus/update:
post:
tags:
- AnotherCompanySku
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: AnotherCompanySku.updateAll
parameters:
- name: where
in: query
description: Criteria to match model instances
required: false
type: string
format: JSON
- name: data
in: body
description: An object of model property name/value pairs
required: false
schema:
description: An object of model property name/value pairs
$ref: '#/definitions/AnotherCompanySku'
responses:
'200':
description: Request was successful
schema:
description: Information related to the outcome of the operation
type: object
properties:
count:
description: The number of instances updated
type: number
format: double
deprecated: false
/AnotherCompanySkus/count:
get:
tags:
- AnotherCompanySku
summary: Count instances of the model matched by where from the data source.
operationId: AnotherCompanySku.count
parameters:
- name: where
in: query
description: Criteria to match model instances
required: false
type: string
format: JSON
responses:
'200':
description: Request was successful
schema:
type: object
properties:
count:
type: number
format: double
deprecated: false
definitions: definitions:
DashboardHospitalAwenCount: DashboardHospitalAwenCount:
properties: properties:
...@@ -71241,6 +71628,24 @@ definitions: ...@@ -71241,6 +71628,24 @@ definitions:
required: required:
- id - id
additionalProperties: false additionalProperties: false
AnotherCompanySku:
properties:
id:
maxLength: 36
type: string
category:
maxLength: 200
type: string
qty:
type: number
format: double
precent:
maxLength: 63
type: string
companyName:
maxLength: 200
type: string
additionalProperties: false
basePath: /api/ruipeng basePath: /api/ruipeng
swagger: '2.0' swagger: '2.0'
info: info:
...@@ -720,5 +720,9 @@ ...@@ -720,5 +720,9 @@
"DashboardStatisticsPropaganda": { "DashboardStatisticsPropaganda": {
"dataSource": "ruipeng", "dataSource": "ruipeng",
"public": true "public": true
},
"AnotherCompanySku": {
"dataSource": "ruipeng",
"public": true
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment