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
d04a6db3
Commit
d04a6db3
authored
5 years ago
by
余海军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
11783e6a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
817 deletions
+6
-817
merchant.json
common/models/merchant.json
+4
-3
RuiPengLoopbackApi.yaml
definitions/RuiPengLoopbackApi.yaml
+2
-814
No files found.
common/models/merchant.json
View file @
d04a6db3
...
...
@@ -12,7 +12,7 @@
"properties"
:
{
"id"
:
{
"type"
:
"String"
,
"required"
:
fals
e
,
"required"
:
tru
e
,
"length"
:
36
,
"precision"
:
null
,
"scale"
:
null
,
...
...
@@ -23,11 +23,12 @@
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
},
"isArray"
:
false
},
"name"
:
{
"type"
:
"String"
,
"required"
:
fals
e
,
"required"
:
tru
e
,
"length"
:
65535
,
"precision"
:
null
,
"scale"
:
null
,
...
...
This diff is collapsed.
Click to expand it.
definitions/RuiPengLoopbackApi.yaml
View file @
d04a6db3
...
...
@@ -5070,778 +5070,6 @@ paths:
type
:
number
format
:
double
deprecated
:
false
/Solos
:
post
:
tags
:
-
Solo
summary
:
Create a new instance of the model and persist it into the data source.
operationId
:
Solo.create
parameters
:
-
name
:
data
in
:
body
description
:
Model instance data
required
:
false
schema
:
description
:
Model instance data
$ref
:
'
#/definitions/Solo'
responses
:
'
200'
:
description
:
Request was successful
schema
:
$ref
:
'
#/definitions/Solo'
deprecated
:
false
patch
:
tags
:
-
Solo
summary
:
>-
Patch an existing model instance or insert a new one into the data
source.
operationId: Solo.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/Solo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Solo'
deprecated: false
put
:
tags
:
-
Solo
summary
:
>-
Replace an existing model instance or insert a new one into the data
source.
operationId: Solo.replaceOrCreate__put_Solos
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/Solo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Solo'
deprecated: false
get
:
tags
:
-
Solo
summary
:
Find all instances of the model matched by filter from the data source.
operationId
:
Solo.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/Solo'
deprecated
:
false
/Solos/replaceOrCreate
:
post
:
tags
:
-
Solo
summary
:
>-
Replace an existing model instance or insert a new one into the data
source.
operationId: Solo.replaceOrCreate__post_Solos_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/Solo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Solo'
deprecated: false
/Solos/upsertWithWhere
:
post
:
tags
:
-
Solo
summary
:
>-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: Solo.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/Solo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Solo'
deprecated: false
'
/Solos/{id}/exists'
:
get
:
tags
:
-
Solo
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
Solo.exists__get_Solos_{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
'
/Solos/{id}'
:
head
:
tags
:
-
Solo
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
Solo.exists__head_Solos_{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
:
-
Solo
summary
:
'
Find
a
model
instance
by
{{id}}
from
the
data
source.'
operationId
:
Solo.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/Solo'
deprecated
:
false
put
:
tags
:
-
Solo
summary
:
>-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'Solo.replaceById__put_Solos_{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/Solo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Solo'
deprecated: false
delete
:
tags
:
-
Solo
summary
:
'
Delete
a
model
instance
by
{{id}}
from
the
data
source.'
operationId
:
Solo.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
:
-
Solo
summary
:
>-
Patch attributes for a model instance and persist it into the data
source.
operationId: Solo.prototype.patchAttributes
parameters:
- name: id
in: path
description: Solo 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/Solo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Solo'
deprecated: false
'
/Solos/{id}/replace'
:
post
:
tags
:
-
Solo
summary
:
>-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'Solo.replaceById__post_Solos_{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/Solo'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Solo'
deprecated: false
/Solos/findOne
:
get
:
tags
:
-
Solo
summary
:
Find first instance of the model matched by filter from the data source.
operationId
:
Solo.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/Solo'
deprecated
:
false
/Solos/update
:
post
:
tags
:
-
Solo
summary
:
'
Update
instances
of
the
model
matched
by
{{where}}
from
the
data
source.'
operationId
:
Solo.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/Solo'
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
/Solos/count
:
get
:
tags
:
-
Solo
summary
:
Count instances of the model matched by where from the data source.
operationId
:
Solo.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
/MerchantAmounts
:
post
:
tags
:
-
MerchantAmount
summary
:
Create a new instance of the model and persist it into the data source.
operationId
:
MerchantAmount.create
parameters
:
-
name
:
data
in
:
body
description
:
Model instance data
required
:
false
schema
:
description
:
Model instance data
$ref
:
'
#/definitions/MerchantAmount'
responses
:
'
200'
:
description
:
Request was successful
schema
:
$ref
:
'
#/definitions/MerchantAmount'
deprecated
:
false
patch
:
tags
:
-
MerchantAmount
summary
:
>-
Patch an existing model instance or insert a new one into the data
source.
operationId: MerchantAmount.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MerchantAmount'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MerchantAmount'
deprecated: false
put
:
tags
:
-
MerchantAmount
summary
:
>-
Replace an existing model instance or insert a new one into the data
source.
operationId: MerchantAmount.replaceOrCreate__put_MerchantAmounts
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MerchantAmount'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MerchantAmount'
deprecated: false
get
:
tags
:
-
MerchantAmount
summary
:
Find all instances of the model matched by filter from the data source.
operationId
:
MerchantAmount.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/MerchantAmount'
deprecated
:
false
/MerchantAmounts/replaceOrCreate
:
post
:
tags
:
-
MerchantAmount
summary
:
>-
Replace an existing model instance or insert a new one into the data
source.
operationId: MerchantAmount.replaceOrCreate__post_MerchantAmounts_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MerchantAmount'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MerchantAmount'
deprecated: false
/MerchantAmounts/upsertWithWhere
:
post
:
tags
:
-
MerchantAmount
summary
:
>-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: MerchantAmount.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/MerchantAmount'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MerchantAmount'
deprecated: false
'
/MerchantAmounts/{id}/exists'
:
get
:
tags
:
-
MerchantAmount
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
MerchantAmount.exists__get_MerchantAmounts_{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
'
/MerchantAmounts/{id}'
:
head
:
tags
:
-
MerchantAmount
summary
:
Check whether a model instance exists in the data source.
operationId
:
'
MerchantAmount.exists__head_MerchantAmounts_{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
:
-
MerchantAmount
summary
:
'
Find
a
model
instance
by
{{id}}
from
the
data
source.'
operationId
:
MerchantAmount.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/MerchantAmount'
deprecated
:
false
put
:
tags
:
-
MerchantAmount
summary
:
>-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MerchantAmount.replaceById__put_MerchantAmounts_{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/MerchantAmount'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MerchantAmount'
deprecated: false
delete
:
tags
:
-
MerchantAmount
summary
:
'
Delete
a
model
instance
by
{{id}}
from
the
data
source.'
operationId
:
MerchantAmount.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
:
-
MerchantAmount
summary
:
>-
Patch attributes for a model instance and persist it into the data
source.
operationId: MerchantAmount.prototype.patchAttributes
parameters:
- name: id
in: path
description: MerchantAmount 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/MerchantAmount'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MerchantAmount'
deprecated: false
'
/MerchantAmounts/{id}/replace'
:
post
:
tags
:
-
MerchantAmount
summary
:
>-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MerchantAmount.replaceById__post_MerchantAmounts_{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/MerchantAmount'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MerchantAmount'
deprecated: false
/MerchantAmounts/findOne
:
get
:
tags
:
-
MerchantAmount
summary
:
Find first instance of the model matched by filter from the data source.
operationId
:
MerchantAmount.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/MerchantAmount'
deprecated
:
false
/MerchantAmounts/update
:
post
:
tags
:
-
MerchantAmount
summary
:
'
Update
instances
of
the
model
matched
by
{{where}}
from
the
data
source.'
operationId
:
MerchantAmount.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/MerchantAmount'
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
/MerchantAmounts/count
:
get
:
tags
:
-
MerchantAmount
summary
:
Count instances of the model matched by where from the data source.
operationId
:
MerchantAmount.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
/Merchants
:
post
:
tags
:
...
...
@@ -6628,48 +5856,6 @@ definitions:
type
:
number
format
:
double
additionalProperties
:
false
Solo
:
properties
:
hz
:
type
:
number
format
:
double
hd
:
type
:
number
format
:
double
hb
:
type
:
number
format
:
double
hx
:
type
:
number
format
:
double
hn
:
type
:
number
format
:
double
id
:
type
:
number
format
:
double
required
:
-
hz
-
hd
-
hb
-
hx
-
hn
-
id
additionalProperties
:
false
MerchantAmount
:
properties
:
id
:
maxLength
:
36
type
:
string
name
:
maxLength
:
65535
type
:
string
value
:
type
:
number
format
:
double
required
:
-
value
additionalProperties
:
false
Merchant
:
properties
:
id
:
...
...
@@ -6682,6 +5868,8 @@ definitions:
type
:
number
format
:
double
required
:
-
id
-
name
-
value
additionalProperties
:
false
basePath
:
/api/ruipeng
...
...
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