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

add

parent 56a56666
'use strict';
module.exports = function(Anotherbillrevenue) {
};
{
"name": "AnotherBillrevenue",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "another_billrevenue"
},
"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"
}
},
"companyName": {
"type": "String",
"required": false,
"length": 200,
"precision": null,
"scale": null,
"mysql": {
"columnName": "company_name",
"dataType": "varchar",
"dataLength": 200,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"value": {
"type": "Number",
"required": false,
"length": null,
"precision": 46,
"scale": 2,
"mysql": {
"columnName": "value",
"dataType": "decimal",
"dataLength": null,
"dataPrecision": 46,
"dataScale": 2,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
...@@ -70339,6 +70339,393 @@ paths: ...@@ -70339,6 +70339,393 @@ paths:
type: number type: number
format: double format: double
deprecated: false deprecated: false
/AnotherBillrevenues:
post:
tags:
- AnotherBillrevenue
summary: Create a new instance of the model and persist it into the data source.
operationId: AnotherBillrevenue.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/AnotherBillrevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherBillrevenue'
deprecated: false
patch:
tags:
- AnotherBillrevenue
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: AnotherBillrevenue.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/AnotherBillrevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherBillrevenue'
deprecated: false
put:
tags:
- AnotherBillrevenue
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: AnotherBillrevenue.replaceOrCreate__put_AnotherBillrevenues
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/AnotherBillrevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherBillrevenue'
deprecated: false
get:
tags:
- AnotherBillrevenue
summary: Find all instances of the model matched by filter from the data source.
operationId: AnotherBillrevenue.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/AnotherBillrevenue'
deprecated: false
/AnotherBillrevenues/replaceOrCreate:
post:
tags:
- AnotherBillrevenue
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: >-
AnotherBillrevenue.replaceOrCreate__post_AnotherBillrevenues_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/AnotherBillrevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherBillrevenue'
deprecated: false
/AnotherBillrevenues/upsertWithWhere:
post:
tags:
- AnotherBillrevenue
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: AnotherBillrevenue.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/AnotherBillrevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherBillrevenue'
deprecated: false
'/AnotherBillrevenues/{id}/exists':
get:
tags:
- AnotherBillrevenue
summary: Check whether a model instance exists in the data source.
operationId: 'AnotherBillrevenue.exists__get_AnotherBillrevenues_{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
'/AnotherBillrevenues/{id}':
head:
tags:
- AnotherBillrevenue
summary: Check whether a model instance exists in the data source.
operationId: 'AnotherBillrevenue.exists__head_AnotherBillrevenues_{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:
- AnotherBillrevenue
summary: 'Find a model instance by {{id}} from the data source.'
operationId: AnotherBillrevenue.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/AnotherBillrevenue'
deprecated: false
put:
tags:
- AnotherBillrevenue
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'AnotherBillrevenue.replaceById__put_AnotherBillrevenues_{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/AnotherBillrevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherBillrevenue'
deprecated: false
delete:
tags:
- AnotherBillrevenue
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: AnotherBillrevenue.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:
- AnotherBillrevenue
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: AnotherBillrevenue.prototype.patchAttributes
parameters:
- name: id
in: path
description: AnotherBillrevenue 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/AnotherBillrevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherBillrevenue'
deprecated: false
'/AnotherBillrevenues/{id}/replace':
post:
tags:
- AnotherBillrevenue
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'AnotherBillrevenue.replaceById__post_AnotherBillrevenues_{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/AnotherBillrevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherBillrevenue'
deprecated: false
/AnotherBillrevenues/findOne:
get:
tags:
- AnotherBillrevenue
summary: Find first instance of the model matched by filter from the data source.
operationId: AnotherBillrevenue.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/AnotherBillrevenue'
deprecated: false
/AnotherBillrevenues/update:
post:
tags:
- AnotherBillrevenue
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: AnotherBillrevenue.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/AnotherBillrevenue'
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
/AnotherBillrevenues/count:
get:
tags:
- AnotherBillrevenue
summary: Count instances of the model matched by where from the data source.
operationId: AnotherBillrevenue.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:
...@@ -73256,6 +73643,18 @@ definitions: ...@@ -73256,6 +73643,18 @@ definitions:
maxLength: 200 maxLength: 200
type: string type: string
additionalProperties: false additionalProperties: false
AnotherBillrevenue:
properties:
id:
maxLength: 36
type: string
companyName:
maxLength: 200
type: string
value:
type: number
format: double
additionalProperties: false
basePath: /api/ruipeng basePath: /api/ruipeng
swagger: '2.0' swagger: '2.0'
info: info:
...@@ -740,5 +740,9 @@ ...@@ -740,5 +740,9 @@
"AnotherEachmonthrevenue": { "AnotherEachmonthrevenue": {
"dataSource": "ruipeng", "dataSource": "ruipeng",
"public": true "public": true
},
"AnotherBillrevenue": {
"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