Commit 21dcd4f2 authored by 黄卓然's avatar 黄卓然

add hos_detail

parent b6892fd9
'use strict';
module.exports = function(Hosdetail) {
};
{
"name": "HosDetail",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "hos_detail"
},
"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"
}
},
"clinicName": {
"type": "String",
"required": false,
"length": 255,
"precision": null,
"scale": null,
"mysql": {
"columnName": "clinic_name",
"dataType": "varchar",
"dataLength": 255,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"address": {
"type": "String",
"required": false,
"length": 255,
"precision": null,
"scale": null,
"mysql": {
"columnName": "address",
"dataType": "varchar",
"dataLength": 255,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"deanNumber": {
"type": "String",
"required": false,
"length": 255,
"precision": null,
"scale": null,
"mysql": {
"columnName": "dean_number",
"dataType": "varchar",
"dataLength": 255,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"imgUrl": {
"type": "String",
"required": true,
"length": 65,
"precision": null,
"scale": null,
"mysql": {
"columnName": "img_url",
"dataType": "varchar",
"dataLength": 65,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
...@@ -60676,6 +60676,392 @@ paths: ...@@ -60676,6 +60676,392 @@ paths:
type: number type: number
format: double format: double
deprecated: false deprecated: false
/HosDetails:
post:
tags:
- HosDetail
summary: Create a new instance of the model and persist it into the data source.
operationId: HosDetail.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosDetail'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosDetail'
deprecated: false
patch:
tags:
- HosDetail
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: HosDetail.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosDetail'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosDetail'
deprecated: false
put:
tags:
- HosDetail
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosDetail.replaceOrCreate__put_HosDetails
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosDetail'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosDetail'
deprecated: false
get:
tags:
- HosDetail
summary: Find all instances of the model matched by filter from the data source.
operationId: HosDetail.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/HosDetail'
deprecated: false
/HosDetails/replaceOrCreate:
post:
tags:
- HosDetail
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosDetail.replaceOrCreate__post_HosDetails_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosDetail'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosDetail'
deprecated: false
/HosDetails/upsertWithWhere:
post:
tags:
- HosDetail
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: HosDetail.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/HosDetail'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosDetail'
deprecated: false
'/HosDetails/{id}/exists':
get:
tags:
- HosDetail
summary: Check whether a model instance exists in the data source.
operationId: 'HosDetail.exists__get_HosDetails_{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
'/HosDetails/{id}':
head:
tags:
- HosDetail
summary: Check whether a model instance exists in the data source.
operationId: 'HosDetail.exists__head_HosDetails_{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:
- HosDetail
summary: 'Find a model instance by {{id}} from the data source.'
operationId: HosDetail.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/HosDetail'
deprecated: false
put:
tags:
- HosDetail
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosDetail.replaceById__put_HosDetails_{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/HosDetail'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosDetail'
deprecated: false
delete:
tags:
- HosDetail
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: HosDetail.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:
- HosDetail
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: HosDetail.prototype.patchAttributes
parameters:
- name: id
in: path
description: HosDetail 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/HosDetail'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosDetail'
deprecated: false
'/HosDetails/{id}/replace':
post:
tags:
- HosDetail
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosDetail.replaceById__post_HosDetails_{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/HosDetail'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosDetail'
deprecated: false
/HosDetails/findOne:
get:
tags:
- HosDetail
summary: Find first instance of the model matched by filter from the data source.
operationId: HosDetail.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/HosDetail'
deprecated: false
/HosDetails/update:
post:
tags:
- HosDetail
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: HosDetail.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/HosDetail'
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
/HosDetails/count:
get:
tags:
- HosDetail
summary: Count instances of the model matched by where from the data source.
operationId: HosDetail.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:
...@@ -63027,6 +63413,26 @@ definitions: ...@@ -63027,6 +63413,26 @@ definitions:
required: required:
- name - name
additionalProperties: false additionalProperties: false
HosDetail:
properties:
id:
maxLength: 36
type: string
clinicName:
maxLength: 255
type: string
address:
maxLength: 255
type: string
deanNumber:
maxLength: 255
type: string
imgUrl:
maxLength: 65
type: string
required:
- imgUrl
additionalProperties: false
basePath: /api/ruipeng basePath: /api/ruipeng
swagger: '2.0' swagger: '2.0'
info: info:
...@@ -640,5 +640,9 @@ ...@@ -640,5 +640,9 @@
"InterMiaopai": { "InterMiaopai": {
"dataSource": "ruipeng", "dataSource": "ruipeng",
"public": true "public": true
},
"HosDetail": {
"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