Commit e0c8dc48 authored by 余海军's avatar 余海军

add

parent aaab4c87
'use strict';
module.exports = function(Main) {
};
{
"name": "Main",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "main"
},
"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"
}
},
"rpRegion": {
"type": "String",
"required": false,
"length": 65535,
"precision": null,
"scale": null,
"mysql": {
"columnName": "rp_region",
"dataType": "text",
"dataLength": 65535,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"rpArea": {
"type": "String",
"required": false,
"length": 65535,
"precision": null,
"scale": null,
"mysql": {
"columnName": "rp_area",
"dataType": "text",
"dataLength": 65535,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"clinicShortname": {
"type": "String",
"required": false,
"length": 65535,
"precision": null,
"scale": null,
"mysql": {
"columnName": "clinic_shortname",
"dataType": "text",
"dataLength": 65535,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"accrual": {
"type": "Number",
"required": false,
"length": null,
"precision": 23,
"scale": null,
"mysql": {
"columnName": "accrual",
"dataType": "double",
"dataLength": null,
"dataPrecision": 23,
"dataScale": null,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
......@@ -19363,6 +19363,392 @@ paths:
type: number
format: double
deprecated: false
/Mains:
post:
tags:
- Main
summary: Create a new instance of the model and persist it into the data source.
operationId: Main.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/Main'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main'
deprecated: false
patch:
tags:
- Main
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: Main.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/Main'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main'
deprecated: false
put:
tags:
- Main
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: Main.replaceOrCreate__put_Mains
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/Main'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main'
deprecated: false
get:
tags:
- Main
summary: Find all instances of the model matched by filter from the data source.
operationId: Main.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/Main'
deprecated: false
/Mains/replaceOrCreate:
post:
tags:
- Main
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: Main.replaceOrCreate__post_Mains_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/Main'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main'
deprecated: false
/Mains/upsertWithWhere:
post:
tags:
- Main
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: Main.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/Main'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main'
deprecated: false
'/Mains/{id}/exists':
get:
tags:
- Main
summary: Check whether a model instance exists in the data source.
operationId: 'Main.exists__get_Mains_{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
'/Mains/{id}':
head:
tags:
- Main
summary: Check whether a model instance exists in the data source.
operationId: 'Main.exists__head_Mains_{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:
- Main
summary: 'Find a model instance by {{id}} from the data source.'
operationId: Main.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/Main'
deprecated: false
put:
tags:
- Main
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'Main.replaceById__put_Mains_{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/Main'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main'
deprecated: false
delete:
tags:
- Main
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: Main.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:
- Main
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: Main.prototype.patchAttributes
parameters:
- name: id
in: path
description: Main 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/Main'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main'
deprecated: false
'/Mains/{id}/replace':
post:
tags:
- Main
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'Main.replaceById__post_Mains_{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/Main'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main'
deprecated: false
/Mains/findOne:
get:
tags:
- Main
summary: Find first instance of the model matched by filter from the data source.
operationId: Main.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/Main'
deprecated: false
/Mains/update:
post:
tags:
- Main
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: Main.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/Main'
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
/Mains/count:
get:
tags:
- Main
summary: Count instances of the model matched by where from the data source.
operationId: Main.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:
DashboardHospitalAwenCount:
properties:
......@@ -20265,6 +20651,24 @@ definitions:
type: number
format: double
additionalProperties: false
Main:
properties:
id:
maxLength: 36
type: string
rpRegion:
maxLength: 65535
type: string
rpArea:
maxLength: 65535
type: string
clinicShortname:
maxLength: 65535
type: string
accrual:
type: number
format: double
additionalProperties: false
basePath: /api/ruipeng
swagger: '2.0'
info:
......
......@@ -212,5 +212,9 @@
"MainVrrevenue": {
"dataSource": "ruipeng",
"public": true
},
"Main": {
"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