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
2d65a436
Commit
2d65a436
authored
5 years ago
by
余海军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
7361bd88
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
608 additions
and
82 deletions
+608
-82
main-billbrand.js
common/models/main-billbrand.js
+5
-0
main-billbrand.json
common/models/main-billbrand.json
+63
-0
RuiPengLoopbackApi.yaml
definitions/RuiPengLoopbackApi.yaml
+536
-82
model-config.json
server/model-config.json
+4
-0
No files found.
common/models/main-billbrand.js
0 → 100644
View file @
2d65a436
'use strict'
;
module
.
exports
=
function
(
Mainbillbrand
)
{
};
This diff is collapsed.
Click to expand it.
common/models/main-billbrand.json
0 → 100644
View file @
2d65a436
{
"name"
:
"MainBillbrand"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
"validateUpsert"
:
true
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"main_billbrand"
},
"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"
:
200
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"name"
,
"dataType"
:
"varchar"
,
"dataLength"
:
200
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
},
"value"
:
{
"type"
:
"Number"
,
"required"
:
true
,
"length"
:
null
,
"precision"
:
19
,
"scale"
:
0
,
"mysql"
:
{
"columnName"
:
"value"
,
"dataType"
:
"bigint"
,
"dataLength"
:
null
,
"dataPrecision"
:
19
,
"dataScale"
:
0
,
"nullable"
:
"N"
}
}
},
"validations"
:
[],
"relations"
:
{},
"acls"
:
[],
"methods"
:
{}
}
This diff is collapsed.
Click to expand it.
definitions/RuiPengLoopbackApi.yaml
View file @
2d65a436
swagger
:
'
2.0'
info
:
x-ibm-name
:
ruipengloopbackapi
version
:
1.0.0
title
:
RuiPengLoopbackApi
schemes
:
-
https
host
:
$(catalog.host)
basePath
:
/api
consumes
:
-
application/json
produces
:
-
application/json
securityDefinitions
:
clientIdHeader
:
type
:
apiKey
in
:
header
name
:
X-IBM-Client-Id
clientSecretHeader
:
in
:
"
header"
name
:
"
X-IBM-Client-Secret"
type
:
"
apiKey"
security
:
-
clientIdHeader
:
[]
clientSecretHeader
:
[]
x-ibm-configuration
:
testable
:
true
enforced
:
true
cors
:
enabled
:
true
catalogs
:
apic-dev
:
properties
:
runtime-url
:
$(TARGET_URL)
sb
:
properties
:
runtime-url
:
'
http://localhost:4001'
assembly
:
execute
:
-
invoke
:
target-url
:
$(runtime-url)$(request.path)$(request.search)
paths
:
paths
:
/DashboardHospitalAwenCounts
:
/DashboardHospitalAwenCounts
:
post
:
post
:
...
@@ -32106,6 +32156,394 @@ paths:
...
@@ -32106,6 +32156,394 @@ paths:
type
:
number
type
:
number
format
:
double
format
:
double
deprecated
:
false
deprecated
:
false
/MainBillbrands
:
post
:
tags
:
-
MainBillbrand
summary
:
Create a new instance of the model and persist it into the data source.
operationId
:
MainBillbrand.create
parameters
:
-
name
:
data
in
:
body
description
:
Model instance data
required
:
false
schema
:
description
:
Model instance data
$ref
:
'
#/definitions/MainBillbrand'
responses
:
'
200'
:
description
:
Request was successful
schema
:
$ref
:
'
#/definitions/MainBillbrand'
deprecated
:
false
patch
:
tags
:
-
MainBillbrand
summary
:
>-
Patch an existing model instance or insert a new one into the data
source.
operationId: MainBillbrand.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainBillbrand'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainBillbrand'
deprecated: false
put
:
tags
:
-
MainBillbrand
summary
:
>-
Replace an existing model instance or insert a new one into the data
source.
operationId: MainBillbrand.replaceOrCreate__put_MainBillbrands
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainBillbrand'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainBillbrand'
deprecated: false
get
:
tags
:
-
MainBillbrand
summary
:
Find all instances of the model matched by filter from the data source.
operationId
:
MainBillbrand.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/MainBillbrand'
deprecated
:
false
/MainBillbrands/replaceOrCreate
:
post
:
tags
:
-
MainBillbrand
summary
:
>-
Replace an existing model instance or insert a new one into the data
source.
operationId: MainBillbrand.replaceOrCreate__post_MainBillbrands_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainBillbrand'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainBillbrand'
deprecated: false
/MainBillbrands/upsertWithWhere
:
post
:
tags
:
-
MainBillbrand
summary
:
>-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: MainBillbrand.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/MainBillbrand'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainBillbrand'
deprecated: false
'
/MainBillbrands/{id}/exists'
:
get
:
tags
:
-
MainBillbrand
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
MainBillbrand.exists__get_MainBillbrands_{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
'
/MainBillbrands/{id}'
:
head
:
tags
:
-
MainBillbrand
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
MainBillbrand.exists__head_MainBillbrands_{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
:
-
MainBillbrand
summary
:
'
Find
a
model
instance
by
{{id}}
from
the
data
source.'
operationId
:
MainBillbrand.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/MainBillbrand'
deprecated
:
false
put
:
tags
:
-
MainBillbrand
summary
:
>-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MainBillbrand.replaceById__put_MainBillbrands_{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/MainBillbrand'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainBillbrand'
deprecated: false
delete
:
tags
:
-
MainBillbrand
summary
:
'
Delete
a
model
instance
by
{{id}}
from
the
data
source.'
operationId
:
MainBillbrand.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
:
-
MainBillbrand
summary
:
>-
Patch attributes for a model instance and persist it into the data
source.
operationId: MainBillbrand.prototype.patchAttributes
parameters:
- name: id
in: path
description: MainBillbrand 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/MainBillbrand'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainBillbrand'
deprecated: false
'
/MainBillbrands/{id}/replace'
:
post
:
tags
:
-
MainBillbrand
summary
:
>-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MainBillbrand.replaceById__post_MainBillbrands_{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/MainBillbrand'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainBillbrand'
deprecated: false
/MainBillbrands/findOne
:
get
:
tags
:
-
MainBillbrand
summary
:
Find first instance of the model matched by filter from the data source.
operationId
:
MainBillbrand.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/MainBillbrand'
deprecated
:
false
/MainBillbrands/update
:
post
:
tags
:
-
MainBillbrand
summary
:
'
Update
instances
of
the
model
matched
by
{{where}}
from
the
data
source.'
operationId
:
MainBillbrand.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/MainBillbrand'
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
/MainBillbrands/count
:
get
:
tags
:
-
MainBillbrand
summary
:
Count instances of the model matched by where from the data source.
operationId
:
MainBillbrand.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
:
...
@@ -33169,7 +33607,6 @@ definitions:
...
@@ -33169,7 +33607,6 @@ definitions:
type
:
number
type
:
number
format
:
double
format
:
double
additionalProperties
:
false
additionalProperties
:
false
<<<<<<< HEAD
MainBilltotalrevenue
:
MainBilltotalrevenue
:
properties
:
properties
:
id
:
id
:
...
@@ -33185,9 +33622,6 @@ definitions:
...
@@ -33185,9 +33622,6 @@ definitions:
-
name
-
name
additionalProperties
:
false
additionalProperties
:
false
MainCountbill
:
MainCountbill
:
=======
HosLastyearbudget
:
>
>>>>>>
b7fc8bf73da8560743aaf7ceee802056a1f73492
properties
:
properties
:
id
:
id
:
maxLength
:
36
maxLength
:
36
...
@@ -33200,7 +33634,6 @@ definitions:
...
@@ -33200,7 +33634,6 @@ definitions:
format
:
double
format
:
double
required
:
required
:
-
name
-
name
<<<<<<< HEAD
-
value
-
value
additionalProperties
:
false
additionalProperties
:
false
MainBillbrandnum
:
MainBillbrandnum
:
...
@@ -33218,44 +33651,27 @@ definitions:
...
@@ -33218,44 +33651,27 @@ definitions:
-
name
-
name
additionalProperties
:
false
additionalProperties
:
false
MainGoldteachers
:
MainGoldteachers
:
=======
additionalProperties
:
false
HosLastyearregum
:
>
>>>>>>
b7fc8bf73da8560743aaf7ceee802056a1f73492
properties
:
properties
:
id
:
id
:
maxLength
:
36
maxLength
:
36
type
:
string
type
:
string
name
:
name
:
<<<<<<< HEAD
maxLength
:
5
maxLength
:
5
=======
maxLength
:
7
>
>>>>>>
b7fc8bf73da8560743aaf7ceee802056a1f73492
type
:
string
type
:
string
value
:
value
:
type
:
number
type
:
number
format
:
double
format
:
double
required
:
required
:
-
name
-
name
<<<<<<< HEAD
-
value
-
value
additionalProperties
:
false
additionalProperties
:
false
MainForteachers
:
MainForteachers
:
=======
additionalProperties
:
false
HosThisyearregum
:
>
>>>>>>
b7fc8bf73da8560743aaf7ceee802056a1f73492
properties
:
properties
:
id
:
id
:
maxLength
:
36
maxLength
:
36
type
:
string
type
:
string
name
:
name
:
<<<<<<< HEAD
maxLength
:
4
maxLength
:
4
=======
maxLength
:
7
>
>>>>>>
b7fc8bf73da8560743aaf7ceee802056a1f73492
type
:
string
type
:
string
value
:
value
:
type
:
number
type
:
number
...
@@ -33263,11 +33679,7 @@ definitions:
...
@@ -33263,11 +33679,7 @@ definitions:
required
:
required
:
-
name
-
name
additionalProperties
:
false
additionalProperties
:
false
<<<<<<< HEAD
MianPetdoco
:
MianPetdoco
:
=======
HosThisyearbudget
:
>
>>>>>>
b7fc8bf73da8560743aaf7ceee802056a1f73492
properties
:
properties
:
id
:
id
:
maxLength
:
36
maxLength
:
36
...
@@ -33281,7 +33693,6 @@ definitions:
...
@@ -33281,7 +33693,6 @@ definitions:
required
:
required
:
-
name
-
name
additionalProperties
:
false
additionalProperties
:
false
<<<<<<< HEAD
MainPetdoc
:
MainPetdoc
:
properties
:
properties
:
id
:
id
:
...
@@ -33368,19 +33779,12 @@ definitions:
...
@@ -33368,19 +33779,12 @@ definitions:
-
name
-
name
additionalProperties
:
false
additionalProperties
:
false
MainCosmetology
:
MainCosmetology
:
=======
EducCourse4
:
>
>>>>>>
b7fc8bf73da8560743aaf7ceee802056a1f73492
properties
:
properties
:
id
:
id
:
maxLength
:
36
maxLength
:
36
type
:
string
type
:
string
name
:
name
:
<<<<<<< HEAD
maxLength
:
5
maxLength
:
5
=======
maxLength
:
13
>
>>>>>>
b7fc8bf73da8560743aaf7ceee802056a1f73492
type
:
string
type
:
string
value
:
value
:
type
:
number
type
:
number
...
@@ -33388,21 +33792,83 @@ definitions:
...
@@ -33388,21 +33792,83 @@ definitions:
required
:
required
:
-
name
-
name
additionalProperties
:
false
additionalProperties
:
false
<<<<<<< HEAD
MainRegister
:
MainRegister
:
=======
EducBrowse1
:
>
>>>>>>
b7fc8bf73da8560743aaf7ceee802056a1f73492
properties
:
properties
:
id
:
id
:
maxLength
:
36
maxLength
:
36
type
:
string
type
:
string
name
:
name
:
<<<<<<< HEAD
maxLength
:
5
maxLength
:
5
=======
type
:
string
value
:
type
:
number
format
:
double
required
:
-
name
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
EducCourse4
:
properties
:
id
:
maxLength
:
36
type
:
string
name
:
maxLength
:
13
maxLength
:
13
>
>>>>>>
b7fc8bf73da8560743aaf7ceee802056a1f73492
type
:
string
type
:
string
value
:
value
:
type
:
number
type
:
number
...
@@ -33410,44 +33876,32 @@ definitions:
...
@@ -33410,44 +33876,32 @@ definitions:
required
:
required
:
-
name
-
name
additionalProperties
:
false
additionalProperties
:
false
basePath
:
/api/ruipeng
EducBrowse1
:
swagger
:
'
2.0'
info
:
x-ibm-name
:
ruipengloopbackapi
version
:
1.0.0
title
:
RuiPengLoopbackApi
schemes
:
-
https
host
:
$(catalog.host)
consumes
:
-
application/json
produces
:
-
application/json
securityDefinitions
:
clientIdHeader
:
type
:
apiKey
in
:
header
name
:
X-IBM-Client-Id
clientSecretHeader
:
in
:
header
name
:
X-IBM-Client-Secret
type
:
apiKey
security
:
-
clientIdHeader
:
[]
clientSecretHeader
:
[]
x-ibm-configuration
:
testable
:
true
enforced
:
true
cors
:
enabled
:
true
catalogs
:
apic-dev
:
properties
:
properties
:
runtime-url
:
$(TARGET_URL)
id
:
sb
:
maxLength
:
36
type
:
string
name
:
maxLength
:
13
type
:
string
value
:
type
:
number
format
:
double
required
:
-
name
additionalProperties
:
false
MainBillbrand
:
properties
:
properties
:
runtime-url
:
'
http://localhost:4001'
id
:
assembly
:
maxLength
:
36
execute
:
type
:
string
-
invoke
:
name
:
target-url
:
$(runtime-url)$(request.path)$(request.search)
maxLength
:
200
type
:
string
value
:
type
:
number
format
:
double
required
:
-
value
additionalProperties
:
false
This diff is collapsed.
Click to expand it.
server/model-config.json
View file @
2d65a436
...
@@ -344,5 +344,9 @@
...
@@ -344,5 +344,9 @@
"EducBrowse1"
:
{
"EducBrowse1"
:
{
"dataSource"
:
"ruipeng"
,
"dataSource"
:
"ruipeng"
,
"public"
:
true
"public"
:
true
},
"MainBillbrand"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
}
}
}
}
This diff is collapsed.
Click to expand it.
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