Commit 794585ae authored by 黄卓然's avatar 黄卓然

add

parent fdecb219
'use strict';
module.exports = function(Billordertoday) {
};
{
"name": "BillOrdertoday",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "bill_ordertoday"
},
"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": 6,
"precision": null,
"scale": null,
"mysql": {
"columnName": "name",
"dataType": "varchar",
"dataLength": 6,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"value": {
"type": "Number",
"required": true,
"length": null,
"precision": 19,
"scale": 0,
"mysql": {
"columnName": "value",
"dataType": "bigint",
"dataLength": null,
"dataPrecision": 19,
"dataScale": 0,
"nullable": "N"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
......@@ -27087,6 +27087,392 @@ paths:
type: number
format: double
deprecated: false
/BillOrdertodays:
post:
tags:
- BillOrdertoday
summary: Create a new instance of the model and persist it into the data source.
operationId: BillOrdertoday.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/BillOrdertoday'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/BillOrdertoday'
deprecated: false
patch:
tags:
- BillOrdertoday
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: BillOrdertoday.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/BillOrdertoday'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/BillOrdertoday'
deprecated: false
put:
tags:
- BillOrdertoday
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: BillOrdertoday.replaceOrCreate__put_BillOrdertodays
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/BillOrdertoday'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/BillOrdertoday'
deprecated: false
get:
tags:
- BillOrdertoday
summary: Find all instances of the model matched by filter from the data source.
operationId: BillOrdertoday.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/BillOrdertoday'
deprecated: false
/BillOrdertodays/replaceOrCreate:
post:
tags:
- BillOrdertoday
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: BillOrdertoday.replaceOrCreate__post_BillOrdertodays_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/BillOrdertoday'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/BillOrdertoday'
deprecated: false
/BillOrdertodays/upsertWithWhere:
post:
tags:
- BillOrdertoday
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: BillOrdertoday.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/BillOrdertoday'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/BillOrdertoday'
deprecated: false
'/BillOrdertodays/{id}/exists':
get:
tags:
- BillOrdertoday
summary: Check whether a model instance exists in the data source.
operationId: 'BillOrdertoday.exists__get_BillOrdertodays_{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
'/BillOrdertodays/{id}':
head:
tags:
- BillOrdertoday
summary: Check whether a model instance exists in the data source.
operationId: 'BillOrdertoday.exists__head_BillOrdertodays_{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:
- BillOrdertoday
summary: 'Find a model instance by {{id}} from the data source.'
operationId: BillOrdertoday.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/BillOrdertoday'
deprecated: false
put:
tags:
- BillOrdertoday
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'BillOrdertoday.replaceById__put_BillOrdertodays_{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/BillOrdertoday'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/BillOrdertoday'
deprecated: false
delete:
tags:
- BillOrdertoday
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: BillOrdertoday.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:
- BillOrdertoday
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: BillOrdertoday.prototype.patchAttributes
parameters:
- name: id
in: path
description: BillOrdertoday 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/BillOrdertoday'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/BillOrdertoday'
deprecated: false
'/BillOrdertodays/{id}/replace':
post:
tags:
- BillOrdertoday
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'BillOrdertoday.replaceById__post_BillOrdertodays_{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/BillOrdertoday'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/BillOrdertoday'
deprecated: false
/BillOrdertodays/findOne:
get:
tags:
- BillOrdertoday
summary: Find first instance of the model matched by filter from the data source.
operationId: BillOrdertoday.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/BillOrdertoday'
deprecated: false
/BillOrdertodays/update:
post:
tags:
- BillOrdertoday
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: BillOrdertoday.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/BillOrdertoday'
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
/BillOrdertodays/count:
get:
tags:
- BillOrdertoday
summary: Count instances of the model matched by where from the data source.
operationId: BillOrdertoday.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:
......@@ -28252,6 +28638,21 @@ definitions:
required:
- name
additionalProperties: false
BillOrdertoday:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 6
type: string
value:
type: number
format: double
required:
- name
- value
additionalProperties: false
basePath: /api/ruipeng
swagger: '2.0'
info:
......
......@@ -292,5 +292,9 @@
"InterFanspublic": {
"dataSource": "ruipeng",
"public": true
},
"BillOrdertoday": {
"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