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
86b6bd86
Commit
86b6bd86
authored
Aug 21, 2019
by
余海军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
总订单量
parent
466a29fa
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
161 additions
and
136 deletions
+161
-136
physical.js
common/models/physical.js
+5
-0
physical.json
common/models/physical.json
+22
-7
RuiPengLoopbackApi.yaml
definitions/RuiPengLoopbackApi.yaml
+132
-127
model-config.json
server/model-config.json
+2
-2
No files found.
common/models/
teachers
.js
→
common/models/
physical
.js
View file @
86b6bd86
'use strict'
;
'use strict'
;
module
.
exports
=
function
(
Teachers
)
{
module
.
exports
=
function
(
Physical
)
{
};
};
common/models/
teachers
.json
→
common/models/
physical
.json
View file @
86b6bd86
{
{
"name"
:
"
Teachers
"
,
"name"
:
"
Physical
"
,
"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"
:
"
teachers
"
"table"
:
"
physical
"
},
},
"properties"
:
{
"properties"
:
{
"id"
:
{
"id"
:
{
...
@@ -25,18 +25,33 @@
...
@@ -25,18 +25,33 @@
"nullable"
:
"Y"
"nullable"
:
"Y"
}
}
},
},
"name"
:
{
"type"
:
"String"
,
"required"
:
true
,
"length"
:
4
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"name"
,
"dataType"
:
"varchar"
,
"dataLength"
:
4
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"N"
}
},
"value"
:
{
"value"
:
{
"type"
:
"Number"
,
"type"
:
"Number"
,
"required"
:
false
,
"required"
:
false
,
"length"
:
null
,
"length"
:
null
,
"precision"
:
23
,
"precision"
:
32
,
"scale"
:
null
,
"scale"
:
0
,
"mysql"
:
{
"mysql"
:
{
"columnName"
:
"value"
,
"columnName"
:
"value"
,
"dataType"
:
"d
ouble
"
,
"dataType"
:
"d
ecimal
"
,
"dataLength"
:
null
,
"dataLength"
:
null
,
"dataPrecision"
:
23
,
"dataPrecision"
:
32
,
"dataScale"
:
null
,
"dataScale"
:
0
,
"nullable"
:
"Y"
"nullable"
:
"Y"
}
}
}
}
...
...
definitions/RuiPengLoopbackApi.yaml
View file @
86b6bd86
...
@@ -5456,12 +5456,12 @@ paths:
...
@@ -5456,12 +5456,12 @@ paths:
type
:
number
type
:
number
format
:
double
format
:
double
deprecated
:
false
deprecated
:
false
/
Teacher
s
:
/
Revenue
s
:
post
:
post
:
tags
:
tags
:
-
Teachers
-
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
:
Teachers
.create
operationId
:
Revenue
.create
parameters
:
parameters
:
-
name
:
data
-
name
:
data
in
:
body
in
:
body
...
@@ -5469,20 +5469,20 @@ paths:
...
@@ -5469,20 +5469,20 @@ paths:
required
:
false
required
:
false
schema
:
schema
:
description
:
Model instance data
description
:
Model instance data
$ref
:
'
#/definitions/
Teachers
'
$ref
:
'
#/definitions/
Revenue
'
responses
:
responses
:
'
200'
:
'
200'
:
description
:
Request was successful
description
:
Request was successful
schema
:
schema
:
$ref
:
'
#/definitions/
Teachers
'
$ref
:
'
#/definitions/
Revenue
'
deprecated
:
false
deprecated
:
false
patch
:
patch
:
tags
:
tags
:
-
Teachers
-
Revenue
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:
Teachers
.patchOrCreate
operationId:
Revenue
.patchOrCreate
parameters:
parameters:
- name: data
- name: data
in: body
in: body
...
@@ -5490,20 +5490,20 @@ paths:
...
@@ -5490,20 +5490,20 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/
Teachers
'
$ref: '#/definitions/
Revenue
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
Teachers
'
$ref: '#/definitions/
Revenue
'
deprecated: false
deprecated: false
put
:
put
:
tags
:
tags
:
-
Teachers
-
Revenue
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:
Teachers.replaceOrCreate__put_Teacher
s
operationId:
Revenue.replaceOrCreate__put_Revenue
s
parameters:
parameters:
- name: data
- name: data
in: body
in: body
...
@@ -5511,18 +5511,18 @@ paths:
...
@@ -5511,18 +5511,18 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/
Teachers
'
$ref: '#/definitions/
Revenue
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
Teachers
'
$ref: '#/definitions/
Revenue
'
deprecated: false
deprecated: false
get
:
get
:
tags
:
tags
:
-
Teachers
-
Revenue
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
:
Teachers
.find
operationId
:
Revenue
.find
parameters
:
parameters
:
-
name
:
filter
-
name
:
filter
in
:
query
in
:
query
...
@@ -5541,16 +5541,16 @@ paths:
...
@@ -5541,16 +5541,16 @@ paths:
schema
:
schema
:
type
:
array
type
:
array
items
:
items
:
$ref
:
'
#/definitions/
Teachers
'
$ref
:
'
#/definitions/
Revenue
'
deprecated
:
false
deprecated
:
false
/
Teacher
s/replaceOrCreate
:
/
Revenue
s/replaceOrCreate
:
post
:
post
:
tags
:
tags
:
-
Teachers
-
Revenue
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:
Teachers.replaceOrCreate__post_Teacher
s_replaceOrCreate
operationId:
Revenue.replaceOrCreate__post_Revenue
s_replaceOrCreate
parameters:
parameters:
- name: data
- name: data
in: body
in: body
...
@@ -5558,21 +5558,21 @@ paths:
...
@@ -5558,21 +5558,21 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/
Teachers
'
$ref: '#/definitions/
Revenue
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
Teachers
'
$ref: '#/definitions/
Revenue
'
deprecated: false
deprecated: false
/
Teacher
s/upsertWithWhere
:
/
Revenue
s/upsertWithWhere
:
post
:
post
:
tags
:
tags
:
-
Teachers
-
Revenue
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:
Teachers
.upsertWithWhere
operationId:
Revenue
.upsertWithWhere
parameters:
parameters:
- name: where
- name: where
in: query
in: query
...
@@ -5586,19 +5586,19 @@ paths:
...
@@ -5586,19 +5586,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/
Teachers
'
$ref: '#/definitions/
Revenue
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
Teachers
'
$ref: '#/definitions/
Revenue
'
deprecated: false
deprecated: false
'
/
Teacher
s/{id}/exists'
:
'
/
Revenue
s/{id}/exists'
:
get
:
get
:
tags
:
tags
:
-
Teachers
-
Revenue
summary
:
Check whether a model instance exists in the data source.
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
Teachers.exists__get_Teacher
s_{id}_exists'
operationId
:
'
Revenue.exists__get_Revenue
s_{id}_exists'
parameters
:
parameters
:
-
name
:
id
-
name
:
id
in
:
path
in
:
path
...
@@ -5615,12 +5615,12 @@ paths:
...
@@ -5615,12 +5615,12 @@ paths:
exists
:
exists
:
type
:
boolean
type
:
boolean
deprecated
:
false
deprecated
:
false
'
/
Teacher
s/{id}'
:
'
/
Revenue
s/{id}'
:
head
:
head
:
tags
:
tags
:
-
Teachers
-
Revenue
summary
:
Check whether a model instance exists in the data source.
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
Teachers.exists__head_Teacher
s_{id}'
operationId
:
'
Revenue.exists__head_Revenue
s_{id}'
parameters
:
parameters
:
-
name
:
id
-
name
:
id
in
:
path
in
:
path
...
@@ -5639,9 +5639,9 @@ paths:
...
@@ -5639,9 +5639,9 @@ paths:
deprecated
:
false
deprecated
:
false
get
:
get
:
tags
:
tags
:
-
Teachers
-
Revenue
summary
:
'
Find
a
model
instance
by
{{id}}
from
the
data
source.'
summary
:
'
Find
a
model
instance
by
{{id}}
from
the
data
source.'
operationId
:
Teachers
.findById
operationId
:
Revenue
.findById
parameters
:
parameters
:
-
name
:
id
-
name
:
id
in
:
path
in
:
path
...
@@ -5661,15 +5661,15 @@ paths:
...
@@ -5661,15 +5661,15 @@ paths:
'
200'
:
'
200'
:
description
:
Request was successful
description
:
Request was successful
schema
:
schema
:
$ref
:
'
#/definitions/
Teachers
'
$ref
:
'
#/definitions/
Revenue
'
deprecated
:
false
deprecated
:
false
put
:
put
:
tags
:
tags
:
-
Teachers
-
Revenue
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: '
Teachers.replaceById__put_Teacher
s_{id}'
operationId: '
Revenue.replaceById__put_Revenue
s_{id}'
parameters:
parameters:
- name: id
- name: id
in: path
in: path
...
@@ -5683,18 +5683,18 @@ paths:
...
@@ -5683,18 +5683,18 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/
Teachers
'
$ref: '#/definitions/
Revenue
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
Teachers
'
$ref: '#/definitions/
Revenue
'
deprecated: false
deprecated: false
delete
:
delete
:
tags
:
tags
:
-
Teachers
-
Revenue
summary
:
'
Delete
a
model
instance
by
{{id}}
from
the
data
source.'
summary
:
'
Delete
a
model
instance
by
{{id}}
from
the
data
source.'
operationId
:
Teachers
.deleteById
operationId
:
Revenue
.deleteById
parameters
:
parameters
:
-
name
:
id
-
name
:
id
in
:
path
in
:
path
...
@@ -5710,15 +5710,15 @@ paths:
...
@@ -5710,15 +5710,15 @@ paths:
deprecated
:
false
deprecated
:
false
patch
:
patch
:
tags
:
tags
:
-
Teachers
-
Revenue
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:
Teachers
.prototype.patchAttributes
operationId:
Revenue
.prototype.patchAttributes
parameters:
parameters:
- name: id
- name: id
in: path
in: path
description:
Teachers
id
description:
Revenue
id
required: true
required: true
type: string
type: string
format: JSON
format: JSON
...
@@ -5728,21 +5728,21 @@ paths:
...
@@ -5728,21 +5728,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/
Teachers
'
$ref: '#/definitions/
Revenue
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
Teachers
'
$ref: '#/definitions/
Revenue
'
deprecated: false
deprecated: false
'
/
Teacher
s/{id}/replace'
:
'
/
Revenue
s/{id}/replace'
:
post
:
post
:
tags
:
tags
:
-
Teachers
-
Revenue
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: '
Teachers.replaceById__post_Teacher
s_{id}_replace'
operationId: '
Revenue.replaceById__post_Revenue
s_{id}_replace'
parameters:
parameters:
- name: id
- name: id
in: path
in: path
...
@@ -5756,19 +5756,19 @@ paths:
...
@@ -5756,19 +5756,19 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/
Teachers
'
$ref: '#/definitions/
Revenue
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
Teachers
'
$ref: '#/definitions/
Revenue
'
deprecated: false
deprecated: false
/
Teacher
s/findOne
:
/
Revenue
s/findOne
:
get
:
get
:
tags
:
tags
:
-
Teachers
-
Revenue
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
:
Teachers
.findOne
operationId
:
Revenue
.findOne
parameters
:
parameters
:
-
name
:
filter
-
name
:
filter
in
:
query
in
:
query
...
@@ -5785,14 +5785,14 @@ paths:
...
@@ -5785,14 +5785,14 @@ paths:
'
200'
:
'
200'
:
description
:
Request was successful
description
:
Request was successful
schema
:
schema
:
$ref
:
'
#/definitions/
Teachers
'
$ref
:
'
#/definitions/
Revenue
'
deprecated
:
false
deprecated
:
false
/
Teacher
s/update
:
/
Revenue
s/update
:
post
:
post
:
tags
:
tags
:
-
Teachers
-
Revenue
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
:
Teachers
.updateAll
operationId
:
Revenue
.updateAll
parameters
:
parameters
:
-
name
:
where
-
name
:
where
in
:
query
in
:
query
...
@@ -5806,7 +5806,7 @@ paths:
...
@@ -5806,7 +5806,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/
Teachers
'
$ref
:
'
#/definitions/
Revenue
'
responses
:
responses
:
'
200'
:
'
200'
:
description
:
Request was successful
description
:
Request was successful
...
@@ -5819,12 +5819,12 @@ paths:
...
@@ -5819,12 +5819,12 @@ paths:
type
:
number
type
:
number
format
:
double
format
:
double
deprecated
:
false
deprecated
:
false
/
Teacher
s/count
:
/
Revenue
s/count
:
get
:
get
:
tags
:
tags
:
-
Teachers
-
Revenue
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
:
Teachers
.count
operationId
:
Revenue
.count
parameters
:
parameters
:
-
name
:
where
-
name
:
where
in
:
query
in
:
query
...
@@ -5842,12 +5842,12 @@ paths:
...
@@ -5842,12 +5842,12 @@ paths:
type
:
number
type
:
number
format
:
double
format
:
double
deprecated
:
false
deprecated
:
false
/
Revenue
s
:
/
Physical
s
:
post
:
post
:
tags
:
tags
:
-
Revenue
-
Physical
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
:
Physical
.create
parameters
:
parameters
:
-
name
:
data
-
name
:
data
in
:
body
in
:
body
...
@@ -5855,20 +5855,20 @@ paths:
...
@@ -5855,20 +5855,20 @@ paths:
required
:
false
required
:
false
schema
:
schema
:
description
:
Model instance data
description
:
Model instance data
$ref
:
'
#/definitions/
Revenue
'
$ref
:
'
#/definitions/
Physical
'
responses
:
responses
:
'
200'
:
'
200'
:
description
:
Request was successful
description
:
Request was successful
schema
:
schema
:
$ref
:
'
#/definitions/
Revenue
'
$ref
:
'
#/definitions/
Physical
'
deprecated
:
false
deprecated
:
false
patch
:
patch
:
tags
:
tags
:
-
Revenue
-
Physical
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:
Physical
.patchOrCreate
parameters:
parameters:
- name: data
- name: data
in: body
in: body
...
@@ -5876,20 +5876,20 @@ paths:
...
@@ -5876,20 +5876,20 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/
Revenue
'
$ref: '#/definitions/
Physical
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
Revenue
'
$ref: '#/definitions/
Physical
'
deprecated: false
deprecated: false
put
:
put
:
tags
:
tags
:
-
Revenue
-
Physical
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_Revenue
s
operationId:
Physical.replaceOrCreate__put_Physical
s
parameters:
parameters:
- name: data
- name: data
in: body
in: body
...
@@ -5897,18 +5897,18 @@ paths:
...
@@ -5897,18 +5897,18 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/
Revenue
'
$ref: '#/definitions/
Physical
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
Revenue
'
$ref: '#/definitions/
Physical
'
deprecated: false
deprecated: false
get
:
get
:
tags
:
tags
:
-
Revenue
-
Physical
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
:
Physical
.find
parameters
:
parameters
:
-
name
:
filter
-
name
:
filter
in
:
query
in
:
query
...
@@ -5927,16 +5927,16 @@ paths:
...
@@ -5927,16 +5927,16 @@ paths:
schema
:
schema
:
type
:
array
type
:
array
items
:
items
:
$ref
:
'
#/definitions/
Revenue
'
$ref
:
'
#/definitions/
Physical
'
deprecated
:
false
deprecated
:
false
/
Revenue
s/replaceOrCreate
:
/
Physical
s/replaceOrCreate
:
post
:
post
:
tags
:
tags
:
-
Revenue
-
Physical
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_Revenue
s_replaceOrCreate
operationId:
Physical.replaceOrCreate__post_Physical
s_replaceOrCreate
parameters:
parameters:
- name: data
- name: data
in: body
in: body
...
@@ -5944,21 +5944,21 @@ paths:
...
@@ -5944,21 +5944,21 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/
Revenue
'
$ref: '#/definitions/
Physical
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
Revenue
'
$ref: '#/definitions/
Physical
'
deprecated: false
deprecated: false
/
Revenue
s/upsertWithWhere
:
/
Physical
s/upsertWithWhere
:
post
:
post
:
tags
:
tags
:
-
Revenue
-
Physical
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:
Physical
.upsertWithWhere
parameters:
parameters:
- name: where
- name: where
in: query
in: query
...
@@ -5972,19 +5972,19 @@ paths:
...
@@ -5972,19 +5972,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/
Physical
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
Revenue
'
$ref: '#/definitions/
Physical
'
deprecated: false
deprecated: false
'
/
Revenue
s/{id}/exists'
:
'
/
Physical
s/{id}/exists'
:
get
:
get
:
tags
:
tags
:
-
Revenue
-
Physical
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_Revenue
s_{id}_exists'
operationId
:
'
Physical.exists__get_Physical
s_{id}_exists'
parameters
:
parameters
:
-
name
:
id
-
name
:
id
in
:
path
in
:
path
...
@@ -6001,12 +6001,12 @@ paths:
...
@@ -6001,12 +6001,12 @@ paths:
exists
:
exists
:
type
:
boolean
type
:
boolean
deprecated
:
false
deprecated
:
false
'
/
Revenue
s/{id}'
:
'
/
Physical
s/{id}'
:
head
:
head
:
tags
:
tags
:
-
Revenue
-
Physical
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_Revenue
s_{id}'
operationId
:
'
Physical.exists__head_Physical
s_{id}'
parameters
:
parameters
:
-
name
:
id
-
name
:
id
in
:
path
in
:
path
...
@@ -6025,9 +6025,9 @@ paths:
...
@@ -6025,9 +6025,9 @@ paths:
deprecated
:
false
deprecated
:
false
get
:
get
:
tags
:
tags
:
-
Revenue
-
Physical
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
:
Physical
.findById
parameters
:
parameters
:
-
name
:
id
-
name
:
id
in
:
path
in
:
path
...
@@ -6047,15 +6047,15 @@ paths:
...
@@ -6047,15 +6047,15 @@ paths:
'
200'
:
'
200'
:
description
:
Request was successful
description
:
Request was successful
schema
:
schema
:
$ref
:
'
#/definitions/
Revenue
'
$ref
:
'
#/definitions/
Physical
'
deprecated
:
false
deprecated
:
false
put
:
put
:
tags
:
tags
:
-
Revenue
-
Physical
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_Revenue
s_{id}'
operationId: '
Physical.replaceById__put_Physical
s_{id}'
parameters:
parameters:
- name: id
- name: id
in: path
in: path
...
@@ -6069,18 +6069,18 @@ paths:
...
@@ -6069,18 +6069,18 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/
Revenue
'
$ref: '#/definitions/
Physical
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
Revenue
'
$ref: '#/definitions/
Physical
'
deprecated: false
deprecated: false
delete
:
delete
:
tags
:
tags
:
-
Revenue
-
Physical
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
:
Physical
.deleteById
parameters
:
parameters
:
-
name
:
id
-
name
:
id
in
:
path
in
:
path
...
@@ -6096,15 +6096,15 @@ paths:
...
@@ -6096,15 +6096,15 @@ paths:
deprecated
:
false
deprecated
:
false
patch
:
patch
:
tags
:
tags
:
-
Revenue
-
Physical
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:
Physical
.prototype.patchAttributes
parameters:
parameters:
- name: id
- name: id
in: path
in: path
description:
Revenue
id
description:
Physical
id
required: true
required: true
type: string
type: string
format: JSON
format: JSON
...
@@ -6114,21 +6114,21 @@ paths:
...
@@ -6114,21 +6114,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/
Physical
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
Revenue
'
$ref: '#/definitions/
Physical
'
deprecated: false
deprecated: false
'
/
Revenue
s/{id}/replace'
:
'
/
Physical
s/{id}/replace'
:
post
:
post
:
tags
:
tags
:
-
Revenue
-
Physical
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_Revenue
s_{id}_replace'
operationId: '
Physical.replaceById__post_Physical
s_{id}_replace'
parameters:
parameters:
- name: id
- name: id
in: path
in: path
...
@@ -6142,19 +6142,19 @@ paths:
...
@@ -6142,19 +6142,19 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/
Revenue
'
$ref: '#/definitions/
Physical
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
Revenue
'
$ref: '#/definitions/
Physical
'
deprecated: false
deprecated: false
/
Revenue
s/findOne
:
/
Physical
s/findOne
:
get
:
get
:
tags
:
tags
:
-
Revenue
-
Physical
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
:
Physical
.findOne
parameters
:
parameters
:
-
name
:
filter
-
name
:
filter
in
:
query
in
:
query
...
@@ -6171,14 +6171,14 @@ paths:
...
@@ -6171,14 +6171,14 @@ paths:
'
200'
:
'
200'
:
description
:
Request was successful
description
:
Request was successful
schema
:
schema
:
$ref
:
'
#/definitions/
Revenue
'
$ref
:
'
#/definitions/
Physical
'
deprecated
:
false
deprecated
:
false
/
Revenue
s/update
:
/
Physical
s/update
:
post
:
post
:
tags
:
tags
:
-
Revenue
-
Physical
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
:
Physical
.updateAll
parameters
:
parameters
:
-
name
:
where
-
name
:
where
in
:
query
in
:
query
...
@@ -6192,7 +6192,7 @@ paths:
...
@@ -6192,7 +6192,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/
Physical
'
responses
:
responses
:
'
200'
:
'
200'
:
description
:
Request was successful
description
:
Request was successful
...
@@ -6205,12 +6205,12 @@ paths:
...
@@ -6205,12 +6205,12 @@ paths:
type
:
number
type
:
number
format
:
double
format
:
double
deprecated
:
false
deprecated
:
false
/
Revenue
s/count
:
/
Physical
s/count
:
get
:
get
:
tags
:
tags
:
-
Revenue
-
Physical
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
:
Physical
.count
parameters
:
parameters
:
-
name
:
where
-
name
:
where
in
:
query
in
:
query
...
@@ -6644,22 +6644,27 @@ definitions:
...
@@ -6644,22 +6644,27 @@ definitions:
-
name
-
name
-
value
-
value
additionalProperties
:
false
additionalProperties
:
false
Teachers
:
Revenue
:
properties
:
properties
:
id
:
id
:
maxLength
:
36
maxLength
:
36
type
:
string
type
:
string
name
:
maxLength
:
5
type
:
string
value
:
value
:
type
:
number
type
:
number
format
:
double
format
:
double
required
:
-
name
additionalProperties
:
false
additionalProperties
:
false
Revenue
:
Physical
:
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
...
...
server/model-config.json
View file @
86b6bd86
...
@@ -69,11 +69,11 @@
...
@@ -69,11 +69,11 @@
"dataSource"
:
"ruipeng"
,
"dataSource"
:
"ruipeng"
,
"public"
:
true
"public"
:
true
},
},
"
Teachers
"
:
{
"
Revenue
"
:
{
"dataSource"
:
"ruipeng"
,
"dataSource"
:
"ruipeng"
,
"public"
:
true
"public"
:
true
},
},
"
Revenue
"
:
{
"
Physical
"
:
{
"dataSource"
:
"ruipeng"
,
"dataSource"
:
"ruipeng"
,
"public"
:
true
"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