Commit 1d19e9c3 authored by 余海军's avatar 余海军

add

parent c22038f1
'use strict';
module.exports = function(Interkuanghuan) {
};
{
"name": "InterKuanghuan",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "inter_kuanghuan"
},
"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": false,
"length": 100,
"precision": null,
"scale": null,
"mysql": {
"columnName": "name",
"dataType": "varchar",
"dataLength": 100,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"value1": {
"type": "Number",
"required": false,
"length": null,
"precision": 41,
"scale": 0,
"mysql": {
"columnName": "value1",
"dataType": "decimal",
"dataLength": null,
"dataPrecision": 41,
"dataScale": 0,
"nullable": "Y"
}
},
"value2": {
"type": "Number",
"required": false,
"length": null,
"precision": 44,
"scale": 0,
"mysql": {
"columnName": "value2",
"dataType": "decimal",
"dataLength": null,
"dataPrecision": 44,
"dataScale": 0,
"nullable": "Y"
}
},
"value3": {
"type": "Number",
"required": false,
"length": null,
"precision": 19,
"scale": 2,
"mysql": {
"columnName": "value3",
"dataType": "double",
"dataLength": null,
"dataPrecision": 19,
"dataScale": 2,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
...@@ -61834,6 +61834,392 @@ paths: ...@@ -61834,6 +61834,392 @@ paths:
type: number type: number
format: double format: double
deprecated: false deprecated: false
/InterKuanghuans:
post:
tags:
- InterKuanghuan
summary: Create a new instance of the model and persist it into the data source.
operationId: InterKuanghuan.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterKuanghuan'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterKuanghuan'
deprecated: false
patch:
tags:
- InterKuanghuan
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: InterKuanghuan.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterKuanghuan'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterKuanghuan'
deprecated: false
put:
tags:
- InterKuanghuan
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: InterKuanghuan.replaceOrCreate__put_InterKuanghuans
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterKuanghuan'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterKuanghuan'
deprecated: false
get:
tags:
- InterKuanghuan
summary: Find all instances of the model matched by filter from the data source.
operationId: InterKuanghuan.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/InterKuanghuan'
deprecated: false
/InterKuanghuans/replaceOrCreate:
post:
tags:
- InterKuanghuan
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: InterKuanghuan.replaceOrCreate__post_InterKuanghuans_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterKuanghuan'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterKuanghuan'
deprecated: false
/InterKuanghuans/upsertWithWhere:
post:
tags:
- InterKuanghuan
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: InterKuanghuan.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/InterKuanghuan'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterKuanghuan'
deprecated: false
'/InterKuanghuans/{id}/exists':
get:
tags:
- InterKuanghuan
summary: Check whether a model instance exists in the data source.
operationId: 'InterKuanghuan.exists__get_InterKuanghuans_{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
'/InterKuanghuans/{id}':
head:
tags:
- InterKuanghuan
summary: Check whether a model instance exists in the data source.
operationId: 'InterKuanghuan.exists__head_InterKuanghuans_{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:
- InterKuanghuan
summary: 'Find a model instance by {{id}} from the data source.'
operationId: InterKuanghuan.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/InterKuanghuan'
deprecated: false
put:
tags:
- InterKuanghuan
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'InterKuanghuan.replaceById__put_InterKuanghuans_{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/InterKuanghuan'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterKuanghuan'
deprecated: false
delete:
tags:
- InterKuanghuan
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: InterKuanghuan.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:
- InterKuanghuan
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: InterKuanghuan.prototype.patchAttributes
parameters:
- name: id
in: path
description: InterKuanghuan 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/InterKuanghuan'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterKuanghuan'
deprecated: false
'/InterKuanghuans/{id}/replace':
post:
tags:
- InterKuanghuan
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'InterKuanghuan.replaceById__post_InterKuanghuans_{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/InterKuanghuan'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterKuanghuan'
deprecated: false
/InterKuanghuans/findOne:
get:
tags:
- InterKuanghuan
summary: Find first instance of the model matched by filter from the data source.
operationId: InterKuanghuan.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/InterKuanghuan'
deprecated: false
/InterKuanghuans/update:
post:
tags:
- InterKuanghuan
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: InterKuanghuan.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/InterKuanghuan'
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
/InterKuanghuans/count:
get:
tags:
- InterKuanghuan
summary: Count instances of the model matched by where from the data source.
operationId: InterKuanghuan.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:
...@@ -64233,6 +64619,24 @@ definitions: ...@@ -64233,6 +64619,24 @@ definitions:
required: required:
- name - name
additionalProperties: false additionalProperties: false
InterKuanghuan:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 100
type: string
value1:
type: number
format: double
value2:
type: number
format: double
value3:
type: number
format: double
additionalProperties: false
basePath: /api/ruipeng basePath: /api/ruipeng
swagger: '2.0' swagger: '2.0'
info: info:
...@@ -652,5 +652,9 @@ ...@@ -652,5 +652,9 @@
"InterYesterday": { "InterYesterday": {
"dataSource": "ruipeng", "dataSource": "ruipeng",
"public": true "public": true
},
"InterKuanghuan": {
"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