Commit 0959de01 authored by 余海军's avatar 余海军

add

parent 0ab91c48
'use strict';
module.exports = function(Hoseachhospital) {
};
{
"name": "HosEachhospital",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "hos_eachhospital"
},
"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"
}
},
"city": {
"type": "String",
"required": false,
"length": 100,
"precision": null,
"scale": null,
"mysql": {
"columnName": "city",
"dataType": "varchar",
"dataLength": 100,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"hospital": {
"type": "String",
"required": false,
"length": 100,
"precision": null,
"scale": null,
"mysql": {
"columnName": "hospital",
"dataType": "varchar",
"dataLength": 100,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"flowmeir": {
"type": "String",
"required": false,
"length": 18,
"precision": null,
"scale": null,
"mysql": {
"columnName": "flowmeir",
"dataType": "varchar",
"dataLength": 18,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"flowyiliao": {
"type": "String",
"required": false,
"length": 18,
"precision": null,
"scale": null,
"mysql": {
"columnName": "flowyiliao",
"dataType": "varchar",
"dataLength": 18,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"flowsp": {
"type": "String",
"required": false,
"length": 18,
"precision": null,
"scale": null,
"mysql": {
"columnName": "flowsp",
"dataType": "varchar",
"dataLength": 18,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
...@@ -23612,6 +23612,392 @@ paths: ...@@ -23612,6 +23612,392 @@ paths:
type: number type: number
format: double format: double
deprecated: false deprecated: false
/HosEachhospitals:
post:
tags:
- HosEachhospital
summary: Create a new instance of the model and persist it into the data source.
operationId: HosEachhospital.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosEachhospital'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosEachhospital'
deprecated: false
patch:
tags:
- HosEachhospital
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: HosEachhospital.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosEachhospital'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosEachhospital'
deprecated: false
put:
tags:
- HosEachhospital
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosEachhospital.replaceOrCreate__put_HosEachhospitals
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosEachhospital'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosEachhospital'
deprecated: false
get:
tags:
- HosEachhospital
summary: Find all instances of the model matched by filter from the data source.
operationId: HosEachhospital.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/HosEachhospital'
deprecated: false
/HosEachhospitals/replaceOrCreate:
post:
tags:
- HosEachhospital
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosEachhospital.replaceOrCreate__post_HosEachhospitals_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosEachhospital'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosEachhospital'
deprecated: false
/HosEachhospitals/upsertWithWhere:
post:
tags:
- HosEachhospital
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: HosEachhospital.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/HosEachhospital'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosEachhospital'
deprecated: false
'/HosEachhospitals/{id}/exists':
get:
tags:
- HosEachhospital
summary: Check whether a model instance exists in the data source.
operationId: 'HosEachhospital.exists__get_HosEachhospitals_{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
'/HosEachhospitals/{id}':
head:
tags:
- HosEachhospital
summary: Check whether a model instance exists in the data source.
operationId: 'HosEachhospital.exists__head_HosEachhospitals_{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:
- HosEachhospital
summary: 'Find a model instance by {{id}} from the data source.'
operationId: HosEachhospital.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/HosEachhospital'
deprecated: false
put:
tags:
- HosEachhospital
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosEachhospital.replaceById__put_HosEachhospitals_{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/HosEachhospital'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosEachhospital'
deprecated: false
delete:
tags:
- HosEachhospital
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: HosEachhospital.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:
- HosEachhospital
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: HosEachhospital.prototype.patchAttributes
parameters:
- name: id
in: path
description: HosEachhospital 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/HosEachhospital'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosEachhospital'
deprecated: false
'/HosEachhospitals/{id}/replace':
post:
tags:
- HosEachhospital
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosEachhospital.replaceById__post_HosEachhospitals_{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/HosEachhospital'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosEachhospital'
deprecated: false
/HosEachhospitals/findOne:
get:
tags:
- HosEachhospital
summary: Find first instance of the model matched by filter from the data source.
operationId: HosEachhospital.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/HosEachhospital'
deprecated: false
/HosEachhospitals/update:
post:
tags:
- HosEachhospital
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: HosEachhospital.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/HosEachhospital'
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
/HosEachhospitals/count:
get:
tags:
- HosEachhospital
summary: Count instances of the model matched by where from the data source.
operationId: HosEachhospital.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:
...@@ -24653,6 +25039,27 @@ definitions: ...@@ -24653,6 +25039,27 @@ definitions:
type: number type: number
format: double format: double
additionalProperties: false additionalProperties: false
HosEachhospital:
properties:
id:
maxLength: 36
type: string
city:
maxLength: 100
type: string
hospital:
maxLength: 100
type: string
flowmeir:
maxLength: 18
type: string
flowyiliao:
maxLength: 18
type: string
flowsp:
maxLength: 18
type: string
additionalProperties: false
basePath: /api/ruipeng basePath: /api/ruipeng
swagger: '2.0' swagger: '2.0'
info: info:
......
...@@ -256,5 +256,9 @@ ...@@ -256,5 +256,9 @@
"HosClientsource": { "HosClientsource": {
"dataSource": "ruipeng", "dataSource": "ruipeng",
"public": true "public": true
},
"HosEachhospital": {
"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