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
f608b14a
Commit
f608b14a
authored
Sep 30, 2019
by
朱涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
3f6f9a81
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
134 additions
and
134 deletions
+134
-134
main-brandlogo.json
common/models/main-brandlogo.json
+2
-2
main-companylogo.json
common/models/main-companylogo.json
+2
-2
RuiPengLoopbackApi.yaml
definitions/RuiPengLoopbackApi.yaml
+128
-128
model-config.json
server/model-config.json
+2
-2
No files found.
common/models/main-brandlogo.json
View file @
f608b14a
...
...
@@ -40,14 +40,14 @@
"nullable"
:
"Y"
}
},
"
value
"
:
{
"
img
"
:
{
"type"
:
"String"
,
"required"
:
false
,
"length"
:
500
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"
value
"
,
"columnName"
:
"
img
"
,
"dataType"
:
"varchar"
,
"dataLength"
:
500
,
"dataPrecision"
:
null
,
...
...
common/models/main-companylogo.json
View file @
f608b14a
...
...
@@ -40,14 +40,14 @@
"nullable"
:
"Y"
}
},
"
value
"
:
{
"
img
"
:
{
"type"
:
"String"
,
"required"
:
false
,
"length"
:
500
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"
value
"
,
"columnName"
:
"
img
"
,
"dataType"
:
"varchar"
,
"dataLength"
:
500
,
"dataPrecision"
:
null
,
...
...
definitions/RuiPengLoopbackApi.yaml
View file @
f608b14a
...
...
@@ -76135,12 +76135,12 @@ paths:
type: number
format: double
deprecated: false
/Main
Company
logos:
/Main
Brand
logos:
post:
tags:
- Main
Company
logo
- Main
Brand
logo
summary: Create a new instance of the model and persist it into the data source.
operationId: Main
Company
logo.create
operationId: Main
Brand
logo.create
parameters:
- name: data
in: body
...
...
@@ -76148,20 +76148,20 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Main
Company
logo'
$ref: '#/definitions/Main
Brand
logo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main
Company
logo'
$ref: '#/definitions/Main
Brand
logo'
deprecated: false
patch:
tags:
- Main
Company
logo
- Main
Brand
logo
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: Main
Company
logo.patchOrCreate
operationId: Main
Brand
logo.patchOrCreate
parameters:
- name: data
in: body
...
...
@@ -76169,20 +76169,20 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Main
Company
logo'
$ref: '#/definitions/Main
Brand
logo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main
Company
logo'
$ref: '#/definitions/Main
Brand
logo'
deprecated: false
put:
tags:
- Main
Company
logo
- Main
Brand
logo
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: Main
Companylogo.replaceOrCreate__put_MainCompany
logos
operationId: Main
Brandlogo.replaceOrCreate__put_MainBrand
logos
parameters:
- name: data
in: body
...
...
@@ -76190,18 +76190,18 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Main
Company
logo'
$ref: '#/definitions/Main
Brand
logo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main
Company
logo'
$ref: '#/definitions/Main
Brand
logo'
deprecated: false
get:
tags:
- Main
Company
logo
- Main
Brand
logo
summary: Find all instances of the model matched by filter from the data source.
operationId: Main
Company
logo.find
operationId: Main
Brand
logo.find
parameters:
- name: filter
in: query
...
...
@@ -76220,16 +76220,16 @@ paths:
schema:
type: array
items:
$ref: '#/definitions/Main
Company
logo'
$ref: '#/definitions/Main
Brand
logo'
deprecated: false
/Main
Company
logos/replaceOrCreate:
/Main
Brand
logos/replaceOrCreate:
post:
tags:
- Main
Company
logo
- Main
Brand
logo
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: Main
Companylogo.replaceOrCreate__post_MainCompany
logos_replaceOrCreate
operationId: Main
Brandlogo.replaceOrCreate__post_MainBrand
logos_replaceOrCreate
parameters:
- name: data
in: body
...
...
@@ -76237,21 +76237,21 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Main
Company
logo'
$ref: '#/definitions/Main
Brand
logo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main
Company
logo'
$ref: '#/definitions/Main
Brand
logo'
deprecated: false
/Main
Company
logos/upsertWithWhere:
/Main
Brand
logos/upsertWithWhere:
post:
tags:
- Main
Company
logo
- Main
Brand
logo
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: Main
Company
logo.upsertWithWhere
operationId: Main
Brand
logo.upsertWithWhere
parameters:
- name: where
in: query
...
...
@@ -76265,19 +76265,19 @@ paths:
required: false
schema:
description: An object of model property name/value pairs
$ref: '#/definitions/Main
Company
logo'
$ref: '#/definitions/Main
Brand
logo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main
Company
logo'
$ref: '#/definitions/Main
Brand
logo'
deprecated: false
'/Main
Company
logos/{id}/exists':
'/Main
Brand
logos/{id}/exists':
get:
tags:
- Main
Company
logo
- Main
Brand
logo
summary: Check whether a model instance exists in the data source.
operationId: 'Main
Companylogo.exists__get_MainCompany
logos_{id}_exists'
operationId: 'Main
Brandlogo.exists__get_MainBrand
logos_{id}_exists'
parameters:
- name: id
in: path
...
...
@@ -76294,12 +76294,12 @@ paths:
exists:
type: boolean
deprecated: false
'/Main
Company
logos/{id}':
'/Main
Brand
logos/{id}':
head:
tags:
- Main
Company
logo
- Main
Brand
logo
summary: Check whether a model instance exists in the data source.
operationId: 'Main
Companylogo.exists__head_MainCompany
logos_{id}'
operationId: 'Main
Brandlogo.exists__head_MainBrand
logos_{id}'
parameters:
- name: id
in: path
...
...
@@ -76318,9 +76318,9 @@ paths:
deprecated: false
get:
tags:
- Main
Company
logo
- Main
Brand
logo
summary: 'Find a model instance by {{id}} from the data source.'
operationId: Main
Company
logo.findById
operationId: Main
Brand
logo.findById
parameters:
- name: id
in: path
...
...
@@ -76340,15 +76340,15 @@ paths:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main
Company
logo'
$ref: '#/definitions/Main
Brand
logo'
deprecated: false
put:
tags:
- Main
Company
logo
- Main
Brand
logo
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'Main
Companylogo.replaceById__put_MainCompany
logos_{id}'
operationId: 'Main
Brandlogo.replaceById__put_MainBrand
logos_{id}'
parameters:
- name: id
in: path
...
...
@@ -76362,18 +76362,18 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Main
Company
logo'
$ref: '#/definitions/Main
Brand
logo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main
Company
logo'
$ref: '#/definitions/Main
Brand
logo'
deprecated: false
delete:
tags:
- Main
Company
logo
- Main
Brand
logo
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: Main
Company
logo.deleteById
operationId: Main
Brand
logo.deleteById
parameters:
- name: id
in: path
...
...
@@ -76389,15 +76389,15 @@ paths:
deprecated: false
patch:
tags:
- Main
Company
logo
- Main
Brand
logo
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: Main
Company
logo.prototype.patchAttributes
operationId: Main
Brand
logo.prototype.patchAttributes
parameters:
- name: id
in: path
description: Main
Company
logo id
description: Main
Brand
logo id
required: true
type: string
format: JSON
...
...
@@ -76407,21 +76407,21 @@ paths:
required: false
schema:
description: An object of model property name/value pairs
$ref: '#/definitions/Main
Company
logo'
$ref: '#/definitions/Main
Brand
logo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main
Company
logo'
$ref: '#/definitions/Main
Brand
logo'
deprecated: false
'/Main
Company
logos/{id}/replace':
'/Main
Brand
logos/{id}/replace':
post:
tags:
- Main
Company
logo
- Main
Brand
logo
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'Main
Companylogo.replaceById__post_MainCompany
logos_{id}_replace'
operationId: 'Main
Brandlogo.replaceById__post_MainBrand
logos_{id}_replace'
parameters:
- name: id
in: path
...
...
@@ -76435,19 +76435,19 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Main
Company
logo'
$ref: '#/definitions/Main
Brand
logo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main
Company
logo'
$ref: '#/definitions/Main
Brand
logo'
deprecated: false
/Main
Company
logos/findOne:
/Main
Brand
logos/findOne:
get:
tags:
- Main
Company
logo
- Main
Brand
logo
summary: Find first instance of the model matched by filter from the data source.
operationId: Main
Company
logo.findOne
operationId: Main
Brand
logo.findOne
parameters:
- name: filter
in: query
...
...
@@ -76464,14 +76464,14 @@ paths:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main
Company
logo'
$ref: '#/definitions/Main
Brand
logo'
deprecated: false
/Main
Company
logos/update:
/Main
Brand
logos/update:
post:
tags:
- Main
Company
logo
- Main
Brand
logo
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: Main
Company
logo.updateAll
operationId: Main
Brand
logo.updateAll
parameters:
- name: where
in: query
...
...
@@ -76485,7 +76485,7 @@ paths:
required: false
schema:
description: An object of model property name/value pairs
$ref: '#/definitions/Main
Company
logo'
$ref: '#/definitions/Main
Brand
logo'
responses:
'200':
description: Request was successful
...
...
@@ -76498,12 +76498,12 @@ paths:
type: number
format: double
deprecated: false
/Main
Company
logos/count:
/Main
Brand
logos/count:
get:
tags:
- Main
Company
logo
- Main
Brand
logo
summary: Count instances of the model matched by where from the data source.
operationId: Main
Company
logo.count
operationId: Main
Brand
logo.count
parameters:
- name: where
in: query
...
...
@@ -76521,12 +76521,12 @@ paths:
type: number
format: double
deprecated: false
/Main
Brand
logos:
/Main
Company
logos:
post:
tags:
- Main
Brand
logo
- Main
Company
logo
summary: Create a new instance of the model and persist it into the data source.
operationId: Main
Brand
logo.create
operationId: Main
Company
logo.create
parameters:
- name: data
in: body
...
...
@@ -76534,20 +76534,20 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Main
Brand
logo'
$ref: '#/definitions/Main
Company
logo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main
Brand
logo'
$ref: '#/definitions/Main
Company
logo'
deprecated: false
patch:
tags:
- Main
Brand
logo
- Main
Company
logo
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: Main
Brand
logo.patchOrCreate
operationId: Main
Company
logo.patchOrCreate
parameters:
- name: data
in: body
...
...
@@ -76555,20 +76555,20 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Main
Brand
logo'
$ref: '#/definitions/Main
Company
logo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main
Brand
logo'
$ref: '#/definitions/Main
Company
logo'
deprecated: false
put:
tags:
- Main
Brand
logo
- Main
Company
logo
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: Main
Brandlogo.replaceOrCreate__put_MainBrand
logos
operationId: Main
Companylogo.replaceOrCreate__put_MainCompany
logos
parameters:
- name: data
in: body
...
...
@@ -76576,18 +76576,18 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Main
Brand
logo'
$ref: '#/definitions/Main
Company
logo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main
Brand
logo'
$ref: '#/definitions/Main
Company
logo'
deprecated: false
get:
tags:
- Main
Brand
logo
- Main
Company
logo
summary: Find all instances of the model matched by filter from the data source.
operationId: Main
Brand
logo.find
operationId: Main
Company
logo.find
parameters:
- name: filter
in: query
...
...
@@ -76606,16 +76606,16 @@ paths:
schema:
type: array
items:
$ref: '#/definitions/Main
Brand
logo'
$ref: '#/definitions/Main
Company
logo'
deprecated: false
/Main
Brand
logos/replaceOrCreate:
/Main
Company
logos/replaceOrCreate:
post:
tags:
- Main
Brand
logo
- Main
Company
logo
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: Main
Brandlogo.replaceOrCreate__post_MainBrand
logos_replaceOrCreate
operationId: Main
Companylogo.replaceOrCreate__post_MainCompany
logos_replaceOrCreate
parameters:
- name: data
in: body
...
...
@@ -76623,21 +76623,21 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Main
Brand
logo'
$ref: '#/definitions/Main
Company
logo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main
Brand
logo'
$ref: '#/definitions/Main
Company
logo'
deprecated: false
/Main
Brand
logos/upsertWithWhere:
/Main
Company
logos/upsertWithWhere:
post:
tags:
- Main
Brand
logo
- Main
Company
logo
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: Main
Brand
logo.upsertWithWhere
operationId: Main
Company
logo.upsertWithWhere
parameters:
- name: where
in: query
...
...
@@ -76651,19 +76651,19 @@ paths:
required: false
schema:
description: An object of model property name/value pairs
$ref: '#/definitions/Main
Brand
logo'
$ref: '#/definitions/Main
Company
logo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main
Brand
logo'
$ref: '#/definitions/Main
Company
logo'
deprecated: false
'/Main
Brand
logos/{id}/exists':
'/Main
Company
logos/{id}/exists':
get:
tags:
- Main
Brand
logo
- Main
Company
logo
summary: Check whether a model instance exists in the data source.
operationId: 'Main
Brandlogo.exists__get_MainBrand
logos_{id}_exists'
operationId: 'Main
Companylogo.exists__get_MainCompany
logos_{id}_exists'
parameters:
- name: id
in: path
...
...
@@ -76680,12 +76680,12 @@ paths:
exists:
type: boolean
deprecated: false
'/Main
Brand
logos/{id}':
'/Main
Company
logos/{id}':
head:
tags:
- Main
Brand
logo
- Main
Company
logo
summary: Check whether a model instance exists in the data source.
operationId: 'Main
Brandlogo.exists__head_MainBrand
logos_{id}'
operationId: 'Main
Companylogo.exists__head_MainCompany
logos_{id}'
parameters:
- name: id
in: path
...
...
@@ -76704,9 +76704,9 @@ paths:
deprecated: false
get:
tags:
- Main
Brand
logo
- Main
Company
logo
summary: 'Find a model instance by {{id}} from the data source.'
operationId: Main
Brand
logo.findById
operationId: Main
Company
logo.findById
parameters:
- name: id
in: path
...
...
@@ -76726,15 +76726,15 @@ paths:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main
Brand
logo'
$ref: '#/definitions/Main
Company
logo'
deprecated: false
put:
tags:
- Main
Brand
logo
- Main
Company
logo
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'Main
Brandlogo.replaceById__put_MainBrand
logos_{id}'
operationId: 'Main
Companylogo.replaceById__put_MainCompany
logos_{id}'
parameters:
- name: id
in: path
...
...
@@ -76748,18 +76748,18 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Main
Brand
logo'
$ref: '#/definitions/Main
Company
logo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main
Brand
logo'
$ref: '#/definitions/Main
Company
logo'
deprecated: false
delete:
tags:
- Main
Brand
logo
- Main
Company
logo
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: Main
Brand
logo.deleteById
operationId: Main
Company
logo.deleteById
parameters:
- name: id
in: path
...
...
@@ -76775,15 +76775,15 @@ paths:
deprecated: false
patch:
tags:
- Main
Brand
logo
- Main
Company
logo
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: Main
Brand
logo.prototype.patchAttributes
operationId: Main
Company
logo.prototype.patchAttributes
parameters:
- name: id
in: path
description: Main
Brand
logo id
description: Main
Company
logo id
required: true
type: string
format: JSON
...
...
@@ -76793,21 +76793,21 @@ paths:
required: false
schema:
description: An object of model property name/value pairs
$ref: '#/definitions/Main
Brand
logo'
$ref: '#/definitions/Main
Company
logo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main
Brand
logo'
$ref: '#/definitions/Main
Company
logo'
deprecated: false
'/Main
Brand
logos/{id}/replace':
'/Main
Company
logos/{id}/replace':
post:
tags:
- Main
Brand
logo
- Main
Company
logo
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'Main
Brandlogo.replaceById__post_MainBrand
logos_{id}_replace'
operationId: 'Main
Companylogo.replaceById__post_MainCompany
logos_{id}_replace'
parameters:
- name: id
in: path
...
...
@@ -76821,19 +76821,19 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Main
Brand
logo'
$ref: '#/definitions/Main
Company
logo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main
Brand
logo'
$ref: '#/definitions/Main
Company
logo'
deprecated: false
/Main
Brand
logos/findOne:
/Main
Company
logos/findOne:
get:
tags:
- Main
Brand
logo
- Main
Company
logo
summary: Find first instance of the model matched by filter from the data source.
operationId: Main
Brand
logo.findOne
operationId: Main
Company
logo.findOne
parameters:
- name: filter
in: query
...
...
@@ -76850,14 +76850,14 @@ paths:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Main
Brand
logo'
$ref: '#/definitions/Main
Company
logo'
deprecated: false
/Main
Brand
logos/update:
/Main
Company
logos/update:
post:
tags:
- Main
Brand
logo
- Main
Company
logo
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: Main
Brand
logo.updateAll
operationId: Main
Company
logo.updateAll
parameters:
- name: where
in: query
...
...
@@ -76871,7 +76871,7 @@ paths:
required: false
schema:
description: An object of model property name/value pairs
$ref: '#/definitions/Main
Brand
logo'
$ref: '#/definitions/Main
Company
logo'
responses:
'200':
description: Request was successful
...
...
@@ -76884,12 +76884,12 @@ paths:
type: number
format: double
deprecated: false
/Main
Brand
logos/count:
/Main
Company
logos/count:
get:
tags:
- Main
Brand
logo
- Main
Company
logo
summary: Count instances of the model matched by where from the data source.
operationId: Main
Brand
logo.count
operationId: Main
Company
logo.count
parameters:
- name: where
in: query
...
...
@@ -80102,7 +80102,7 @@ definitions:
required:
- name
additionalProperties: false
Main
Company
logo:
Main
Brand
logo:
properties:
id:
maxLength: 36
...
...
@@ -80110,11 +80110,11 @@ definitions:
name:
maxLength: 500
type: string
value
:
img
:
maxLength: 500
type: string
additionalProperties: false
Main
Brand
logo:
Main
Company
logo:
properties:
id:
maxLength: 36
...
...
@@ -80122,7 +80122,7 @@ definitions:
name:
maxLength: 500
type: string
value
:
img
:
maxLength: 500
type: string
additionalProperties: false
server/model-config.json
View file @
f608b14a
...
...
@@ -801,11 +801,11 @@
"dataSource"
:
"ruipeng"
,
"public"
:
true
},
"Main
Company
logo"
:
{
"Main
Brand
logo"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
},
"Main
Brand
logo"
:
{
"Main
Company
logo"
:
{
"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