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
7cf7ba3d
Commit
7cf7ba3d
authored
Sep 07, 2019
by
余海军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
794585ae
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
940 additions
and
0 deletions
+940
-0
main-revenuehigh.js
common/models/main-revenuehigh.js
+5
-0
main-revenuehigh.json
common/models/main-revenuehigh.json
+63
-0
map-hos.js
common/models/map-hos.js
+5
-0
map-hos.json
common/models/map-hos.json
+63
-0
RuiPengLoopbackApi.yaml
definitions/RuiPengLoopbackApi.yaml
+796
-0
model-config.json
server/model-config.json
+8
-0
No files found.
common/models/main-revenuehigh.js
0 → 100644
View file @
7cf7ba3d
'use strict'
;
module
.
exports
=
function
(
Mainrevenuehigh
)
{
};
common/models/main-revenuehigh.json
0 → 100644
View file @
7cf7ba3d
{
"name"
:
"MainRevenuehigh"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
"validateUpsert"
:
true
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"main_revenuehigh"
},
"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"
:
false
,
"length"
:
100
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"NAME"
,
"dataType"
:
"varchar"
,
"dataLength"
:
100
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
},
"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/map-hos.js
0 → 100644
View file @
7cf7ba3d
'use strict'
;
module
.
exports
=
function
(
Maphos
)
{
};
common/models/map-hos.json
0 → 100644
View file @
7cf7ba3d
{
"name"
:
"MapHos"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
"validateUpsert"
:
true
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"map_hos"
},
"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"
:
false
,
"length"
:
100
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"name"
,
"dataType"
:
"varchar"
,
"dataLength"
:
100
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
},
"value"
:
{
"type"
:
"String"
,
"required"
:
false
,
"length"
:
50
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"value"
,
"dataType"
:
"varchar"
,
"dataLength"
:
50
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
}
},
"validations"
:
[],
"relations"
:
{},
"acls"
:
[],
"methods"
:
{}
}
definitions/RuiPengLoopbackApi.yaml
View file @
7cf7ba3d
...
@@ -27473,6 +27473,778 @@ paths:
...
@@ -27473,6 +27473,778 @@ paths:
type
:
number
type
:
number
format
:
double
format
:
double
deprecated
:
false
deprecated
:
false
/MapHos
:
post
:
tags
:
-
MapHos
summary
:
Create a new instance of the model and persist it into the data source.
operationId
:
MapHos.create
parameters
:
-
name
:
data
in
:
body
description
:
Model instance data
required
:
false
schema
:
description
:
Model instance data
$ref
:
'
#/definitions/MapHos'
responses
:
'
200'
:
description
:
Request was successful
schema
:
$ref
:
'
#/definitions/MapHos'
deprecated
:
false
patch
:
tags
:
-
MapHos
summary
:
>-
Patch an existing model instance or insert a new one into the data
source.
operationId: MapHos.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MapHos'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapHos'
deprecated: false
put
:
tags
:
-
MapHos
summary
:
>-
Replace an existing model instance or insert a new one into the data
source.
operationId: MapHos.replaceOrCreate__put_MapHos
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MapHos'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapHos'
deprecated: false
get
:
tags
:
-
MapHos
summary
:
Find all instances of the model matched by filter from the data source.
operationId
:
MapHos.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/MapHos'
deprecated
:
false
/MapHos/replaceOrCreate
:
post
:
tags
:
-
MapHos
summary
:
>-
Replace an existing model instance or insert a new one into the data
source.
operationId: MapHos.replaceOrCreate__post_MapHos_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MapHos'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapHos'
deprecated: false
/MapHos/upsertWithWhere
:
post
:
tags
:
-
MapHos
summary
:
>-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: MapHos.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/MapHos'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapHos'
deprecated: false
'
/MapHos/{id}/exists'
:
get
:
tags
:
-
MapHos
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
MapHos.exists__get_MapHos_{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
'
/MapHos/{id}'
:
head
:
tags
:
-
MapHos
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
MapHos.exists__head_MapHos_{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
:
-
MapHos
summary
:
'
Find
a
model
instance
by
{{id}}
from
the
data
source.'
operationId
:
MapHos.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/MapHos'
deprecated
:
false
put
:
tags
:
-
MapHos
summary
:
>-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MapHos.replaceById__put_MapHos_{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/MapHos'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapHos'
deprecated: false
delete
:
tags
:
-
MapHos
summary
:
'
Delete
a
model
instance
by
{{id}}
from
the
data
source.'
operationId
:
MapHos.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
:
-
MapHos
summary
:
>-
Patch attributes for a model instance and persist it into the data
source.
operationId: MapHos.prototype.patchAttributes
parameters:
- name: id
in: path
description: MapHos 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/MapHos'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapHos'
deprecated: false
'
/MapHos/{id}/replace'
:
post
:
tags
:
-
MapHos
summary
:
>-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MapHos.replaceById__post_MapHos_{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/MapHos'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapHos'
deprecated: false
/MapHos/findOne
:
get
:
tags
:
-
MapHos
summary
:
Find first instance of the model matched by filter from the data source.
operationId
:
MapHos.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/MapHos'
deprecated
:
false
/MapHos/update
:
post
:
tags
:
-
MapHos
summary
:
'
Update
instances
of
the
model
matched
by
{{where}}
from
the
data
source.'
operationId
:
MapHos.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/MapHos'
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
/MapHos/count
:
get
:
tags
:
-
MapHos
summary
:
Count instances of the model matched by where from the data source.
operationId
:
MapHos.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
/MainRevenuehighs
:
post
:
tags
:
-
MainRevenuehigh
summary
:
Create a new instance of the model and persist it into the data source.
operationId
:
MainRevenuehigh.create
parameters
:
-
name
:
data
in
:
body
description
:
Model instance data
required
:
false
schema
:
description
:
Model instance data
$ref
:
'
#/definitions/MainRevenuehigh'
responses
:
'
200'
:
description
:
Request was successful
schema
:
$ref
:
'
#/definitions/MainRevenuehigh'
deprecated
:
false
patch
:
tags
:
-
MainRevenuehigh
summary
:
>-
Patch an existing model instance or insert a new one into the data
source.
operationId: MainRevenuehigh.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainRevenuehigh'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainRevenuehigh'
deprecated: false
put
:
tags
:
-
MainRevenuehigh
summary
:
>-
Replace an existing model instance or insert a new one into the data
source.
operationId: MainRevenuehigh.replaceOrCreate__put_MainRevenuehighs
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainRevenuehigh'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainRevenuehigh'
deprecated: false
get
:
tags
:
-
MainRevenuehigh
summary
:
Find all instances of the model matched by filter from the data source.
operationId
:
MainRevenuehigh.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/MainRevenuehigh'
deprecated
:
false
/MainRevenuehighs/replaceOrCreate
:
post
:
tags
:
-
MainRevenuehigh
summary
:
>-
Replace an existing model instance or insert a new one into the data
source.
operationId: MainRevenuehigh.replaceOrCreate__post_MainRevenuehighs_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainRevenuehigh'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainRevenuehigh'
deprecated: false
/MainRevenuehighs/upsertWithWhere
:
post
:
tags
:
-
MainRevenuehigh
summary
:
>-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: MainRevenuehigh.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/MainRevenuehigh'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainRevenuehigh'
deprecated: false
'
/MainRevenuehighs/{id}/exists'
:
get
:
tags
:
-
MainRevenuehigh
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
MainRevenuehigh.exists__get_MainRevenuehighs_{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
'
/MainRevenuehighs/{id}'
:
head
:
tags
:
-
MainRevenuehigh
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
MainRevenuehigh.exists__head_MainRevenuehighs_{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
:
-
MainRevenuehigh
summary
:
'
Find
a
model
instance
by
{{id}}
from
the
data
source.'
operationId
:
MainRevenuehigh.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/MainRevenuehigh'
deprecated
:
false
put
:
tags
:
-
MainRevenuehigh
summary
:
>-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MainRevenuehigh.replaceById__put_MainRevenuehighs_{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/MainRevenuehigh'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainRevenuehigh'
deprecated: false
delete
:
tags
:
-
MainRevenuehigh
summary
:
'
Delete
a
model
instance
by
{{id}}
from
the
data
source.'
operationId
:
MainRevenuehigh.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
:
-
MainRevenuehigh
summary
:
>-
Patch attributes for a model instance and persist it into the data
source.
operationId: MainRevenuehigh.prototype.patchAttributes
parameters:
- name: id
in: path
description: MainRevenuehigh 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/MainRevenuehigh'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainRevenuehigh'
deprecated: false
'
/MainRevenuehighs/{id}/replace'
:
post
:
tags
:
-
MainRevenuehigh
summary
:
>-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MainRevenuehigh.replaceById__post_MainRevenuehighs_{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/MainRevenuehigh'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainRevenuehigh'
deprecated: false
/MainRevenuehighs/findOne
:
get
:
tags
:
-
MainRevenuehigh
summary
:
Find first instance of the model matched by filter from the data source.
operationId
:
MainRevenuehigh.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/MainRevenuehigh'
deprecated
:
false
/MainRevenuehighs/update
:
post
:
tags
:
-
MainRevenuehigh
summary
:
'
Update
instances
of
the
model
matched
by
{{where}}
from
the
data
source.'
operationId
:
MainRevenuehigh.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/MainRevenuehigh'
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
/MainRevenuehighs/count
:
get
:
tags
:
-
MainRevenuehigh
summary
:
Count instances of the model matched by where from the data source.
operationId
:
MainRevenuehigh.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
:
definitions
:
DashboardHospitalAwenCount
:
DashboardHospitalAwenCount
:
properties
:
properties
:
...
@@ -28653,6 +29425,30 @@ definitions:
...
@@ -28653,6 +29425,30 @@ definitions:
-
name
-
name
-
value
-
value
additionalProperties
:
false
additionalProperties
:
false
MapHos
:
properties
:
id
:
maxLength
:
36
type
:
string
name
:
maxLength
:
100
type
:
string
value
:
maxLength
:
50
type
:
string
additionalProperties
:
false
MainRevenuehigh
:
properties
:
id
:
maxLength
:
36
type
:
string
name
:
maxLength
:
100
type
:
string
value
:
type
:
number
format
:
double
additionalProperties
:
false
basePath
:
/api/ruipeng
basePath
:
/api/ruipeng
swagger
:
'
2.0'
swagger
:
'
2.0'
info
:
info
:
...
...
server/model-config.json
View file @
7cf7ba3d
...
@@ -296,5 +296,13 @@
...
@@ -296,5 +296,13 @@
"BillOrdertoday"
:
{
"BillOrdertoday"
:
{
"dataSource"
:
"ruipeng"
,
"dataSource"
:
"ruipeng"
,
"public"
:
true
"public"
:
true
},
"MapHos"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
},
"MainRevenuehigh"
:
{
"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