Commit 7a28e506 authored by 余海军's avatar 余海军

add

parent 3b8246bc
'use strict';
module.exports = function(Anotherorder) {
};
{
"name": "AnotherOrder",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "another_order"
},
"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": 3,
"precision": null,
"scale": null,
"mysql": {
"columnName": "name",
"dataType": "varchar",
"dataLength": 3,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"value1": {
"type": "Number",
"required": false,
"length": null,
"precision": 32,
"scale": 0,
"mysql": {
"columnName": "value1",
"dataType": "decimal",
"dataLength": null,
"dataPrecision": 32,
"dataScale": 0,
"nullable": "Y"
}
},
"value2": {
"type": "Number",
"required": false,
"length": null,
"precision": 32,
"scale": 0,
"mysql": {
"columnName": "value2",
"dataType": "decimal",
"dataLength": null,
"dataPrecision": 32,
"dataScale": 0,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
'use strict';
module.exports = function(Anotherrevenue) {
};
{
"name": "AnotherRevenue",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "another_revenue"
},
"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": 3,
"precision": null,
"scale": null,
"mysql": {
"columnName": "name",
"dataType": "varchar",
"dataLength": 3,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"value1": {
"type": "Number",
"required": false,
"length": null,
"precision": 32,
"scale": 0,
"mysql": {
"columnName": "value1",
"dataType": "decimal",
"dataLength": null,
"dataPrecision": 32,
"dataScale": 0,
"nullable": "Y"
}
},
"value2": {
"type": "Number",
"required": false,
"length": null,
"precision": 32,
"scale": 0,
"mysql": {
"columnName": "value2",
"dataType": "decimal",
"dataLength": null,
"dataPrecision": 32,
"dataScale": 0,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
...@@ -64924,6 +64924,778 @@ paths: ...@@ -64924,6 +64924,778 @@ paths:
type: number type: number
format: double format: double
deprecated: false deprecated: false
/AnotherOrders:
post:
tags:
- AnotherOrder
summary: Create a new instance of the model and persist it into the data source.
operationId: AnotherOrder.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/AnotherOrder'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherOrder'
deprecated: false
patch:
tags:
- AnotherOrder
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: AnotherOrder.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/AnotherOrder'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherOrder'
deprecated: false
put:
tags:
- AnotherOrder
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: AnotherOrder.replaceOrCreate__put_AnotherOrders
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/AnotherOrder'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherOrder'
deprecated: false
get:
tags:
- AnotherOrder
summary: Find all instances of the model matched by filter from the data source.
operationId: AnotherOrder.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/AnotherOrder'
deprecated: false
/AnotherOrders/replaceOrCreate:
post:
tags:
- AnotherOrder
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: AnotherOrder.replaceOrCreate__post_AnotherOrders_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/AnotherOrder'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherOrder'
deprecated: false
/AnotherOrders/upsertWithWhere:
post:
tags:
- AnotherOrder
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: AnotherOrder.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/AnotherOrder'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherOrder'
deprecated: false
'/AnotherOrders/{id}/exists':
get:
tags:
- AnotherOrder
summary: Check whether a model instance exists in the data source.
operationId: 'AnotherOrder.exists__get_AnotherOrders_{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
'/AnotherOrders/{id}':
head:
tags:
- AnotherOrder
summary: Check whether a model instance exists in the data source.
operationId: 'AnotherOrder.exists__head_AnotherOrders_{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:
- AnotherOrder
summary: 'Find a model instance by {{id}} from the data source.'
operationId: AnotherOrder.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/AnotherOrder'
deprecated: false
put:
tags:
- AnotherOrder
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'AnotherOrder.replaceById__put_AnotherOrders_{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/AnotherOrder'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherOrder'
deprecated: false
delete:
tags:
- AnotherOrder
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: AnotherOrder.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:
- AnotherOrder
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: AnotherOrder.prototype.patchAttributes
parameters:
- name: id
in: path
description: AnotherOrder 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/AnotherOrder'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherOrder'
deprecated: false
'/AnotherOrders/{id}/replace':
post:
tags:
- AnotherOrder
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'AnotherOrder.replaceById__post_AnotherOrders_{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/AnotherOrder'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherOrder'
deprecated: false
/AnotherOrders/findOne:
get:
tags:
- AnotherOrder
summary: Find first instance of the model matched by filter from the data source.
operationId: AnotherOrder.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/AnotherOrder'
deprecated: false
/AnotherOrders/update:
post:
tags:
- AnotherOrder
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: AnotherOrder.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/AnotherOrder'
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
/AnotherOrders/count:
get:
tags:
- AnotherOrder
summary: Count instances of the model matched by where from the data source.
operationId: AnotherOrder.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
/AnotherRevenues:
post:
tags:
- AnotherRevenue
summary: Create a new instance of the model and persist it into the data source.
operationId: AnotherRevenue.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/AnotherRevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherRevenue'
deprecated: false
patch:
tags:
- AnotherRevenue
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: AnotherRevenue.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/AnotherRevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherRevenue'
deprecated: false
put:
tags:
- AnotherRevenue
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: AnotherRevenue.replaceOrCreate__put_AnotherRevenues
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/AnotherRevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherRevenue'
deprecated: false
get:
tags:
- AnotherRevenue
summary: Find all instances of the model matched by filter from the data source.
operationId: AnotherRevenue.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/AnotherRevenue'
deprecated: false
/AnotherRevenues/replaceOrCreate:
post:
tags:
- AnotherRevenue
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: AnotherRevenue.replaceOrCreate__post_AnotherRevenues_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/AnotherRevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherRevenue'
deprecated: false
/AnotherRevenues/upsertWithWhere:
post:
tags:
- AnotherRevenue
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: AnotherRevenue.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/AnotherRevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherRevenue'
deprecated: false
'/AnotherRevenues/{id}/exists':
get:
tags:
- AnotherRevenue
summary: Check whether a model instance exists in the data source.
operationId: 'AnotherRevenue.exists__get_AnotherRevenues_{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
'/AnotherRevenues/{id}':
head:
tags:
- AnotherRevenue
summary: Check whether a model instance exists in the data source.
operationId: 'AnotherRevenue.exists__head_AnotherRevenues_{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:
- AnotherRevenue
summary: 'Find a model instance by {{id}} from the data source.'
operationId: AnotherRevenue.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/AnotherRevenue'
deprecated: false
put:
tags:
- AnotherRevenue
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'AnotherRevenue.replaceById__put_AnotherRevenues_{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/AnotherRevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherRevenue'
deprecated: false
delete:
tags:
- AnotherRevenue
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: AnotherRevenue.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:
- AnotherRevenue
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: AnotherRevenue.prototype.patchAttributes
parameters:
- name: id
in: path
description: AnotherRevenue 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/AnotherRevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherRevenue'
deprecated: false
'/AnotherRevenues/{id}/replace':
post:
tags:
- AnotherRevenue
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'AnotherRevenue.replaceById__post_AnotherRevenues_{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/AnotherRevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherRevenue'
deprecated: false
/AnotherRevenues/findOne:
get:
tags:
- AnotherRevenue
summary: Find first instance of the model matched by filter from the data source.
operationId: AnotherRevenue.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/AnotherRevenue'
deprecated: false
/AnotherRevenues/update:
post:
tags:
- AnotherRevenue
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: AnotherRevenue.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/AnotherRevenue'
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
/AnotherRevenues/count:
get:
tags:
- AnotherRevenue
summary: Count instances of the model matched by where from the data source.
operationId: AnotherRevenue.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:
...@@ -67595,6 +68367,36 @@ definitions: ...@@ -67595,6 +68367,36 @@ definitions:
maxLength: 255 maxLength: 255
type: string type: string
additionalProperties: false additionalProperties: false
AnotherOrder:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 3
type: string
value1:
type: number
format: double
value2:
type: number
format: double
additionalProperties: false
AnotherRevenue:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 3
type: string
value1:
type: number
format: double
value2:
type: number
format: double
additionalProperties: false
basePath: /api/ruipeng basePath: /api/ruipeng
swagger: '2.0' swagger: '2.0'
info: info:
...@@ -684,5 +684,13 @@ ...@@ -684,5 +684,13 @@
"BillTotalrevenue": { "BillTotalrevenue": {
"dataSource": "ruipeng", "dataSource": "ruipeng",
"public": true "public": true
},
"AnotherOrder": {
"dataSource": "ruipeng",
"public": true
},
"AnotherRevenue": {
"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