Commit 50d4986c authored by 余海军's avatar 余海军

add

parent 0318c89d
'use strict';
module.exports = function(Hosmeirong) {
};
{
"name": "HosMeirong",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "hos_meirong"
},
"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"
}
},
"name": {
"type": "String",
"required": true,
"length": 4,
"precision": null,
"scale": null,
"mysql": {
"columnName": "name",
"dataType": "varchar",
"dataLength": 4,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"value": {
"type": "Number",
"required": false,
"length": null,
"precision": 19,
"scale": 2,
"mysql": {
"columnName": "value",
"dataType": "double",
"dataLength": null,
"dataPrecision": 19,
"dataScale": 2,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
'use strict';
module.exports = function(Hosqita) {
};
{
"name": "HosQita",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "hos_qita"
},
"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"
}
},
"name": {
"type": "String",
"required": true,
"length": 4,
"precision": null,
"scale": null,
"mysql": {
"columnName": "name",
"dataType": "varchar",
"dataLength": 4,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"value": {
"type": "Number",
"required": false,
"length": null,
"precision": 19,
"scale": 2,
"mysql": {
"columnName": "value",
"dataType": "double",
"dataLength": null,
"dataPrecision": 19,
"dataScale": 2,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
'use strict';
module.exports = function(Hosshangpin) {
};
{
"name": "HosShangpin",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "hos_shangpin"
},
"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"
}
},
"name": {
"type": "String",
"required": true,
"length": 4,
"precision": null,
"scale": null,
"mysql": {
"columnName": "name",
"dataType": "varchar",
"dataLength": 4,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"value": {
"type": "Number",
"required": false,
"length": null,
"precision": 19,
"scale": 2,
"mysql": {
"columnName": "value",
"dataType": "double",
"dataLength": null,
"dataPrecision": 19,
"dataScale": 2,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
'use strict';
module.exports = function(Hosyiliao) {
};
{
"name": "HosYiliao",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "hos_yiliao"
},
"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"
}
},
"name": {
"type": "String",
"required": true,
"length": 4,
"precision": null,
"scale": null,
"mysql": {
"columnName": "name",
"dataType": "varchar",
"dataLength": 4,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"value": {
"type": "Number",
"required": false,
"length": null,
"precision": 19,
"scale": 2,
"mysql": {
"columnName": "value",
"dataType": "double",
"dataLength": null,
"dataPrecision": 19,
"dataScale": 2,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
...@@ -47935,6 +47935,1550 @@ paths: ...@@ -47935,6 +47935,1550 @@ paths:
type: number type: number
format: double format: double
deprecated: false deprecated: false
/HosQita:
post:
tags:
- HosQita
summary: Create a new instance of the model and persist it into the data source.
operationId: HosQita.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosQita'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosQita'
deprecated: false
patch:
tags:
- HosQita
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: HosQita.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosQita'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosQita'
deprecated: false
put:
tags:
- HosQita
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosQita.replaceOrCreate__put_HosQita
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosQita'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosQita'
deprecated: false
get:
tags:
- HosQita
summary: Find all instances of the model matched by filter from the data source.
operationId: HosQita.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/HosQita'
deprecated: false
/HosQita/replaceOrCreate:
post:
tags:
- HosQita
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosQita.replaceOrCreate__post_HosQita_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosQita'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosQita'
deprecated: false
/HosQita/upsertWithWhere:
post:
tags:
- HosQita
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: HosQita.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/HosQita'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosQita'
deprecated: false
'/HosQita/{id}/exists':
get:
tags:
- HosQita
summary: Check whether a model instance exists in the data source.
operationId: 'HosQita.exists__get_HosQita_{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
'/HosQita/{id}':
head:
tags:
- HosQita
summary: Check whether a model instance exists in the data source.
operationId: 'HosQita.exists__head_HosQita_{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:
- HosQita
summary: 'Find a model instance by {{id}} from the data source.'
operationId: HosQita.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/HosQita'
deprecated: false
put:
tags:
- HosQita
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosQita.replaceById__put_HosQita_{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/HosQita'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosQita'
deprecated: false
delete:
tags:
- HosQita
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: HosQita.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:
- HosQita
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: HosQita.prototype.patchAttributes
parameters:
- name: id
in: path
description: HosQita 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/HosQita'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosQita'
deprecated: false
'/HosQita/{id}/replace':
post:
tags:
- HosQita
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosQita.replaceById__post_HosQita_{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/HosQita'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosQita'
deprecated: false
/HosQita/findOne:
get:
tags:
- HosQita
summary: Find first instance of the model matched by filter from the data source.
operationId: HosQita.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/HosQita'
deprecated: false
/HosQita/update:
post:
tags:
- HosQita
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: HosQita.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/HosQita'
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
/HosQita/count:
get:
tags:
- HosQita
summary: Count instances of the model matched by where from the data source.
operationId: HosQita.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
/HosYiliaos:
post:
tags:
- HosYiliao
summary: Create a new instance of the model and persist it into the data source.
operationId: HosYiliao.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosYiliao'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosYiliao'
deprecated: false
patch:
tags:
- HosYiliao
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: HosYiliao.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosYiliao'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosYiliao'
deprecated: false
put:
tags:
- HosYiliao
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosYiliao.replaceOrCreate__put_HosYiliaos
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosYiliao'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosYiliao'
deprecated: false
get:
tags:
- HosYiliao
summary: Find all instances of the model matched by filter from the data source.
operationId: HosYiliao.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/HosYiliao'
deprecated: false
/HosYiliaos/replaceOrCreate:
post:
tags:
- HosYiliao
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosYiliao.replaceOrCreate__post_HosYiliaos_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosYiliao'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosYiliao'
deprecated: false
/HosYiliaos/upsertWithWhere:
post:
tags:
- HosYiliao
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: HosYiliao.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/HosYiliao'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosYiliao'
deprecated: false
'/HosYiliaos/{id}/exists':
get:
tags:
- HosYiliao
summary: Check whether a model instance exists in the data source.
operationId: 'HosYiliao.exists__get_HosYiliaos_{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
'/HosYiliaos/{id}':
head:
tags:
- HosYiliao
summary: Check whether a model instance exists in the data source.
operationId: 'HosYiliao.exists__head_HosYiliaos_{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:
- HosYiliao
summary: 'Find a model instance by {{id}} from the data source.'
operationId: HosYiliao.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/HosYiliao'
deprecated: false
put:
tags:
- HosYiliao
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosYiliao.replaceById__put_HosYiliaos_{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/HosYiliao'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosYiliao'
deprecated: false
delete:
tags:
- HosYiliao
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: HosYiliao.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:
- HosYiliao
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: HosYiliao.prototype.patchAttributes
parameters:
- name: id
in: path
description: HosYiliao 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/HosYiliao'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosYiliao'
deprecated: false
'/HosYiliaos/{id}/replace':
post:
tags:
- HosYiliao
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosYiliao.replaceById__post_HosYiliaos_{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/HosYiliao'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosYiliao'
deprecated: false
/HosYiliaos/findOne:
get:
tags:
- HosYiliao
summary: Find first instance of the model matched by filter from the data source.
operationId: HosYiliao.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/HosYiliao'
deprecated: false
/HosYiliaos/update:
post:
tags:
- HosYiliao
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: HosYiliao.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/HosYiliao'
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
/HosYiliaos/count:
get:
tags:
- HosYiliao
summary: Count instances of the model matched by where from the data source.
operationId: HosYiliao.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
/HosShangpins:
post:
tags:
- HosShangpin
summary: Create a new instance of the model and persist it into the data source.
operationId: HosShangpin.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosShangpin'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosShangpin'
deprecated: false
patch:
tags:
- HosShangpin
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: HosShangpin.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosShangpin'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosShangpin'
deprecated: false
put:
tags:
- HosShangpin
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosShangpin.replaceOrCreate__put_HosShangpins
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosShangpin'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosShangpin'
deprecated: false
get:
tags:
- HosShangpin
summary: Find all instances of the model matched by filter from the data source.
operationId: HosShangpin.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/HosShangpin'
deprecated: false
/HosShangpins/replaceOrCreate:
post:
tags:
- HosShangpin
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosShangpin.replaceOrCreate__post_HosShangpins_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosShangpin'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosShangpin'
deprecated: false
/HosShangpins/upsertWithWhere:
post:
tags:
- HosShangpin
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: HosShangpin.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/HosShangpin'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosShangpin'
deprecated: false
'/HosShangpins/{id}/exists':
get:
tags:
- HosShangpin
summary: Check whether a model instance exists in the data source.
operationId: 'HosShangpin.exists__get_HosShangpins_{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
'/HosShangpins/{id}':
head:
tags:
- HosShangpin
summary: Check whether a model instance exists in the data source.
operationId: 'HosShangpin.exists__head_HosShangpins_{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:
- HosShangpin
summary: 'Find a model instance by {{id}} from the data source.'
operationId: HosShangpin.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/HosShangpin'
deprecated: false
put:
tags:
- HosShangpin
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosShangpin.replaceById__put_HosShangpins_{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/HosShangpin'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosShangpin'
deprecated: false
delete:
tags:
- HosShangpin
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: HosShangpin.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:
- HosShangpin
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: HosShangpin.prototype.patchAttributes
parameters:
- name: id
in: path
description: HosShangpin 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/HosShangpin'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosShangpin'
deprecated: false
'/HosShangpins/{id}/replace':
post:
tags:
- HosShangpin
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosShangpin.replaceById__post_HosShangpins_{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/HosShangpin'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosShangpin'
deprecated: false
/HosShangpins/findOne:
get:
tags:
- HosShangpin
summary: Find first instance of the model matched by filter from the data source.
operationId: HosShangpin.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/HosShangpin'
deprecated: false
/HosShangpins/update:
post:
tags:
- HosShangpin
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: HosShangpin.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/HosShangpin'
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
/HosShangpins/count:
get:
tags:
- HosShangpin
summary: Count instances of the model matched by where from the data source.
operationId: HosShangpin.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
/HosMeirongs:
post:
tags:
- HosMeirong
summary: Create a new instance of the model and persist it into the data source.
operationId: HosMeirong.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosMeirong'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosMeirong'
deprecated: false
patch:
tags:
- HosMeirong
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: HosMeirong.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosMeirong'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosMeirong'
deprecated: false
put:
tags:
- HosMeirong
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosMeirong.replaceOrCreate__put_HosMeirongs
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosMeirong'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosMeirong'
deprecated: false
get:
tags:
- HosMeirong
summary: Find all instances of the model matched by filter from the data source.
operationId: HosMeirong.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/HosMeirong'
deprecated: false
/HosMeirongs/replaceOrCreate:
post:
tags:
- HosMeirong
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosMeirong.replaceOrCreate__post_HosMeirongs_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosMeirong'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosMeirong'
deprecated: false
/HosMeirongs/upsertWithWhere:
post:
tags:
- HosMeirong
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: HosMeirong.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/HosMeirong'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosMeirong'
deprecated: false
'/HosMeirongs/{id}/exists':
get:
tags:
- HosMeirong
summary: Check whether a model instance exists in the data source.
operationId: 'HosMeirong.exists__get_HosMeirongs_{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
'/HosMeirongs/{id}':
head:
tags:
- HosMeirong
summary: Check whether a model instance exists in the data source.
operationId: 'HosMeirong.exists__head_HosMeirongs_{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:
- HosMeirong
summary: 'Find a model instance by {{id}} from the data source.'
operationId: HosMeirong.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/HosMeirong'
deprecated: false
put:
tags:
- HosMeirong
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosMeirong.replaceById__put_HosMeirongs_{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/HosMeirong'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosMeirong'
deprecated: false
delete:
tags:
- HosMeirong
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: HosMeirong.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:
- HosMeirong
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: HosMeirong.prototype.patchAttributes
parameters:
- name: id
in: path
description: HosMeirong 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/HosMeirong'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosMeirong'
deprecated: false
'/HosMeirongs/{id}/replace':
post:
tags:
- HosMeirong
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosMeirong.replaceById__post_HosMeirongs_{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/HosMeirong'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosMeirong'
deprecated: false
/HosMeirongs/findOne:
get:
tags:
- HosMeirong
summary: Find first instance of the model matched by filter from the data source.
operationId: HosMeirong.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/HosMeirong'
deprecated: false
/HosMeirongs/update:
post:
tags:
- HosMeirong
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: HosMeirong.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/HosMeirong'
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
/HosMeirongs/count:
get:
tags:
- HosMeirong
summary: Count instances of the model matched by where from the data source.
operationId: HosMeirong.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:
...@@ -49838,6 +51382,62 @@ definitions: ...@@ -49838,6 +51382,62 @@ definitions:
required: required:
- name - name
additionalProperties: false additionalProperties: false
HosQita:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 4
type: string
value:
type: number
format: double
required:
- name
additionalProperties: false
HosYiliao:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 4
type: string
value:
type: number
format: double
required:
- name
additionalProperties: false
HosShangpin:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 4
type: string
value:
type: number
format: double
required:
- name
additionalProperties: false
HosMeirong:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 4
type: string
value:
type: number
format: double
required:
- name
additionalProperties: false
basePath: /api/ruipeng basePath: /api/ruipeng
swagger: '2.0' swagger: '2.0'
info: info:
...@@ -508,5 +508,21 @@ ...@@ -508,5 +508,21 @@
"HosTotalcase": { "HosTotalcase": {
"dataSource": "ruipeng", "dataSource": "ruipeng",
"public": true "public": true
},
"HosQita": {
"dataSource": "ruipeng",
"public": true
},
"HosYiliao": {
"dataSource": "ruipeng",
"public": true
},
"HosShangpin": {
"dataSource": "ruipeng",
"public": true
},
"HosMeirong": {
"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