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
3f6f9a81
Commit
3f6f9a81
authored
5 years ago
by
余海军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
22263e2e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
940 additions
and
0 deletions
+940
-0
main-brandlogo.js
common/models/main-brandlogo.js
+5
-0
main-brandlogo.json
common/models/main-brandlogo.json
+63
-0
main-companylogo.js
common/models/main-companylogo.js
+5
-0
main-companylogo.json
common/models/main-companylogo.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-brandlogo.js
0 → 100644
View file @
3f6f9a81
'use strict'
;
module
.
exports
=
function
(
Mainbrandlogo
)
{
};
This diff is collapsed.
Click to expand it.
common/models/main-brandlogo.json
0 → 100644
View file @
3f6f9a81
{
"name"
:
"MainBrandlogo"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
"validateUpsert"
:
true
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"main_brandlogo"
},
"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"
:
500
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"name"
,
"dataType"
:
"varchar"
,
"dataLength"
:
500
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
},
"value"
:
{
"type"
:
"String"
,
"required"
:
false
,
"length"
:
500
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"value"
,
"dataType"
:
"varchar"
,
"dataLength"
:
500
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
}
},
"validations"
:
[],
"relations"
:
{},
"acls"
:
[],
"methods"
:
{}
}
This diff is collapsed.
Click to expand it.
common/models/main-companylogo.js
0 → 100644
View file @
3f6f9a81
'use strict'
;
module
.
exports
=
function
(
Maincompanylogo
)
{
};
This diff is collapsed.
Click to expand it.
common/models/main-companylogo.json
0 → 100644
View file @
3f6f9a81
{
"name"
:
"MainCompanylogo"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
"validateUpsert"
:
true
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"main_companylogo"
},
"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"
:
500
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"name"
,
"dataType"
:
"varchar"
,
"dataLength"
:
500
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
},
"value"
:
{
"type"
:
"String"
,
"required"
:
false
,
"length"
:
500
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"value"
,
"dataType"
:
"varchar"
,
"dataLength"
:
500
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
}
},
"validations"
:
[],
"relations"
:
{},
"acls"
:
[],
"methods"
:
{}
}
This diff is collapsed.
Click to expand it.
definitions/RuiPengLoopbackApi.yaml
View file @
3f6f9a81
...
@@ -76135,6 +76135,778 @@ paths:
...
@@ -76135,6 +76135,778 @@ paths:
type: number
type: number
format: double
format: double
deprecated: false
deprecated: false
/MainCompanylogos:
post:
tags:
- MainCompanylogo
summary: Create a new instance of the model and persist it into the data source.
operationId: MainCompanylogo.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainCompanylogo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainCompanylogo'
deprecated: false
patch:
tags:
- MainCompanylogo
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: MainCompanylogo.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainCompanylogo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainCompanylogo'
deprecated: false
put:
tags:
- MainCompanylogo
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: MainCompanylogo.replaceOrCreate__put_MainCompanylogos
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainCompanylogo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainCompanylogo'
deprecated: false
get:
tags:
- MainCompanylogo
summary: Find all instances of the model matched by filter from the data source.
operationId: MainCompanylogo.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/MainCompanylogo'
deprecated: false
/MainCompanylogos/replaceOrCreate:
post:
tags:
- MainCompanylogo
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: MainCompanylogo.replaceOrCreate__post_MainCompanylogos_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainCompanylogo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainCompanylogo'
deprecated: false
/MainCompanylogos/upsertWithWhere:
post:
tags:
- MainCompanylogo
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: MainCompanylogo.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/MainCompanylogo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainCompanylogo'
deprecated: false
'/MainCompanylogos/{id}/exists':
get:
tags:
- MainCompanylogo
summary: Check whether a model instance exists in the data source.
operationId: 'MainCompanylogo.exists__get_MainCompanylogos_{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
'/MainCompanylogos/{id}':
head:
tags:
- MainCompanylogo
summary: Check whether a model instance exists in the data source.
operationId: 'MainCompanylogo.exists__head_MainCompanylogos_{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:
- MainCompanylogo
summary: 'Find a model instance by {{id}} from the data source.'
operationId: MainCompanylogo.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/MainCompanylogo'
deprecated: false
put:
tags:
- MainCompanylogo
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MainCompanylogo.replaceById__put_MainCompanylogos_{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/MainCompanylogo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainCompanylogo'
deprecated: false
delete:
tags:
- MainCompanylogo
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: MainCompanylogo.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:
- MainCompanylogo
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: MainCompanylogo.prototype.patchAttributes
parameters:
- name: id
in: path
description: MainCompanylogo 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/MainCompanylogo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainCompanylogo'
deprecated: false
'/MainCompanylogos/{id}/replace':
post:
tags:
- MainCompanylogo
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MainCompanylogo.replaceById__post_MainCompanylogos_{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/MainCompanylogo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainCompanylogo'
deprecated: false
/MainCompanylogos/findOne:
get:
tags:
- MainCompanylogo
summary: Find first instance of the model matched by filter from the data source.
operationId: MainCompanylogo.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/MainCompanylogo'
deprecated: false
/MainCompanylogos/update:
post:
tags:
- MainCompanylogo
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: MainCompanylogo.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/MainCompanylogo'
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
/MainCompanylogos/count:
get:
tags:
- MainCompanylogo
summary: Count instances of the model matched by where from the data source.
operationId: MainCompanylogo.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
/MainBrandlogos:
post:
tags:
- MainBrandlogo
summary: Create a new instance of the model and persist it into the data source.
operationId: MainBrandlogo.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainBrandlogo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainBrandlogo'
deprecated: false
patch:
tags:
- MainBrandlogo
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: MainBrandlogo.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainBrandlogo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainBrandlogo'
deprecated: false
put:
tags:
- MainBrandlogo
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: MainBrandlogo.replaceOrCreate__put_MainBrandlogos
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainBrandlogo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainBrandlogo'
deprecated: false
get:
tags:
- MainBrandlogo
summary: Find all instances of the model matched by filter from the data source.
operationId: MainBrandlogo.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/MainBrandlogo'
deprecated: false
/MainBrandlogos/replaceOrCreate:
post:
tags:
- MainBrandlogo
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: MainBrandlogo.replaceOrCreate__post_MainBrandlogos_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainBrandlogo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainBrandlogo'
deprecated: false
/MainBrandlogos/upsertWithWhere:
post:
tags:
- MainBrandlogo
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: MainBrandlogo.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/MainBrandlogo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainBrandlogo'
deprecated: false
'/MainBrandlogos/{id}/exists':
get:
tags:
- MainBrandlogo
summary: Check whether a model instance exists in the data source.
operationId: 'MainBrandlogo.exists__get_MainBrandlogos_{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
'/MainBrandlogos/{id}':
head:
tags:
- MainBrandlogo
summary: Check whether a model instance exists in the data source.
operationId: 'MainBrandlogo.exists__head_MainBrandlogos_{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:
- MainBrandlogo
summary: 'Find a model instance by {{id}} from the data source.'
operationId: MainBrandlogo.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/MainBrandlogo'
deprecated: false
put:
tags:
- MainBrandlogo
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MainBrandlogo.replaceById__put_MainBrandlogos_{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/MainBrandlogo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainBrandlogo'
deprecated: false
delete:
tags:
- MainBrandlogo
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: MainBrandlogo.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:
- MainBrandlogo
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: MainBrandlogo.prototype.patchAttributes
parameters:
- name: id
in: path
description: MainBrandlogo 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/MainBrandlogo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainBrandlogo'
deprecated: false
'/MainBrandlogos/{id}/replace':
post:
tags:
- MainBrandlogo
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MainBrandlogo.replaceById__post_MainBrandlogos_{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/MainBrandlogo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainBrandlogo'
deprecated: false
/MainBrandlogos/findOne:
get:
tags:
- MainBrandlogo
summary: Find first instance of the model matched by filter from the data source.
operationId: MainBrandlogo.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/MainBrandlogo'
deprecated: false
/MainBrandlogos/update:
post:
tags:
- MainBrandlogo
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: MainBrandlogo.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/MainBrandlogo'
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
/MainBrandlogos/count:
get:
tags:
- MainBrandlogo
summary: Count instances of the model matched by where from the data source.
operationId: MainBrandlogo.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:
...
@@ -79330,6 +80102,30 @@ definitions:
...
@@ -79330,6 +80102,30 @@ definitions:
required:
required:
- name
- name
additionalProperties: false
additionalProperties: false
MainCompanylogo:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 500
type: string
value:
maxLength: 500
type: string
additionalProperties: false
MainBrandlogo:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 500
type: string
value:
maxLength: 500
type: string
additionalProperties: false
basePath: /api/ruipeng
basePath: /api/ruipeng
swagger: '2.0'
swagger: '2.0'
info:
info:
This diff is collapsed.
Click to expand it.
server/model-config.json
View file @
3f6f9a81
...
@@ -800,5 +800,13 @@
...
@@ -800,5 +800,13 @@
"AnotherFlownum"
:
{
"AnotherFlownum"
:
{
"dataSource"
:
"ruipeng"
,
"dataSource"
:
"ruipeng"
,
"public"
:
true
"public"
:
true
},
"MainCompanylogo"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
},
"MainBrandlogo"
:
{
"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