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

添加

parent 86b6bd86
'use strict';
module.exports = function(Eachrevenue) {
};
{
"name": "Eachrevenue",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "eachrevenue"
},
"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": 5,
"precision": null,
"scale": null,
"mysql": {
"columnName": "name",
"dataType": "varchar",
"dataLength": 5,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"value": {
"type": "Number",
"required": false,
"length": null,
"precision": 22,
"scale": null,
"mysql": {
"columnName": "value",
"dataType": "double",
"dataLength": null,
"dataPrecision": 22,
"dataScale": null,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
'use strict';
module.exports = function(Physical) {
module.exports = function(Order) {
};
{
"name": "Physical",
"name": "Order",
"base": "PersistedModel",
"idInjection": false,
"options": {
......@@ -7,7 +7,7 @@
},
"mysql": {
"schema": "wordpress",
"table": "physical"
"table": "order"
},
"properties": {
"id": {
......
......@@ -28,13 +28,13 @@
"name": {
"type": "String",
"required": true,
"length": 5,
"length": 4,
"precision": null,
"scale": null,
"mysql": {
"columnName": "name",
"dataType": "varchar",
"dataLength": 5,
"dataLength": 4,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
......@@ -44,14 +44,14 @@
"type": "Number",
"required": false,
"length": null,
"precision": 22,
"scale": null,
"precision": 32,
"scale": 0,
"mysql": {
"columnName": "value",
"dataType": "double",
"dataType": "decimal",
"dataLength": null,
"dataPrecision": 22,
"dataScale": null,
"dataPrecision": 32,
"dataScale": 0,
"nullable": "Y"
}
}
......
'use strict';
module.exports = function(Teachers) {
};
{
"name": "Teachers",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "teachers"
},
"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"
}
},
"value": {
"type": "Number",
"required": false,
"length": null,
"precision": 23,
"scale": null,
"mysql": {
"columnName": "value",
"dataType": "double",
"dataLength": null,
"dataPrecision": 23,
"dataScale": null,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
......@@ -5456,13 +5456,686 @@ paths:
type: number
format: double
deprecated: false
/Orders:
post:
tags:
- Order
summary: Create a new instance of the model and persist it into the data source.
operationId: Order.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/Order'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Order'
deprecated: false
patch:
tags:
- Order
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: Order.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/Order'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Order'
deprecated: false
put:
tags:
- Order
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: Order.replaceOrCreate__put_Orders
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/Order'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Order'
deprecated: false
get:
tags:
- Order
summary: Find all instances of the model matched by filter from the data source.
operationId: Order.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/Order'
deprecated: false
/Orders/replaceOrCreate:
post:
tags:
- Order
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: Order.replaceOrCreate__post_Orders_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/Order'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Order'
deprecated: false
/Orders/upsertWithWhere:
post:
tags:
- Order
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: Order.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/Order'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Order'
deprecated: false
'/Orders/{id}/exists':
get:
tags:
- Order
summary: Check whether a model instance exists in the data source.
operationId: 'Order.exists__get_Orders_{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
'/Orders/{id}':
head:
tags:
- Order
summary: Check whether a model instance exists in the data source.
operationId: 'Order.exists__head_Orders_{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:
- Order
summary: 'Find a model instance by {{id}} from the data source.'
operationId: Order.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/Order'
deprecated: false
put:
tags:
- Order
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'Order.replaceById__put_Orders_{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/Order'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Order'
deprecated: false
delete:
tags:
- Order
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: Order.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:
- Order
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: Order.prototype.patchAttributes
parameters:
- name: id
in: path
description: Order 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/Order'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Order'
deprecated: false
'/Orders/{id}/replace':
post:
tags:
- Order
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'Order.replaceById__post_Orders_{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/Order'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Order'
deprecated: false
/Orders/findOne:
get:
tags:
- Order
summary: Find first instance of the model matched by filter from the data source.
operationId: Order.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/Order'
deprecated: false
/Orders/update:
post:
tags:
- Order
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: Order.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/Order'
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
/Orders/count:
get:
tags:
- Order
summary: Count instances of the model matched by where from the data source.
operationId: Order.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
/Revenues:
post:
tags:
- Revenue
summary: Create a new instance of the model and persist it into the data source.
operationId: Revenue.create
summary: Create a new instance of the model and persist it into the data source.
operationId: Revenue.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/Revenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
deprecated: false
patch:
tags:
- Revenue
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: Revenue.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/Revenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
deprecated: false
put:
tags:
- Revenue
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: Revenue.replaceOrCreate__put_Revenues
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/Revenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
deprecated: false
get:
tags:
- Revenue
summary: Find all instances of the model matched by filter from the data source.
operationId: Revenue.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/Revenue'
deprecated: false
/Revenues/replaceOrCreate:
post:
tags:
- Revenue
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: Revenue.replaceOrCreate__post_Revenues_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/Revenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
deprecated: false
/Revenues/upsertWithWhere:
post:
tags:
- Revenue
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: Revenue.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/Revenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
deprecated: false
'/Revenues/{id}/exists':
get:
tags:
- Revenue
summary: Check whether a model instance exists in the data source.
operationId: 'Revenue.exists__get_Revenues_{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
'/Revenues/{id}':
head:
tags:
- Revenue
summary: Check whether a model instance exists in the data source.
operationId: 'Revenue.exists__head_Revenues_{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:
- Revenue
summary: 'Find a model instance by {{id}} from the data source.'
operationId: Revenue.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/Revenue'
deprecated: false
put:
tags:
- Revenue
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'Revenue.replaceById__put_Revenues_{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/Revenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
deprecated: false
delete:
tags:
- Revenue
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: Revenue.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:
- Revenue
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: Revenue.prototype.patchAttributes
parameters:
- name: id
in: path
description: Revenue 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/Revenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
deprecated: false
'/Revenues/{id}/replace':
post:
tags:
- Revenue
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'Revenue.replaceById__post_Revenues_{id}_replace'
parameters:
- name: id
in: path
description: Model id
required: true
type: string
format: JSON
- name: data
in: body
description: Model instance data
......@@ -5476,13 +6149,112 @@ paths:
schema:
$ref: '#/definitions/Revenue'
deprecated: false
patch:
/Revenues/findOne:
get:
tags:
- Revenue
summary: Find first instance of the model matched by filter from the data source.
operationId: Revenue.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/Revenue'
deprecated: false
/Revenues/update:
post:
tags:
- Revenue
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: Revenue.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/Revenue'
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
/Revenues/count:
get:
tags:
- Revenue
summary: Count instances of the model matched by where from the data source.
operationId: Revenue.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
/Eachrevenues:
post:
tags:
- Eachrevenue
summary: Create a new instance of the model and persist it into the data source.
operationId: Eachrevenue.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/Eachrevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Eachrevenue'
deprecated: false
patch:
tags:
- Eachrevenue
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: Revenue.patchOrCreate
operationId: Eachrevenue.patchOrCreate
parameters:
- name: data
in: body
......@@ -5490,20 +6262,20 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Eachrevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Eachrevenue'
deprecated: false
put:
tags:
- Revenue
- Eachrevenue
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: Revenue.replaceOrCreate__put_Revenues
operationId: Eachrevenue.replaceOrCreate__put_Eachrevenues
parameters:
- name: data
in: body
......@@ -5511,18 +6283,18 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Eachrevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Eachrevenue'
deprecated: false
get:
tags:
- Revenue
- Eachrevenue
summary: Find all instances of the model matched by filter from the data source.
operationId: Revenue.find
operationId: Eachrevenue.find
parameters:
- name: filter
in: query
......@@ -5541,16 +6313,16 @@ paths:
schema:
type: array
items:
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Eachrevenue'
deprecated: false
/Revenues/replaceOrCreate:
/Eachrevenues/replaceOrCreate:
post:
tags:
- Revenue
- Eachrevenue
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: Revenue.replaceOrCreate__post_Revenues_replaceOrCreate
operationId: Eachrevenue.replaceOrCreate__post_Eachrevenues_replaceOrCreate
parameters:
- name: data
in: body
......@@ -5558,21 +6330,21 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Eachrevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Eachrevenue'
deprecated: false
/Revenues/upsertWithWhere:
/Eachrevenues/upsertWithWhere:
post:
tags:
- Revenue
- Eachrevenue
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: Revenue.upsertWithWhere
operationId: Eachrevenue.upsertWithWhere
parameters:
- name: where
in: query
......@@ -5586,19 +6358,19 @@ paths:
required: false
schema:
description: An object of model property name/value pairs
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Eachrevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Eachrevenue'
deprecated: false
'/Revenues/{id}/exists':
'/Eachrevenues/{id}/exists':
get:
tags:
- Revenue
- Eachrevenue
summary: Check whether a model instance exists in the data source.
operationId: 'Revenue.exists__get_Revenues_{id}_exists'
operationId: 'Eachrevenue.exists__get_Eachrevenues_{id}_exists'
parameters:
- name: id
in: path
......@@ -5615,12 +6387,12 @@ paths:
exists:
type: boolean
deprecated: false
'/Revenues/{id}':
'/Eachrevenues/{id}':
head:
tags:
- Revenue
- Eachrevenue
summary: Check whether a model instance exists in the data source.
operationId: 'Revenue.exists__head_Revenues_{id}'
operationId: 'Eachrevenue.exists__head_Eachrevenues_{id}'
parameters:
- name: id
in: path
......@@ -5639,9 +6411,9 @@ paths:
deprecated: false
get:
tags:
- Revenue
- Eachrevenue
summary: 'Find a model instance by {{id}} from the data source.'
operationId: Revenue.findById
operationId: Eachrevenue.findById
parameters:
- name: id
in: path
......@@ -5661,15 +6433,15 @@ paths:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Eachrevenue'
deprecated: false
put:
tags:
- Revenue
- Eachrevenue
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'Revenue.replaceById__put_Revenues_{id}'
operationId: 'Eachrevenue.replaceById__put_Eachrevenues_{id}'
parameters:
- name: id
in: path
......@@ -5683,18 +6455,18 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Eachrevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Eachrevenue'
deprecated: false
delete:
tags:
- Revenue
- Eachrevenue
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: Revenue.deleteById
operationId: Eachrevenue.deleteById
parameters:
- name: id
in: path
......@@ -5710,15 +6482,15 @@ paths:
deprecated: false
patch:
tags:
- Revenue
- Eachrevenue
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: Revenue.prototype.patchAttributes
operationId: Eachrevenue.prototype.patchAttributes
parameters:
- name: id
in: path
description: Revenue id
description: Eachrevenue id
required: true
type: string
format: JSON
......@@ -5728,21 +6500,21 @@ paths:
required: false
schema:
description: An object of model property name/value pairs
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Eachrevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Eachrevenue'
deprecated: false
'/Revenues/{id}/replace':
'/Eachrevenues/{id}/replace':
post:
tags:
- Revenue
- Eachrevenue
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'Revenue.replaceById__post_Revenues_{id}_replace'
operationId: 'Eachrevenue.replaceById__post_Eachrevenues_{id}_replace'
parameters:
- name: id
in: path
......@@ -5756,19 +6528,19 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Eachrevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Eachrevenue'
deprecated: false
/Revenues/findOne:
/Eachrevenues/findOne:
get:
tags:
- Revenue
- Eachrevenue
summary: Find first instance of the model matched by filter from the data source.
operationId: Revenue.findOne
operationId: Eachrevenue.findOne
parameters:
- name: filter
in: query
......@@ -5785,14 +6557,14 @@ paths:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Eachrevenue'
deprecated: false
/Revenues/update:
/Eachrevenues/update:
post:
tags:
- Revenue
- Eachrevenue
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: Revenue.updateAll
operationId: Eachrevenue.updateAll
parameters:
- name: where
in: query
......@@ -5806,7 +6578,7 @@ paths:
required: false
schema:
description: An object of model property name/value pairs
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Eachrevenue'
responses:
'200':
description: Request was successful
......@@ -5819,12 +6591,12 @@ paths:
type: number
format: double
deprecated: false
/Revenues/count:
/Eachrevenues/count:
get:
tags:
- Revenue
- Eachrevenue
summary: Count instances of the model matched by where from the data source.
operationId: Revenue.count
operationId: Eachrevenue.count
parameters:
- name: where
in: query
......@@ -5842,12 +6614,12 @@ paths:
type: number
format: double
deprecated: false
/Physicals:
/Teachers:
post:
tags:
- Physical
- Teachers
summary: Create a new instance of the model and persist it into the data source.
operationId: Physical.create
operationId: Teachers.create
parameters:
- name: data
in: body
......@@ -5855,20 +6627,20 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Physical'
$ref: '#/definitions/Teachers'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Physical'
$ref: '#/definitions/Teachers'
deprecated: false
patch:
tags:
- Physical
- Teachers
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: Physical.patchOrCreate
operationId: Teachers.patchOrCreate
parameters:
- name: data
in: body
......@@ -5876,20 +6648,20 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Physical'
$ref: '#/definitions/Teachers'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Physical'
$ref: '#/definitions/Teachers'
deprecated: false
put:
tags:
- Physical
- Teachers
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: Physical.replaceOrCreate__put_Physicals
operationId: Teachers.replaceOrCreate__put_Teachers
parameters:
- name: data
in: body
......@@ -5897,18 +6669,18 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Physical'
$ref: '#/definitions/Teachers'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Physical'
$ref: '#/definitions/Teachers'
deprecated: false
get:
tags:
- Physical
- Teachers
summary: Find all instances of the model matched by filter from the data source.
operationId: Physical.find
operationId: Teachers.find
parameters:
- name: filter
in: query
......@@ -5927,16 +6699,16 @@ paths:
schema:
type: array
items:
$ref: '#/definitions/Physical'
$ref: '#/definitions/Teachers'
deprecated: false
/Physicals/replaceOrCreate:
/Teachers/replaceOrCreate:
post:
tags:
- Physical
- Teachers
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: Physical.replaceOrCreate__post_Physicals_replaceOrCreate
operationId: Teachers.replaceOrCreate__post_Teachers_replaceOrCreate
parameters:
- name: data
in: body
......@@ -5944,21 +6716,21 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Physical'
$ref: '#/definitions/Teachers'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Physical'
$ref: '#/definitions/Teachers'
deprecated: false
/Physicals/upsertWithWhere:
/Teachers/upsertWithWhere:
post:
tags:
- Physical
- Teachers
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: Physical.upsertWithWhere
operationId: Teachers.upsertWithWhere
parameters:
- name: where
in: query
......@@ -5972,19 +6744,19 @@ paths:
required: false
schema:
description: An object of model property name/value pairs
$ref: '#/definitions/Physical'
$ref: '#/definitions/Teachers'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Physical'
$ref: '#/definitions/Teachers'
deprecated: false
'/Physicals/{id}/exists':
'/Teachers/{id}/exists':
get:
tags:
- Physical
- Teachers
summary: Check whether a model instance exists in the data source.
operationId: 'Physical.exists__get_Physicals_{id}_exists'
operationId: 'Teachers.exists__get_Teachers_{id}_exists'
parameters:
- name: id
in: path
......@@ -6001,12 +6773,12 @@ paths:
exists:
type: boolean
deprecated: false
'/Physicals/{id}':
'/Teachers/{id}':
head:
tags:
- Physical
- Teachers
summary: Check whether a model instance exists in the data source.
operationId: 'Physical.exists__head_Physicals_{id}'
operationId: 'Teachers.exists__head_Teachers_{id}'
parameters:
- name: id
in: path
......@@ -6025,9 +6797,9 @@ paths:
deprecated: false
get:
tags:
- Physical
- Teachers
summary: 'Find a model instance by {{id}} from the data source.'
operationId: Physical.findById
operationId: Teachers.findById
parameters:
- name: id
in: path
......@@ -6047,15 +6819,15 @@ paths:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Physical'
$ref: '#/definitions/Teachers'
deprecated: false
put:
tags:
- Physical
- Teachers
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'Physical.replaceById__put_Physicals_{id}'
operationId: 'Teachers.replaceById__put_Teachers_{id}'
parameters:
- name: id
in: path
......@@ -6069,18 +6841,18 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Physical'
$ref: '#/definitions/Teachers'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Physical'
$ref: '#/definitions/Teachers'
deprecated: false
delete:
tags:
- Physical
- Teachers
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: Physical.deleteById
operationId: Teachers.deleteById
parameters:
- name: id
in: path
......@@ -6096,15 +6868,15 @@ paths:
deprecated: false
patch:
tags:
- Physical
- Teachers
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: Physical.prototype.patchAttributes
operationId: Teachers.prototype.patchAttributes
parameters:
- name: id
in: path
description: Physical id
description: Teachers id
required: true
type: string
format: JSON
......@@ -6114,21 +6886,21 @@ paths:
required: false
schema:
description: An object of model property name/value pairs
$ref: '#/definitions/Physical'
$ref: '#/definitions/Teachers'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Physical'
$ref: '#/definitions/Teachers'
deprecated: false
'/Physicals/{id}/replace':
'/Teachers/{id}/replace':
post:
tags:
- Physical
- Teachers
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'Physical.replaceById__post_Physicals_{id}_replace'
operationId: 'Teachers.replaceById__post_Teachers_{id}_replace'
parameters:
- name: id
in: path
......@@ -6142,19 +6914,19 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Physical'
$ref: '#/definitions/Teachers'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Physical'
$ref: '#/definitions/Teachers'
deprecated: false
/Physicals/findOne:
/Teachers/findOne:
get:
tags:
- Physical
- Teachers
summary: Find first instance of the model matched by filter from the data source.
operationId: Physical.findOne
operationId: Teachers.findOne
parameters:
- name: filter
in: query
......@@ -6171,14 +6943,14 @@ paths:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Physical'
$ref: '#/definitions/Teachers'
deprecated: false
/Physicals/update:
/Teachers/update:
post:
tags:
- Physical
- Teachers
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: Physical.updateAll
operationId: Teachers.updateAll
parameters:
- name: where
in: query
......@@ -6192,7 +6964,7 @@ paths:
required: false
schema:
description: An object of model property name/value pairs
$ref: '#/definitions/Physical'
$ref: '#/definitions/Teachers'
responses:
'200':
description: Request was successful
......@@ -6205,12 +6977,12 @@ paths:
type: number
format: double
deprecated: false
/Physicals/count:
/Teachers/count:
get:
tags:
- Physical
- Teachers
summary: Count instances of the model matched by where from the data source.
operationId: Physical.count
operationId: Teachers.count
parameters:
- name: where
in: query
......@@ -6644,13 +7416,13 @@ definitions:
- name
- value
additionalProperties: false
Revenue:
Order:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 5
maxLength: 4
type: string
value:
type: number
......@@ -6658,7 +7430,7 @@ definitions:
required:
- name
additionalProperties: false
Physical:
Revenue:
properties:
id:
maxLength: 36
......@@ -6672,6 +7444,29 @@ definitions:
required:
- name
additionalProperties: false
Eachrevenue:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 5
type: string
value:
type: number
format: double
required:
- name
additionalProperties: false
Teachers:
properties:
id:
maxLength: 36
type: string
value:
type: number
format: double
additionalProperties: false
basePath: /api/ruipeng
swagger: '2.0'
info:
......
......@@ -69,11 +69,19 @@
"dataSource": "ruipeng",
"public": true
},
"Order": {
"dataSource": "ruipeng",
"public": true
},
"Revenue": {
"dataSource": "ruipeng",
"public": true
},
"Physical": {
"Eachrevenue": {
"dataSource": "ruipeng",
"public": true
},
"Teachers": {
"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