Commit 2af536e7 authored by 黄卓然's avatar 黄卓然

add

parent e36d3e5a
...@@ -61446,6 +61446,392 @@ paths: ...@@ -61446,6 +61446,392 @@ paths:
type: number type: number
format: double format: double
deprecated: false deprecated: false
/HosGoods:
post:
tags:
- HosGoods
summary: Create a new instance of the model and persist it into the data source.
operationId: HosGoods.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosGoods'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosGoods'
deprecated: false
patch:
tags:
- HosGoods
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: HosGoods.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosGoods'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosGoods'
deprecated: false
put:
tags:
- HosGoods
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosGoods.replaceOrCreate__put_HosGoods
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosGoods'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosGoods'
deprecated: false
get:
tags:
- HosGoods
summary: Find all instances of the model matched by filter from the data source.
operationId: HosGoods.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/HosGoods'
deprecated: false
/HosGoods/replaceOrCreate:
post:
tags:
- HosGoods
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosGoods.replaceOrCreate__post_HosGoods_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosGoods'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosGoods'
deprecated: false
/HosGoods/upsertWithWhere:
post:
tags:
- HosGoods
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: HosGoods.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/HosGoods'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosGoods'
deprecated: false
'/HosGoods/{id}/exists':
get:
tags:
- HosGoods
summary: Check whether a model instance exists in the data source.
operationId: 'HosGoods.exists__get_HosGoods_{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
'/HosGoods/{id}':
head:
tags:
- HosGoods
summary: Check whether a model instance exists in the data source.
operationId: 'HosGoods.exists__head_HosGoods_{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:
- HosGoods
summary: 'Find a model instance by {{id}} from the data source.'
operationId: HosGoods.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/HosGoods'
deprecated: false
put:
tags:
- HosGoods
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosGoods.replaceById__put_HosGoods_{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/HosGoods'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosGoods'
deprecated: false
delete:
tags:
- HosGoods
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: HosGoods.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:
- HosGoods
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: HosGoods.prototype.patchAttributes
parameters:
- name: id
in: path
description: HosGoods 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/HosGoods'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosGoods'
deprecated: false
'/HosGoods/{id}/replace':
post:
tags:
- HosGoods
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosGoods.replaceById__post_HosGoods_{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/HosGoods'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosGoods'
deprecated: false
/HosGoods/findOne:
get:
tags:
- HosGoods
summary: Find first instance of the model matched by filter from the data source.
operationId: HosGoods.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/HosGoods'
deprecated: false
/HosGoods/update:
post:
tags:
- HosGoods
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: HosGoods.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/HosGoods'
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
/HosGoods/count:
get:
tags:
- HosGoods
summary: Count instances of the model matched by where from the data source.
operationId: HosGoods.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:
...@@ -63982,6 +64368,23 @@ definitions: ...@@ -63982,6 +64368,23 @@ definitions:
required: required:
- value - value
additionalProperties: false additionalProperties: false
HosGoods:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 6
type: string
value:
type: number
format: double
area:
maxLength: 101
type: string
required:
- name
additionalProperties: false
basePath: /api/ruipeng basePath: /api/ruipeng
swagger: '2.0' swagger: '2.0'
info: info:
...@@ -648,5 +648,9 @@ ...@@ -648,5 +648,9 @@
"HosAccrualmonth": { "HosAccrualmonth": {
"dataSource": "ruipeng", "dataSource": "ruipeng",
"public": true "public": true
},
"HosGoods": {
"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