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