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
de026a5e
Commit
de026a5e
authored
Sep 07, 2019
by
黄卓然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
7cf7ba3d
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
1890 additions
and
0 deletions
+1890
-0
hos-lastyearbudget.js
common/models/hos-lastyearbudget.js
+5
-0
hos-lastyearbudget.json
common/models/hos-lastyearbudget.json
+63
-0
hos-lastyearregum.js
common/models/hos-lastyearregum.js
+5
-0
hos-lastyearregum.json
common/models/hos-lastyearregum.json
+63
-0
hos-thisyearbudget.js
common/models/hos-thisyearbudget.js
+5
-0
hos-thisyearbudget.json
common/models/hos-thisyearbudget.json
+63
-0
hos-thisyearregum.js
common/models/hos-thisyearregum.js
+5
-0
hos-thisyearregum.json
common/models/hos-thisyearregum.json
+63
-0
RuiPengLoopbackApi.yaml
definitions/RuiPengLoopbackApi.yaml
+1602
-0
model-config.json
server/model-config.json
+16
-0
No files found.
common/models/hos-lastyearbudget.js
0 → 100644
View file @
de026a5e
'use strict'
;
module
.
exports
=
function
(
Hoslastyearbudget
)
{
};
common/models/hos-lastyearbudget.json
0 → 100644
View file @
de026a5e
{
"name"
:
"HosLastyearbudget"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
"validateUpsert"
:
true
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"hos_lastyearbudget"
},
"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"
:
6
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"name"
,
"dataType"
:
"varchar"
,
"dataLength"
:
6
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"N"
}
},
"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"
:
{}
}
common/models/hos-lastyearregum.js
0 → 100644
View file @
de026a5e
'use strict'
;
module
.
exports
=
function
(
Hoslastyearregum
)
{
};
common/models/hos-lastyearregum.json
0 → 100644
View file @
de026a5e
{
"name"
:
"HosLastyearregum"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
"validateUpsert"
:
true
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"hos_lastyearregum"
},
"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"
:
7
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"name"
,
"dataType"
:
"varchar"
,
"dataLength"
:
7
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"N"
}
},
"value"
:
{
"type"
:
"Number"
,
"required"
:
false
,
"length"
:
null
,
"precision"
:
32
,
"scale"
:
0
,
"mysql"
:
{
"columnName"
:
"value"
,
"dataType"
:
"decimal"
,
"dataLength"
:
null
,
"dataPrecision"
:
32
,
"dataScale"
:
0
,
"nullable"
:
"Y"
}
}
},
"validations"
:
[],
"relations"
:
{},
"acls"
:
[],
"methods"
:
{}
}
common/models/hos-thisyearbudget.js
0 → 100644
View file @
de026a5e
'use strict'
;
module
.
exports
=
function
(
Hosthisyearbudget
)
{
};
common/models/hos-thisyearbudget.json
0 → 100644
View file @
de026a5e
{
"name"
:
"HosThisyearbudget"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
"validateUpsert"
:
true
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"hos_thisyearbudget"
},
"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"
:
6
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"name"
,
"dataType"
:
"varchar"
,
"dataLength"
:
6
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"N"
}
},
"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"
:
{}
}
common/models/hos-thisyearregum.js
0 → 100644
View file @
de026a5e
'use strict'
;
module
.
exports
=
function
(
Hosthisyearregum
)
{
};
common/models/hos-thisyearregum.json
0 → 100644
View file @
de026a5e
{
"name"
:
"HosThisyearregum"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
"validateUpsert"
:
true
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"hos_thisyearregum"
},
"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"
:
7
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"name"
,
"dataType"
:
"varchar"
,
"dataLength"
:
7
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"N"
}
},
"value"
:
{
"type"
:
"Number"
,
"required"
:
false
,
"length"
:
null
,
"precision"
:
32
,
"scale"
:
0
,
"mysql"
:
{
"columnName"
:
"value"
,
"dataType"
:
"decimal"
,
"dataLength"
:
null
,
"dataPrecision"
:
32
,
"dataScale"
:
0
,
"nullable"
:
"Y"
}
}
},
"validations"
:
[],
"relations"
:
{},
"acls"
:
[],
"methods"
:
{}
}
definitions/RuiPengLoopbackApi.yaml
View file @
de026a5e
...
...
@@ -28245,6 +28245,1552 @@ paths:
type
:
number
format
:
double
deprecated
:
false
/HosLastyearbudgets
:
post
:
tags
:
-
HosLastyearbudget
summary
:
Create a new instance of the model and persist it into the data source.
operationId
:
HosLastyearbudget.create
parameters
:
-
name
:
data
in
:
body
description
:
Model instance data
required
:
false
schema
:
description
:
Model instance data
$ref
:
'
#/definitions/HosLastyearbudget'
responses
:
'
200'
:
description
:
Request was successful
schema
:
$ref
:
'
#/definitions/HosLastyearbudget'
deprecated
:
false
patch
:
tags
:
-
HosLastyearbudget
summary
:
>-
Patch an existing model instance or insert a new one into the data
source.
operationId: HosLastyearbudget.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosLastyearbudget'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosLastyearbudget'
deprecated: false
put
:
tags
:
-
HosLastyearbudget
summary
:
>-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosLastyearbudget.replaceOrCreate__put_HosLastyearbudgets
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosLastyearbudget'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosLastyearbudget'
deprecated: false
get
:
tags
:
-
HosLastyearbudget
summary
:
Find all instances of the model matched by filter from the data source.
operationId
:
HosLastyearbudget.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/HosLastyearbudget'
deprecated
:
false
/HosLastyearbudgets/replaceOrCreate
:
post
:
tags
:
-
HosLastyearbudget
summary
:
>-
Replace an existing model instance or insert a new one into the data
source.
operationId: >-
HosLastyearbudget.replaceOrCreate__post_HosLastyearbudgets_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosLastyearbudget'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosLastyearbudget'
deprecated: false
/HosLastyearbudgets/upsertWithWhere
:
post
:
tags
:
-
HosLastyearbudget
summary
:
>-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: HosLastyearbudget.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/HosLastyearbudget'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosLastyearbudget'
deprecated: false
'
/HosLastyearbudgets/{id}/exists'
:
get
:
tags
:
-
HosLastyearbudget
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
HosLastyearbudget.exists__get_HosLastyearbudgets_{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
'
/HosLastyearbudgets/{id}'
:
head
:
tags
:
-
HosLastyearbudget
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
HosLastyearbudget.exists__head_HosLastyearbudgets_{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
:
-
HosLastyearbudget
summary
:
'
Find
a
model
instance
by
{{id}}
from
the
data
source.'
operationId
:
HosLastyearbudget.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/HosLastyearbudget'
deprecated
:
false
put
:
tags
:
-
HosLastyearbudget
summary
:
>-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosLastyearbudget.replaceById__put_HosLastyearbudgets_{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/HosLastyearbudget'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosLastyearbudget'
deprecated: false
delete
:
tags
:
-
HosLastyearbudget
summary
:
'
Delete
a
model
instance
by
{{id}}
from
the
data
source.'
operationId
:
HosLastyearbudget.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
:
-
HosLastyearbudget
summary
:
>-
Patch attributes for a model instance and persist it into the data
source.
operationId: HosLastyearbudget.prototype.patchAttributes
parameters:
- name: id
in: path
description: HosLastyearbudget 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/HosLastyearbudget'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosLastyearbudget'
deprecated: false
'
/HosLastyearbudgets/{id}/replace'
:
post
:
tags
:
-
HosLastyearbudget
summary
:
>-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosLastyearbudget.replaceById__post_HosLastyearbudgets_{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/HosLastyearbudget'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosLastyearbudget'
deprecated: false
/HosLastyearbudgets/findOne
:
get
:
tags
:
-
HosLastyearbudget
summary
:
Find first instance of the model matched by filter from the data source.
operationId
:
HosLastyearbudget.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/HosLastyearbudget'
deprecated
:
false
/HosLastyearbudgets/update
:
post
:
tags
:
-
HosLastyearbudget
summary
:
'
Update
instances
of
the
model
matched
by
{{where}}
from
the
data
source.'
operationId
:
HosLastyearbudget.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/HosLastyearbudget'
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
/HosLastyearbudgets/count
:
get
:
tags
:
-
HosLastyearbudget
summary
:
Count instances of the model matched by where from the data source.
operationId
:
HosLastyearbudget.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
/HosLastyearregums
:
post
:
tags
:
-
HosLastyearregum
summary
:
Create a new instance of the model and persist it into the data source.
operationId
:
HosLastyearregum.create
parameters
:
-
name
:
data
in
:
body
description
:
Model instance data
required
:
false
schema
:
description
:
Model instance data
$ref
:
'
#/definitions/HosLastyearregum'
responses
:
'
200'
:
description
:
Request was successful
schema
:
$ref
:
'
#/definitions/HosLastyearregum'
deprecated
:
false
patch
:
tags
:
-
HosLastyearregum
summary
:
>-
Patch an existing model instance or insert a new one into the data
source.
operationId: HosLastyearregum.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosLastyearregum'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosLastyearregum'
deprecated: false
put
:
tags
:
-
HosLastyearregum
summary
:
>-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosLastyearregum.replaceOrCreate__put_HosLastyearregums
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosLastyearregum'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosLastyearregum'
deprecated: false
get
:
tags
:
-
HosLastyearregum
summary
:
Find all instances of the model matched by filter from the data source.
operationId
:
HosLastyearregum.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/HosLastyearregum'
deprecated
:
false
/HosLastyearregums/replaceOrCreate
:
post
:
tags
:
-
HosLastyearregum
summary
:
>-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosLastyearregum.replaceOrCreate__post_HosLastyearregums_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosLastyearregum'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosLastyearregum'
deprecated: false
/HosLastyearregums/upsertWithWhere
:
post
:
tags
:
-
HosLastyearregum
summary
:
>-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: HosLastyearregum.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/HosLastyearregum'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosLastyearregum'
deprecated: false
'
/HosLastyearregums/{id}/exists'
:
get
:
tags
:
-
HosLastyearregum
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
HosLastyearregum.exists__get_HosLastyearregums_{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
'
/HosLastyearregums/{id}'
:
head
:
tags
:
-
HosLastyearregum
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
HosLastyearregum.exists__head_HosLastyearregums_{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
:
-
HosLastyearregum
summary
:
'
Find
a
model
instance
by
{{id}}
from
the
data
source.'
operationId
:
HosLastyearregum.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/HosLastyearregum'
deprecated
:
false
put
:
tags
:
-
HosLastyearregum
summary
:
>-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosLastyearregum.replaceById__put_HosLastyearregums_{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/HosLastyearregum'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosLastyearregum'
deprecated: false
delete
:
tags
:
-
HosLastyearregum
summary
:
'
Delete
a
model
instance
by
{{id}}
from
the
data
source.'
operationId
:
HosLastyearregum.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
:
-
HosLastyearregum
summary
:
>-
Patch attributes for a model instance and persist it into the data
source.
operationId: HosLastyearregum.prototype.patchAttributes
parameters:
- name: id
in: path
description: HosLastyearregum 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/HosLastyearregum'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosLastyearregum'
deprecated: false
'
/HosLastyearregums/{id}/replace'
:
post
:
tags
:
-
HosLastyearregum
summary
:
>-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosLastyearregum.replaceById__post_HosLastyearregums_{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/HosLastyearregum'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosLastyearregum'
deprecated: false
/HosLastyearregums/findOne
:
get
:
tags
:
-
HosLastyearregum
summary
:
Find first instance of the model matched by filter from the data source.
operationId
:
HosLastyearregum.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/HosLastyearregum'
deprecated
:
false
/HosLastyearregums/update
:
post
:
tags
:
-
HosLastyearregum
summary
:
'
Update
instances
of
the
model
matched
by
{{where}}
from
the
data
source.'
operationId
:
HosLastyearregum.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/HosLastyearregum'
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
/HosLastyearregums/count
:
get
:
tags
:
-
HosLastyearregum
summary
:
Count instances of the model matched by where from the data source.
operationId
:
HosLastyearregum.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
/HosThisyearregums
:
post
:
tags
:
-
HosThisyearregum
summary
:
Create a new instance of the model and persist it into the data source.
operationId
:
HosThisyearregum.create
parameters
:
-
name
:
data
in
:
body
description
:
Model instance data
required
:
false
schema
:
description
:
Model instance data
$ref
:
'
#/definitions/HosThisyearregum'
responses
:
'
200'
:
description
:
Request was successful
schema
:
$ref
:
'
#/definitions/HosThisyearregum'
deprecated
:
false
patch
:
tags
:
-
HosThisyearregum
summary
:
>-
Patch an existing model instance or insert a new one into the data
source.
operationId: HosThisyearregum.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosThisyearregum'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearregum'
deprecated: false
put
:
tags
:
-
HosThisyearregum
summary
:
>-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosThisyearregum.replaceOrCreate__put_HosThisyearregums
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosThisyearregum'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearregum'
deprecated: false
get
:
tags
:
-
HosThisyearregum
summary
:
Find all instances of the model matched by filter from the data source.
operationId
:
HosThisyearregum.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/HosThisyearregum'
deprecated
:
false
/HosThisyearregums/replaceOrCreate
:
post
:
tags
:
-
HosThisyearregum
summary
:
>-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosThisyearregum.replaceOrCreate__post_HosThisyearregums_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosThisyearregum'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearregum'
deprecated: false
/HosThisyearregums/upsertWithWhere
:
post
:
tags
:
-
HosThisyearregum
summary
:
>-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: HosThisyearregum.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/HosThisyearregum'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearregum'
deprecated: false
'
/HosThisyearregums/{id}/exists'
:
get
:
tags
:
-
HosThisyearregum
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
HosThisyearregum.exists__get_HosThisyearregums_{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
'
/HosThisyearregums/{id}'
:
head
:
tags
:
-
HosThisyearregum
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
HosThisyearregum.exists__head_HosThisyearregums_{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
:
-
HosThisyearregum
summary
:
'
Find
a
model
instance
by
{{id}}
from
the
data
source.'
operationId
:
HosThisyearregum.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/HosThisyearregum'
deprecated
:
false
put
:
tags
:
-
HosThisyearregum
summary
:
>-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosThisyearregum.replaceById__put_HosThisyearregums_{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/HosThisyearregum'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearregum'
deprecated: false
delete
:
tags
:
-
HosThisyearregum
summary
:
'
Delete
a
model
instance
by
{{id}}
from
the
data
source.'
operationId
:
HosThisyearregum.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
:
-
HosThisyearregum
summary
:
>-
Patch attributes for a model instance and persist it into the data
source.
operationId: HosThisyearregum.prototype.patchAttributes
parameters:
- name: id
in: path
description: HosThisyearregum 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/HosThisyearregum'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearregum'
deprecated: false
'
/HosThisyearregums/{id}/replace'
:
post
:
tags
:
-
HosThisyearregum
summary
:
>-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosThisyearregum.replaceById__post_HosThisyearregums_{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/HosThisyearregum'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearregum'
deprecated: false
/HosThisyearregums/findOne
:
get
:
tags
:
-
HosThisyearregum
summary
:
Find first instance of the model matched by filter from the data source.
operationId
:
HosThisyearregum.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/HosThisyearregum'
deprecated
:
false
/HosThisyearregums/update
:
post
:
tags
:
-
HosThisyearregum
summary
:
'
Update
instances
of
the
model
matched
by
{{where}}
from
the
data
source.'
operationId
:
HosThisyearregum.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/HosThisyearregum'
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
/HosThisyearregums/count
:
get
:
tags
:
-
HosThisyearregum
summary
:
Count instances of the model matched by where from the data source.
operationId
:
HosThisyearregum.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
/HosThisyearbudgets
:
post
:
tags
:
-
HosThisyearbudget
summary
:
Create a new instance of the model and persist it into the data source.
operationId
:
HosThisyearbudget.create
parameters
:
-
name
:
data
in
:
body
description
:
Model instance data
required
:
false
schema
:
description
:
Model instance data
$ref
:
'
#/definitions/HosThisyearbudget'
responses
:
'
200'
:
description
:
Request was successful
schema
:
$ref
:
'
#/definitions/HosThisyearbudget'
deprecated
:
false
patch
:
tags
:
-
HosThisyearbudget
summary
:
>-
Patch an existing model instance or insert a new one into the data
source.
operationId: HosThisyearbudget.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosThisyearbudget'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearbudget'
deprecated: false
put
:
tags
:
-
HosThisyearbudget
summary
:
>-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosThisyearbudget.replaceOrCreate__put_HosThisyearbudgets
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosThisyearbudget'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearbudget'
deprecated: false
get
:
tags
:
-
HosThisyearbudget
summary
:
Find all instances of the model matched by filter from the data source.
operationId
:
HosThisyearbudget.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/HosThisyearbudget'
deprecated
:
false
/HosThisyearbudgets/replaceOrCreate
:
post
:
tags
:
-
HosThisyearbudget
summary
:
>-
Replace an existing model instance or insert a new one into the data
source.
operationId: >-
HosThisyearbudget.replaceOrCreate__post_HosThisyearbudgets_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosThisyearbudget'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearbudget'
deprecated: false
/HosThisyearbudgets/upsertWithWhere
:
post
:
tags
:
-
HosThisyearbudget
summary
:
>-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: HosThisyearbudget.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/HosThisyearbudget'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearbudget'
deprecated: false
'
/HosThisyearbudgets/{id}/exists'
:
get
:
tags
:
-
HosThisyearbudget
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
HosThisyearbudget.exists__get_HosThisyearbudgets_{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
'
/HosThisyearbudgets/{id}'
:
head
:
tags
:
-
HosThisyearbudget
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
HosThisyearbudget.exists__head_HosThisyearbudgets_{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
:
-
HosThisyearbudget
summary
:
'
Find
a
model
instance
by
{{id}}
from
the
data
source.'
operationId
:
HosThisyearbudget.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/HosThisyearbudget'
deprecated
:
false
put
:
tags
:
-
HosThisyearbudget
summary
:
>-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosThisyearbudget.replaceById__put_HosThisyearbudgets_{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/HosThisyearbudget'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearbudget'
deprecated: false
delete
:
tags
:
-
HosThisyearbudget
summary
:
'
Delete
a
model
instance
by
{{id}}
from
the
data
source.'
operationId
:
HosThisyearbudget.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
:
-
HosThisyearbudget
summary
:
>-
Patch attributes for a model instance and persist it into the data
source.
operationId: HosThisyearbudget.prototype.patchAttributes
parameters:
- name: id
in: path
description: HosThisyearbudget 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/HosThisyearbudget'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearbudget'
deprecated: false
'
/HosThisyearbudgets/{id}/replace'
:
post
:
tags
:
-
HosThisyearbudget
summary
:
>-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosThisyearbudget.replaceById__post_HosThisyearbudgets_{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/HosThisyearbudget'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearbudget'
deprecated: false
/HosThisyearbudgets/findOne
:
get
:
tags
:
-
HosThisyearbudget
summary
:
Find first instance of the model matched by filter from the data source.
operationId
:
HosThisyearbudget.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/HosThisyearbudget'
deprecated
:
false
/HosThisyearbudgets/update
:
post
:
tags
:
-
HosThisyearbudget
summary
:
'
Update
instances
of
the
model
matched
by
{{where}}
from
the
data
source.'
operationId
:
HosThisyearbudget.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/HosThisyearbudget'
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
/HosThisyearbudgets/count
:
get
:
tags
:
-
HosThisyearbudget
summary
:
Count instances of the model matched by where from the data source.
operationId
:
HosThisyearbudget.count
parameters
:
-
name
:
where
in
:
query
description
:
Criteria to match model instances
required
:
false
type
:
string
format
:
JSON
responses
:
'
200'
:
description
:
Request was successful
schema
:
type
:
object
properties
:
count
:
type
:
number
format
:
double
deprecated
:
false
definitions
:
DashboardHospitalAwenCount
:
properties
:
...
...
@@ -29449,6 +30995,62 @@ definitions:
type
:
number
format
:
double
additionalProperties
:
false
HosLastyearbudget
:
properties
:
id
:
maxLength
:
36
type
:
string
name
:
maxLength
:
6
type
:
string
value
:
type
:
number
format
:
double
required
:
-
name
additionalProperties
:
false
HosLastyearregum
:
properties
:
id
:
maxLength
:
36
type
:
string
name
:
maxLength
:
7
type
:
string
value
:
type
:
number
format
:
double
required
:
-
name
additionalProperties
:
false
HosThisyearregum
:
properties
:
id
:
maxLength
:
36
type
:
string
name
:
maxLength
:
7
type
:
string
value
:
type
:
number
format
:
double
required
:
-
name
additionalProperties
:
false
HosThisyearbudget
:
properties
:
id
:
maxLength
:
36
type
:
string
name
:
maxLength
:
6
type
:
string
value
:
type
:
number
format
:
double
required
:
-
name
additionalProperties
:
false
basePath
:
/api/ruipeng
swagger
:
'
2.0'
info
:
...
...
server/model-config.json
View file @
de026a5e
...
...
@@ -304,5 +304,21 @@
"MainRevenuehigh"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
},
"HosLastyearbudget"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
},
"HosLastyearregum"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
},
"HosThisyearregum"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
},
"HosThisyearbudget"
:
{
"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