Commit 6cc9bca5 authored by 黄卓然's avatar 黄卓然

修改商家数量

parent bdd804a3
...@@ -5456,6 +5456,392 @@ paths: ...@@ -5456,6 +5456,392 @@ paths:
type: number type: number
format: double format: double
deprecated: false 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
definitions: definitions:
DashboardHospitalAwenCount: DashboardHospitalAwenCount:
properties: properties:
...@@ -5884,6 +6270,20 @@ definitions: ...@@ -5884,6 +6270,20 @@ definitions:
- hn - hn
- id - id
additionalProperties: false additionalProperties: false
MerchantAmount:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 65535
type: string
value:
type: number
format: double
required:
- value
additionalProperties: false
basePath: /api/ruipeng basePath: /api/ruipeng
swagger: '2.0' swagger: '2.0'
info: info:
......
...@@ -68,5 +68,9 @@ ...@@ -68,5 +68,9 @@
"Solo": { "Solo": {
"dataSource": "ruipeng", "dataSource": "ruipeng",
"public": true "public": true
},
"MerchantAmount": {
"dataSource": "ruipeng",
"public": true
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment