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
8083c6b9
Commit
8083c6b9
authored
Sep 10, 2019
by
余海军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
2d65a436
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
513 additions
and
53 deletions
+513
-53
main-companyarea.js
common/models/main-companyarea.js
+5
-0
main-companyarea.json
common/models/main-companyarea.json
+63
-0
RuiPengLoopbackApi.yaml
definitions/RuiPengLoopbackApi.yaml
+441
-53
model-config.json
server/model-config.json
+4
-0
No files found.
common/models/main-companyarea.js
0 → 100644
View file @
8083c6b9
'use strict'
;
module
.
exports
=
function
(
Maincompanyarea
)
{
};
common/models/main-companyarea.json
0 → 100644
View file @
8083c6b9
{
"name"
:
"MainCompanyarea"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
"validateUpsert"
:
true
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"main_companyarea"
},
"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"
:
255
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"name"
,
"dataType"
:
"varchar"
,
"dataLength"
:
255
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
},
"value"
:
{
"type"
:
"String"
,
"required"
:
true
,
"length"
:
255
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"value"
,
"dataType"
:
"varchar"
,
"dataLength"
:
255
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"N"
}
}
},
"validations"
:
[],
"relations"
:
{},
"acls"
:
[],
"methods"
:
{}
}
definitions/RuiPengLoopbackApi.yaml
View file @
8083c6b9
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
:
/DashboardHospitalAwenCounts
:
post
:
...
...
@@ -32542,8 +32492,392 @@ paths:
type
:
number
format
:
double
deprecated
:
false
/MainCompanyareas
:
post
:
tags
:
-
MainCompanyarea
summary
:
Create a new instance of the model and persist it into the data source.
operationId
:
MainCompanyarea.create
parameters
:
-
name
:
data
in
:
body
description
:
Model instance data
required
:
false
schema
:
description
:
Model instance data
$ref
:
'
#/definitions/MainCompanyarea'
responses
:
'
200'
:
description
:
Request was successful
schema
:
$ref
:
'
#/definitions/MainCompanyarea'
deprecated
:
false
patch
:
tags
:
-
MainCompanyarea
summary
:
>-
Patch an existing model instance or insert a new one into the data
source.
operationId: MainCompanyarea.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainCompanyarea'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainCompanyarea'
deprecated: false
put
:
tags
:
-
MainCompanyarea
summary
:
>-
Replace an existing model instance or insert a new one into the data
source.
operationId: MainCompanyarea.replaceOrCreate__put_MainCompanyareas
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainCompanyarea'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainCompanyarea'
deprecated: false
get
:
tags
:
-
MainCompanyarea
summary
:
Find all instances of the model matched by filter from the data source.
operationId
:
MainCompanyarea.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/MainCompanyarea'
deprecated
:
false
/MainCompanyareas/replaceOrCreate
:
post
:
tags
:
-
MainCompanyarea
summary
:
>-
Replace an existing model instance or insert a new one into the data
source.
operationId: MainCompanyarea.replaceOrCreate__post_MainCompanyareas_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainCompanyarea'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainCompanyarea'
deprecated: false
/MainCompanyareas/upsertWithWhere
:
post
:
tags
:
-
MainCompanyarea
summary
:
>-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: MainCompanyarea.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/MainCompanyarea'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainCompanyarea'
deprecated: false
'
/MainCompanyareas/{id}/exists'
:
get
:
tags
:
-
MainCompanyarea
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
MainCompanyarea.exists__get_MainCompanyareas_{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
'
/MainCompanyareas/{id}'
:
head
:
tags
:
-
MainCompanyarea
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
MainCompanyarea.exists__head_MainCompanyareas_{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
:
-
MainCompanyarea
summary
:
'
Find
a
model
instance
by
{{id}}
from
the
data
source.'
operationId
:
MainCompanyarea.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/MainCompanyarea'
deprecated
:
false
put
:
tags
:
-
MainCompanyarea
summary
:
>-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MainCompanyarea.replaceById__put_MainCompanyareas_{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/MainCompanyarea'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainCompanyarea'
deprecated: false
delete
:
tags
:
-
MainCompanyarea
summary
:
'
Delete
a
model
instance
by
{{id}}
from
the
data
source.'
operationId
:
MainCompanyarea.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
:
-
MainCompanyarea
summary
:
>-
Patch attributes for a model instance and persist it into the data
source.
operationId: MainCompanyarea.prototype.patchAttributes
parameters:
- name: id
in: path
description: MainCompanyarea 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/MainCompanyarea'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainCompanyarea'
deprecated: false
'
/MainCompanyareas/{id}/replace'
:
post
:
tags
:
-
MainCompanyarea
summary
:
>-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MainCompanyarea.replaceById__post_MainCompanyareas_{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/MainCompanyarea'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainCompanyarea'
deprecated: false
/MainCompanyareas/findOne
:
get
:
tags
:
-
MainCompanyarea
summary
:
Find first instance of the model matched by filter from the data source.
operationId
:
MainCompanyarea.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/MainCompanyarea'
deprecated
:
false
/MainCompanyareas/update
:
post
:
tags
:
-
MainCompanyarea
summary
:
'
Update
instances
of
the
model
matched
by
{{where}}
from
the
data
source.'
operationId
:
MainCompanyarea.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/MainCompanyarea'
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
/MainCompanyareas/count
:
get
:
tags
:
-
MainCompanyarea
summary
:
Count instances of the model matched by where from the data source.
operationId
:
MainCompanyarea.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
:
...
...
@@ -33904,4 +34238,58 @@ definitions:
required
:
-
value
additionalProperties
:
false
MainCompanyarea
:
properties
:
id
:
maxLength
:
36
type
:
string
name
:
maxLength
:
255
type
:
string
value
:
maxLength
:
255
type
:
string
required
:
-
value
additionalProperties
:
false
basePath
:
/api/ruipeng
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
:
runtime-url
:
$(TARGET_URL)
sb
:
properties
:
runtime-url
:
'
http://localhost:4001'
assembly
:
execute
:
-
invoke
:
target-url
:
$(runtime-url)$(request.path)$(request.search)
server/model-config.json
View file @
8083c6b9
...
...
@@ -348,5 +348,9 @@
"MainBillbrand"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
},
"MainCompanyarea"
:
{
"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