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
4e9b933e
Commit
4e9b933e
authored
5 years ago
by
余海军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
50d4986c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
472 additions
and
0 deletions
+472
-0
hos-casereturn.js
common/models/hos-casereturn.js
+5
-0
hos-casereturn.json
common/models/hos-casereturn.json
+63
-0
RuiPengLoopbackApi.yaml
definitions/RuiPengLoopbackApi.yaml
+400
-0
model-config.json
server/model-config.json
+4
-0
No files found.
common/models/hos-casereturn.js
0 → 100644
View file @
4e9b933e
'use strict'
;
module
.
exports
=
function
(
Hoscasereturn
)
{
};
This diff is collapsed.
Click to expand it.
common/models/hos-casereturn.json
0 → 100644
View file @
4e9b933e
{
"name"
:
"HosCasereturn"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
"validateUpsert"
:
true
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"hos_casereturn"
},
"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"
:
true
,
"length"
:
5
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"name"
,
"dataType"
:
"varchar"
,
"dataLength"
:
5
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"N"
}
},
"value"
:
{
"type"
:
"Number"
,
"required"
:
false
,
"length"
:
null
,
"precision"
:
32
,
"scale"
:
0
,
"mysql"
:
{
"columnName"
:
"value"
,
"dataType"
:
"decimal"
,
"dataLength"
:
null
,
"dataPrecision"
:
32
,
"dataScale"
:
0
,
"nullable"
:
"Y"
}
}
},
"validations"
:
[],
"relations"
:
{},
"acls"
:
[],
"methods"
:
{}
}
This diff is collapsed.
Click to expand it.
definitions/RuiPengLoopbackApi.yaml
View file @
4e9b933e
...
...
@@ -49479,6 +49479,392 @@ paths:
type: number
format: double
deprecated: false
/HosCasereturns:
post:
tags:
- HosCasereturn
summary: Create a new instance of the model and persist it into the data source.
operationId: HosCasereturn.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosCasereturn'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosCasereturn'
deprecated: false
patch:
tags:
- HosCasereturn
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: HosCasereturn.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosCasereturn'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosCasereturn'
deprecated: false
put:
tags:
- HosCasereturn
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosCasereturn.replaceOrCreate__put_HosCasereturns
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosCasereturn'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosCasereturn'
deprecated: false
get:
tags:
- HosCasereturn
summary: Find all instances of the model matched by filter from the data source.
operationId: HosCasereturn.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/HosCasereturn'
deprecated: false
/HosCasereturns/replaceOrCreate:
post:
tags:
- HosCasereturn
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosCasereturn.replaceOrCreate__post_HosCasereturns_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosCasereturn'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosCasereturn'
deprecated: false
/HosCasereturns/upsertWithWhere:
post:
tags:
- HosCasereturn
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: HosCasereturn.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/HosCasereturn'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosCasereturn'
deprecated: false
'/HosCasereturns/{id}/exists':
get:
tags:
- HosCasereturn
summary: Check whether a model instance exists in the data source.
operationId: 'HosCasereturn.exists__get_HosCasereturns_{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
'/HosCasereturns/{id}':
head:
tags:
- HosCasereturn
summary: Check whether a model instance exists in the data source.
operationId: 'HosCasereturn.exists__head_HosCasereturns_{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:
- HosCasereturn
summary: 'Find a model instance by {{id}} from the data source.'
operationId: HosCasereturn.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/HosCasereturn'
deprecated: false
put:
tags:
- HosCasereturn
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosCasereturn.replaceById__put_HosCasereturns_{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/HosCasereturn'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosCasereturn'
deprecated: false
delete:
tags:
- HosCasereturn
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: HosCasereturn.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:
- HosCasereturn
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: HosCasereturn.prototype.patchAttributes
parameters:
- name: id
in: path
description: HosCasereturn 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/HosCasereturn'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosCasereturn'
deprecated: false
'/HosCasereturns/{id}/replace':
post:
tags:
- HosCasereturn
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosCasereturn.replaceById__post_HosCasereturns_{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/HosCasereturn'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosCasereturn'
deprecated: false
/HosCasereturns/findOne:
get:
tags:
- HosCasereturn
summary: Find first instance of the model matched by filter from the data source.
operationId: HosCasereturn.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/HosCasereturn'
deprecated: false
/HosCasereturns/update:
post:
tags:
- HosCasereturn
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: HosCasereturn.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/HosCasereturn'
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
/HosCasereturns/count:
get:
tags:
- HosCasereturn
summary: Count instances of the model matched by where from the data source.
operationId: HosCasereturn.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:
DashboardHospitalAwenCount:
properties:
...
...
@@ -51438,6 +51824,20 @@ definitions:
required:
- name
additionalProperties: false
HosCasereturn:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 5
type: string
value:
type: number
format: double
required:
- name
additionalProperties: false
basePath: /api/ruipeng
swagger: '2.0'
info:
This diff is collapsed.
Click to expand it.
server/model-config.json
View file @
4e9b933e
...
...
@@ -524,5 +524,9 @@
"HosMeirong"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
},
"HosCasereturn"
:
{
"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