Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RuiPengLoopbackApi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄卓然
RuiPengLoopbackApi
Commits
b72beb6c
Commit
b72beb6c
authored
Aug 21, 2019
by
余海军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加
parent
86b6bd86
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1063 additions
and
134 deletions
+1063
-134
eachrevenue.js
common/models/eachrevenue.js
+5
-0
eachrevenue.json
common/models/eachrevenue.json
+63
-0
order.js
common/models/order.js
+5
-0
order.json
common/models/order.json
+2
-2
revenue.json
common/models/revenue.json
+7
-7
teachers.js
common/models/teachers.js
+5
-0
teachers.json
common/models/teachers.json
+48
-0
RuiPengLoopbackApi.yaml
definitions/RuiPengLoopbackApi.yaml
+919
-124
model-config.json
server/model-config.json
+9
-1
No files found.
common/models/eachrevenue.js
0 → 100644
View file @
b72beb6c
'use strict'
;
module
.
exports
=
function
(
Eachrevenue
)
{
};
common/models/eachrevenue.json
0 → 100644
View file @
b72beb6c
{
"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"
:
{}
}
common/models/
physical
.js
→
common/models/
order
.js
View file @
b72beb6c
'use strict'
;
module
.
exports
=
function
(
Physical
)
{
module
.
exports
=
function
(
Order
)
{
};
common/models/
physical
.json
→
common/models/
order
.json
View file @
b72beb6c
{
"name"
:
"
Physical
"
,
"name"
:
"
Order
"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
...
...
@@ -7,7 +7,7 @@
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"
physical
"
"table"
:
"
order
"
},
"properties"
:
{
"id"
:
{
...
...
common/models/revenue.json
View file @
b72beb6c
...
...
@@ -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"
:
2
2
,
"scale"
:
null
,
"precision"
:
3
2
,
"scale"
:
0
,
"mysql"
:
{
"columnName"
:
"value"
,
"dataType"
:
"d
ouble
"
,
"dataType"
:
"d
ecimal
"
,
"dataLength"
:
null
,
"dataPrecision"
:
2
2
,
"dataScale"
:
null
,
"dataPrecision"
:
3
2
,
"dataScale"
:
0
,
"nullable"
:
"Y"
}
}
...
...
common/models/teachers.js
0 → 100644
View file @
b72beb6c
'use strict'
;
module
.
exports
=
function
(
Teachers
)
{
};
common/models/teachers.json
0 → 100644
View file @
b72beb6c
{
"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"
:
{}
}
definitions/RuiPengLoopbackApi.yaml
View file @
b72beb6c
...
...
@@ -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:
R
evenue.patchOrCreate
operationId:
Eachr
evenue.patchOrCreate
parameters:
- name: data
in: body
...
...
@@ -5490,20 +6262,20 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/
R
evenue'
$ref: '#/definitions/
Eachr
evenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/
R
evenue'
$ref: '#/definitions/
Eachr
evenue'
deprecated: false
put
:
tags
:
-
R
evenue
-
Eachr
evenue
summary
:
>-
Replace an existing model instance or insert a new one into the data
source.
operationId:
Revenue.replaceOrCreate__put_R
evenues
operationId:
Eachrevenue.replaceOrCreate__put_Eachr
evenues
parameters:
- name: data
in: body
...
...
@@ -5511,18 +6283,18 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/
R
evenue'
$ref: '#/definitions/
Eachr
evenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/
R
evenue'
$ref: '#/definitions/
Eachr
evenue'
deprecated: false
get
:
tags
:
-
R
evenue
-
Eachr
evenue
summary
:
Find all instances of the model matched by filter from the data source.
operationId
:
R
evenue.find
operationId
:
Eachr
evenue.find
parameters
:
-
name
:
filter
in
:
query
...
...
@@ -5541,16 +6313,16 @@ paths:
schema
:
type
:
array
items
:
$ref
:
'
#/definitions/
R
evenue'
$ref
:
'
#/definitions/
Eachr
evenue'
deprecated
:
false
/
R
evenues/replaceOrCreate
:
/
Eachr
evenues/replaceOrCreate
:
post
:
tags
:
-
R
evenue
-
Eachr
evenue
summary
:
>-
Replace an existing model instance or insert a new one into the data
source.
operationId:
Revenue.replaceOrCreate__post_R
evenues_replaceOrCreate
operationId:
Eachrevenue.replaceOrCreate__post_Eachr
evenues_replaceOrCreate
parameters:
- name: data
in: body
...
...
@@ -5558,21 +6330,21 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/
R
evenue'
$ref: '#/definitions/
Eachr
evenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/
R
evenue'
$ref: '#/definitions/
Eachr
evenue'
deprecated: false
/
R
evenues/upsertWithWhere
:
/
Eachr
evenues/upsertWithWhere
:
post
:
tags
:
-
R
evenue
-
Eachr
evenue
summary
:
>-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId:
R
evenue.upsertWithWhere
operationId:
Eachr
evenue.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/
R
evenue'
$ref: '#/definitions/
Eachr
evenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/
R
evenue'
$ref: '#/definitions/
Eachr
evenue'
deprecated: false
'
/
R
evenues/{id}/exists'
:
'
/
Eachr
evenues/{id}/exists'
:
get
:
tags
:
-
R
evenue
-
Eachr
evenue
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
Revenue.exists__get_R
evenues_{id}_exists'
operationId
:
'
Eachrevenue.exists__get_Eachr
evenues_{id}_exists'
parameters
:
-
name
:
id
in
:
path
...
...
@@ -5615,12 +6387,12 @@ paths:
exists
:
type
:
boolean
deprecated
:
false
'
/
R
evenues/{id}'
:
'
/
Eachr
evenues/{id}'
:
head
:
tags
:
-
R
evenue
-
Eachr
evenue
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
Revenue.exists__head_R
evenues_{id}'
operationId
:
'
Eachrevenue.exists__head_Eachr
evenues_{id}'
parameters
:
-
name
:
id
in
:
path
...
...
@@ -5639,9 +6411,9 @@ paths:
deprecated
:
false
get
:
tags
:
-
R
evenue
-
Eachr
evenue
summary
:
'
Find
a
model
instance
by
{{id}}
from
the
data
source.'
operationId
:
R
evenue.findById
operationId
:
Eachr
evenue.findById
parameters
:
-
name
:
id
in
:
path
...
...
@@ -5661,15 +6433,15 @@ paths:
'
200'
:
description
:
Request was successful
schema
:
$ref
:
'
#/definitions/
R
evenue'
$ref
:
'
#/definitions/
Eachr
evenue'
deprecated
:
false
put
:
tags
:
-
R
evenue
-
Eachr
evenue
summary
:
>-
Replace attributes for a model instance and persist it into the data
source.
operationId: '
Revenue.replaceById__put_R
evenues_{id}'
operationId: '
Eachrevenue.replaceById__put_Eachr
evenues_{id}'
parameters:
- name: id
in: path
...
...
@@ -5683,18 +6455,18 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/
R
evenue'
$ref: '#/definitions/
Eachr
evenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/
R
evenue'
$ref: '#/definitions/
Eachr
evenue'
deprecated: false
delete
:
tags
:
-
R
evenue
-
Eachr
evenue
summary
:
'
Delete
a
model
instance
by
{{id}}
from
the
data
source.'
operationId
:
R
evenue.deleteById
operationId
:
Eachr
evenue.deleteById
parameters
:
-
name
:
id
in
:
path
...
...
@@ -5710,15 +6482,15 @@ paths:
deprecated
:
false
patch
:
tags
:
-
R
evenue
-
Eachr
evenue
summary
:
>-
Patch attributes for a model instance and persist it into the data
source.
operationId:
R
evenue.prototype.patchAttributes
operationId:
Eachr
evenue.prototype.patchAttributes
parameters:
- name: id
in: path
description:
R
evenue id
description:
Eachr
evenue 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/
R
evenue'
$ref: '#/definitions/
Eachr
evenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/
R
evenue'
$ref: '#/definitions/
Eachr
evenue'
deprecated: false
'
/
R
evenues/{id}/replace'
:
'
/
Eachr
evenues/{id}/replace'
:
post
:
tags
:
-
R
evenue
-
Eachr
evenue
summary
:
>-
Replace attributes for a model instance and persist it into the data
source.
operationId: '
Revenue.replaceById__post_R
evenues_{id}_replace'
operationId: '
Eachrevenue.replaceById__post_Eachr
evenues_{id}_replace'
parameters:
- name: id
in: path
...
...
@@ -5756,19 +6528,19 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/
R
evenue'
$ref: '#/definitions/
Eachr
evenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/
R
evenue'
$ref: '#/definitions/
Eachr
evenue'
deprecated: false
/
R
evenues/findOne
:
/
Eachr
evenues/findOne
:
get
:
tags
:
-
R
evenue
-
Eachr
evenue
summary
:
Find first instance of the model matched by filter from the data source.
operationId
:
R
evenue.findOne
operationId
:
Eachr
evenue.findOne
parameters
:
-
name
:
filter
in
:
query
...
...
@@ -5785,14 +6557,14 @@ paths:
'
200'
:
description
:
Request was successful
schema
:
$ref
:
'
#/definitions/
R
evenue'
$ref
:
'
#/definitions/
Eachr
evenue'
deprecated
:
false
/
R
evenues/update
:
/
Eachr
evenues/update
:
post
:
tags
:
-
R
evenue
-
Eachr
evenue
summary
:
'
Update
instances
of
the
model
matched
by
{{where}}
from
the
data
source.'
operationId
:
R
evenue.updateAll
operationId
:
Eachr
evenue.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/
R
evenue'
$ref
:
'
#/definitions/
Eachr
evenue'
responses
:
'
200'
:
description
:
Request was successful
...
...
@@ -5819,12 +6591,12 @@ paths:
type
:
number
format
:
double
deprecated
:
false
/
R
evenues/count
:
/
Eachr
evenues/count
:
get
:
tags
:
-
R
evenue
-
Eachr
evenue
summary
:
Count instances of the model matched by where from the data source.
operationId
:
R
evenue.count
operationId
:
Eachr
evenue.count
parameters
:
-
name
:
where
in
:
query
...
...
@@ -5842,12 +6614,12 @@ paths:
type
:
number
format
:
double
deprecated
:
false
/
Physical
s
:
/
Teacher
s
:
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_Physical
s
operationId:
Teachers.replaceOrCreate__put_Teacher
s
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
/
Physical
s/replaceOrCreate
:
/
Teacher
s/replaceOrCreate
:
post
:
tags
:
-
Physical
-
Teachers
summary
:
>-
Replace an existing model instance or insert a new one into the data
source.
operationId:
Physical.replaceOrCreate__post_Physical
s_replaceOrCreate
operationId:
Teachers.replaceOrCreate__post_Teacher
s_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
/
Physical
s/upsertWithWhere
:
/
Teacher
s/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
'
/
Physical
s/{id}/exists'
:
'
/
Teacher
s/{id}/exists'
:
get
:
tags
:
-
Physical
-
Teachers
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
Physical.exists__get_Physical
s_{id}_exists'
operationId
:
'
Teachers.exists__get_Teacher
s_{id}_exists'
parameters
:
-
name
:
id
in
:
path
...
...
@@ -6001,12 +6773,12 @@ paths:
exists
:
type
:
boolean
deprecated
:
false
'
/
Physical
s/{id}'
:
'
/
Teacher
s/{id}'
:
head
:
tags
:
-
Physical
-
Teachers
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
Physical.exists__head_Physical
s_{id}'
operationId
:
'
Teachers.exists__head_Teacher
s_{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_Physical
s_{id}'
operationId: '
Teachers.replaceById__put_Teacher
s_{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
'
/
Physical
s/{id}/replace'
:
'
/
Teacher
s/{id}/replace'
:
post
:
tags
:
-
Physical
-
Teachers
summary
:
>-
Replace attributes for a model instance and persist it into the data
source.
operationId: '
Physical.replaceById__post_Physical
s_{id}_replace'
operationId: '
Teachers.replaceById__post_Teacher
s_{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
/
Physical
s/findOne
:
/
Teacher
s/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
/
Physical
s/update
:
/
Teacher
s/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
/
Physical
s/count
:
/
Teacher
s/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
:
...
...
server/model-config.json
View file @
b72beb6c
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment