Commit 0318c89d authored by 余海军's avatar 余海军

add

parent 01362cf6
'use strict';
module.exports = function(Hostodatcase) {
};
{
"name": "HosTodatcase",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "hos_todatcase"
},
"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": 5,
"precision": null,
"scale": null,
"mysql": {
"columnName": "name",
"dataType": "varchar",
"dataLength": 5,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"value": {
"type": "Number",
"required": false,
"length": null,
"precision": 41,
"scale": 0,
"mysql": {
"columnName": "value",
"dataType": "decimal",
"dataLength": null,
"dataPrecision": 41,
"dataScale": 0,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
'use strict';
module.exports = function(Hostotalcase) {
};
{
"name": "HosTotalcase",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "hos_totalcase"
},
"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": 5,
"precision": null,
"scale": null,
"mysql": {
"columnName": "name",
"dataType": "varchar",
"dataLength": 5,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"value": {
"type": "Number",
"required": false,
"length": null,
"precision": 41,
"scale": 0,
"mysql": {
"columnName": "value",
"dataType": "decimal",
"dataLength": null,
"dataPrecision": 41,
"dataScale": 0,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
...@@ -47163,6 +47163,778 @@ paths: ...@@ -47163,6 +47163,778 @@ paths:
type: number type: number
format: double format: double
deprecated: false deprecated: false
/HosTodatcases:
post:
tags:
- HosTodatcase
summary: Create a new instance of the model and persist it into the data source.
operationId: HosTodatcase.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosTodatcase'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosTodatcase'
deprecated: false
patch:
tags:
- HosTodatcase
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: HosTodatcase.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosTodatcase'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosTodatcase'
deprecated: false
put:
tags:
- HosTodatcase
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosTodatcase.replaceOrCreate__put_HosTodatcases
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosTodatcase'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosTodatcase'
deprecated: false
get:
tags:
- HosTodatcase
summary: Find all instances of the model matched by filter from the data source.
operationId: HosTodatcase.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/HosTodatcase'
deprecated: false
/HosTodatcases/replaceOrCreate:
post:
tags:
- HosTodatcase
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosTodatcase.replaceOrCreate__post_HosTodatcases_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosTodatcase'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosTodatcase'
deprecated: false
/HosTodatcases/upsertWithWhere:
post:
tags:
- HosTodatcase
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: HosTodatcase.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/HosTodatcase'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosTodatcase'
deprecated: false
'/HosTodatcases/{id}/exists':
get:
tags:
- HosTodatcase
summary: Check whether a model instance exists in the data source.
operationId: 'HosTodatcase.exists__get_HosTodatcases_{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
'/HosTodatcases/{id}':
head:
tags:
- HosTodatcase
summary: Check whether a model instance exists in the data source.
operationId: 'HosTodatcase.exists__head_HosTodatcases_{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:
- HosTodatcase
summary: 'Find a model instance by {{id}} from the data source.'
operationId: HosTodatcase.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/HosTodatcase'
deprecated: false
put:
tags:
- HosTodatcase
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosTodatcase.replaceById__put_HosTodatcases_{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/HosTodatcase'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosTodatcase'
deprecated: false
delete:
tags:
- HosTodatcase
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: HosTodatcase.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:
- HosTodatcase
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: HosTodatcase.prototype.patchAttributes
parameters:
- name: id
in: path
description: HosTodatcase 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/HosTodatcase'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosTodatcase'
deprecated: false
'/HosTodatcases/{id}/replace':
post:
tags:
- HosTodatcase
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosTodatcase.replaceById__post_HosTodatcases_{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/HosTodatcase'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosTodatcase'
deprecated: false
/HosTodatcases/findOne:
get:
tags:
- HosTodatcase
summary: Find first instance of the model matched by filter from the data source.
operationId: HosTodatcase.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/HosTodatcase'
deprecated: false
/HosTodatcases/update:
post:
tags:
- HosTodatcase
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: HosTodatcase.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/HosTodatcase'
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
/HosTodatcases/count:
get:
tags:
- HosTodatcase
summary: Count instances of the model matched by where from the data source.
operationId: HosTodatcase.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
/HosTotalcases:
post:
tags:
- HosTotalcase
summary: Create a new instance of the model and persist it into the data source.
operationId: HosTotalcase.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosTotalcase'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosTotalcase'
deprecated: false
patch:
tags:
- HosTotalcase
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: HosTotalcase.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosTotalcase'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosTotalcase'
deprecated: false
put:
tags:
- HosTotalcase
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosTotalcase.replaceOrCreate__put_HosTotalcases
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosTotalcase'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosTotalcase'
deprecated: false
get:
tags:
- HosTotalcase
summary: Find all instances of the model matched by filter from the data source.
operationId: HosTotalcase.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/HosTotalcase'
deprecated: false
/HosTotalcases/replaceOrCreate:
post:
tags:
- HosTotalcase
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosTotalcase.replaceOrCreate__post_HosTotalcases_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosTotalcase'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosTotalcase'
deprecated: false
/HosTotalcases/upsertWithWhere:
post:
tags:
- HosTotalcase
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: HosTotalcase.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/HosTotalcase'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosTotalcase'
deprecated: false
'/HosTotalcases/{id}/exists':
get:
tags:
- HosTotalcase
summary: Check whether a model instance exists in the data source.
operationId: 'HosTotalcase.exists__get_HosTotalcases_{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
'/HosTotalcases/{id}':
head:
tags:
- HosTotalcase
summary: Check whether a model instance exists in the data source.
operationId: 'HosTotalcase.exists__head_HosTotalcases_{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:
- HosTotalcase
summary: 'Find a model instance by {{id}} from the data source.'
operationId: HosTotalcase.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/HosTotalcase'
deprecated: false
put:
tags:
- HosTotalcase
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosTotalcase.replaceById__put_HosTotalcases_{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/HosTotalcase'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosTotalcase'
deprecated: false
delete:
tags:
- HosTotalcase
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: HosTotalcase.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:
- HosTotalcase
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: HosTotalcase.prototype.patchAttributes
parameters:
- name: id
in: path
description: HosTotalcase 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/HosTotalcase'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosTotalcase'
deprecated: false
'/HosTotalcases/{id}/replace':
post:
tags:
- HosTotalcase
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosTotalcase.replaceById__post_HosTotalcases_{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/HosTotalcase'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosTotalcase'
deprecated: false
/HosTotalcases/findOne:
get:
tags:
- HosTotalcase
summary: Find first instance of the model matched by filter from the data source.
operationId: HosTotalcase.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/HosTotalcase'
deprecated: false
/HosTotalcases/update:
post:
tags:
- HosTotalcase
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: HosTotalcase.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/HosTotalcase'
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
/HosTotalcases/count:
get:
tags:
- HosTotalcase
summary: Count instances of the model matched by where from the data source.
operationId: HosTotalcase.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:
...@@ -49038,6 +49810,34 @@ definitions: ...@@ -49038,6 +49810,34 @@ definitions:
type: number type: number
format: double format: double
additionalProperties: false additionalProperties: false
HosTodatcase:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 5
type: string
value:
type: number
format: double
required:
- name
additionalProperties: false
HosTotalcase:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 5
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:
...@@ -500,5 +500,13 @@ ...@@ -500,5 +500,13 @@
"HosThisyearfirst": { "HosThisyearfirst": {
"dataSource": "ruipeng", "dataSource": "ruipeng",
"public": true "public": true
},
"HosTodatcase": {
"dataSource": "ruipeng",
"public": true
},
"HosTotalcase": {
"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