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
01362cf6
Commit
01362cf6
authored
Sep 18, 2019
by
余海军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
672756af
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
1811 additions
and
0 deletions
+1811
-0
hos-thismonthfirst.js
common/models/hos-thismonthfirst.js
+5
-0
hos-thismonthfirst.json
common/models/hos-thismonthfirst.json
+48
-0
hos-thismonthsecond.js
common/models/hos-thismonthsecond.js
+5
-0
hos-thismonthsecond.json
common/models/hos-thismonthsecond.json
+48
-0
hos-thisyearfirst.js
common/models/hos-thisyearfirst.js
+5
-0
hos-thisyearfirst.json
common/models/hos-thisyearfirst.json
+48
-0
hos-thisyearsecond.js
common/models/hos-thisyearsecond.js
+5
-0
hos-thisyearsecond.json
common/models/hos-thisyearsecond.json
+48
-0
RuiPengLoopbackApi.yaml
definitions/RuiPengLoopbackApi.yaml
+1583
-0
model-config.json
server/model-config.json
+16
-0
No files found.
common/models/hos-thismonthfirst.js
0 → 100644
View file @
01362cf6
'use strict'
;
module
.
exports
=
function
(
Hosthismonthfirst
)
{
};
common/models/hos-thismonthfirst.json
0 → 100644
View file @
01362cf6
{
"name"
:
"HosThismonthfirst"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
"validateUpsert"
:
true
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"hos_thismonthfirst"
},
"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"
}
},
"value"
:
{
"type"
:
"Number"
,
"required"
:
false
,
"length"
:
null
,
"precision"
:
41
,
"scale"
:
0
,
"mysql"
:
{
"columnName"
:
"value"
,
"dataType"
:
"decimal"
,
"dataLength"
:
null
,
"dataPrecision"
:
41
,
"dataScale"
:
0
,
"nullable"
:
"Y"
}
}
},
"validations"
:
[],
"relations"
:
{},
"acls"
:
[],
"methods"
:
{}
}
common/models/hos-thismonthsecond.js
0 → 100644
View file @
01362cf6
'use strict'
;
module
.
exports
=
function
(
Hosthismonthsecond
)
{
};
common/models/hos-thismonthsecond.json
0 → 100644
View file @
01362cf6
{
"name"
:
"HosThismonthsecond"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
"validateUpsert"
:
true
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"hos_thismonthsecond"
},
"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"
}
},
"value"
:
{
"type"
:
"Number"
,
"required"
:
false
,
"length"
:
null
,
"precision"
:
41
,
"scale"
:
0
,
"mysql"
:
{
"columnName"
:
"value"
,
"dataType"
:
"decimal"
,
"dataLength"
:
null
,
"dataPrecision"
:
41
,
"dataScale"
:
0
,
"nullable"
:
"Y"
}
}
},
"validations"
:
[],
"relations"
:
{},
"acls"
:
[],
"methods"
:
{}
}
common/models/hos-thisyearfirst.js
0 → 100644
View file @
01362cf6
'use strict'
;
module
.
exports
=
function
(
Hosthisyearfirst
)
{
};
common/models/hos-thisyearfirst.json
0 → 100644
View file @
01362cf6
{
"name"
:
"HosThisyearfirst"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
"validateUpsert"
:
true
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"hos_thisyearfirst"
},
"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"
}
},
"value"
:
{
"type"
:
"Number"
,
"required"
:
false
,
"length"
:
null
,
"precision"
:
41
,
"scale"
:
0
,
"mysql"
:
{
"columnName"
:
"value"
,
"dataType"
:
"decimal"
,
"dataLength"
:
null
,
"dataPrecision"
:
41
,
"dataScale"
:
0
,
"nullable"
:
"Y"
}
}
},
"validations"
:
[],
"relations"
:
{},
"acls"
:
[],
"methods"
:
{}
}
common/models/hos-thisyearsecond.js
0 → 100644
View file @
01362cf6
'use strict'
;
module
.
exports
=
function
(
Hosthisyearsecond
)
{
};
common/models/hos-thisyearsecond.json
0 → 100644
View file @
01362cf6
{
"name"
:
"HosThisyearsecond"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
"validateUpsert"
:
true
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"hos_thisyearsecond"
},
"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"
}
},
"value"
:
{
"type"
:
"Number"
,
"required"
:
false
,
"length"
:
null
,
"precision"
:
41
,
"scale"
:
0
,
"mysql"
:
{
"columnName"
:
"value"
,
"dataType"
:
"decimal"
,
"dataLength"
:
null
,
"dataPrecision"
:
41
,
"dataScale"
:
0
,
"nullable"
:
"Y"
}
}
},
"validations"
:
[],
"relations"
:
{},
"acls"
:
[],
"methods"
:
{}
}
definitions/RuiPengLoopbackApi.yaml
View file @
01362cf6
...
@@ -45616,6 +45616,1553 @@ paths:
...
@@ -45616,6 +45616,1553 @@ paths:
type: number
type: number
format: double
format: double
deprecated: false
deprecated: false
/HosThismonthfirsts:
post:
tags:
- HosThismonthfirst
summary: Create a new instance of the model and persist it into the data source.
operationId: HosThismonthfirst.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosThismonthfirst'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThismonthfirst'
deprecated: false
patch:
tags:
- HosThismonthfirst
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: HosThismonthfirst.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosThismonthfirst'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThismonthfirst'
deprecated: false
put:
tags:
- HosThismonthfirst
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosThismonthfirst.replaceOrCreate__put_HosThismonthfirsts
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosThismonthfirst'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThismonthfirst'
deprecated: false
get:
tags:
- HosThismonthfirst
summary: Find all instances of the model matched by filter from the data source.
operationId: HosThismonthfirst.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/HosThismonthfirst'
deprecated: false
/HosThismonthfirsts/replaceOrCreate:
post:
tags:
- HosThismonthfirst
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: >-
HosThismonthfirst.replaceOrCreate__post_HosThismonthfirsts_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosThismonthfirst'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThismonthfirst'
deprecated: false
/HosThismonthfirsts/upsertWithWhere:
post:
tags:
- HosThismonthfirst
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: HosThismonthfirst.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/HosThismonthfirst'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThismonthfirst'
deprecated: false
'/HosThismonthfirsts/{id}/exists':
get:
tags:
- HosThismonthfirst
summary: Check whether a model instance exists in the data source.
operationId: 'HosThismonthfirst.exists__get_HosThismonthfirsts_{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
'/HosThismonthfirsts/{id}':
head:
tags:
- HosThismonthfirst
summary: Check whether a model instance exists in the data source.
operationId: 'HosThismonthfirst.exists__head_HosThismonthfirsts_{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:
- HosThismonthfirst
summary: 'Find a model instance by {{id}} from the data source.'
operationId: HosThismonthfirst.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/HosThismonthfirst'
deprecated: false
put:
tags:
- HosThismonthfirst
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosThismonthfirst.replaceById__put_HosThismonthfirsts_{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/HosThismonthfirst'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThismonthfirst'
deprecated: false
delete:
tags:
- HosThismonthfirst
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: HosThismonthfirst.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:
- HosThismonthfirst
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: HosThismonthfirst.prototype.patchAttributes
parameters:
- name: id
in: path
description: HosThismonthfirst 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/HosThismonthfirst'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThismonthfirst'
deprecated: false
'/HosThismonthfirsts/{id}/replace':
post:
tags:
- HosThismonthfirst
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosThismonthfirst.replaceById__post_HosThismonthfirsts_{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/HosThismonthfirst'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThismonthfirst'
deprecated: false
/HosThismonthfirsts/findOne:
get:
tags:
- HosThismonthfirst
summary: Find first instance of the model matched by filter from the data source.
operationId: HosThismonthfirst.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/HosThismonthfirst'
deprecated: false
/HosThismonthfirsts/update:
post:
tags:
- HosThismonthfirst
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: HosThismonthfirst.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/HosThismonthfirst'
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
/HosThismonthfirsts/count:
get:
tags:
- HosThismonthfirst
summary: Count instances of the model matched by where from the data source.
operationId: HosThismonthfirst.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
/HosThismonthseconds:
post:
tags:
- HosThismonthsecond
summary: Create a new instance of the model and persist it into the data source.
operationId: HosThismonthsecond.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosThismonthsecond'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThismonthsecond'
deprecated: false
patch:
tags:
- HosThismonthsecond
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: HosThismonthsecond.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosThismonthsecond'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThismonthsecond'
deprecated: false
put:
tags:
- HosThismonthsecond
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosThismonthsecond.replaceOrCreate__put_HosThismonthseconds
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosThismonthsecond'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThismonthsecond'
deprecated: false
get:
tags:
- HosThismonthsecond
summary: Find all instances of the model matched by filter from the data source.
operationId: HosThismonthsecond.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/HosThismonthsecond'
deprecated: false
/HosThismonthseconds/replaceOrCreate:
post:
tags:
- HosThismonthsecond
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: >-
HosThismonthsecond.replaceOrCreate__post_HosThismonthseconds_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosThismonthsecond'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThismonthsecond'
deprecated: false
/HosThismonthseconds/upsertWithWhere:
post:
tags:
- HosThismonthsecond
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: HosThismonthsecond.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/HosThismonthsecond'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThismonthsecond'
deprecated: false
'/HosThismonthseconds/{id}/exists':
get:
tags:
- HosThismonthsecond
summary: Check whether a model instance exists in the data source.
operationId: 'HosThismonthsecond.exists__get_HosThismonthseconds_{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
'/HosThismonthseconds/{id}':
head:
tags:
- HosThismonthsecond
summary: Check whether a model instance exists in the data source.
operationId: 'HosThismonthsecond.exists__head_HosThismonthseconds_{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:
- HosThismonthsecond
summary: 'Find a model instance by {{id}} from the data source.'
operationId: HosThismonthsecond.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/HosThismonthsecond'
deprecated: false
put:
tags:
- HosThismonthsecond
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosThismonthsecond.replaceById__put_HosThismonthseconds_{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/HosThismonthsecond'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThismonthsecond'
deprecated: false
delete:
tags:
- HosThismonthsecond
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: HosThismonthsecond.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:
- HosThismonthsecond
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: HosThismonthsecond.prototype.patchAttributes
parameters:
- name: id
in: path
description: HosThismonthsecond 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/HosThismonthsecond'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThismonthsecond'
deprecated: false
'/HosThismonthseconds/{id}/replace':
post:
tags:
- HosThismonthsecond
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosThismonthsecond.replaceById__post_HosThismonthseconds_{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/HosThismonthsecond'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThismonthsecond'
deprecated: false
/HosThismonthseconds/findOne:
get:
tags:
- HosThismonthsecond
summary: Find first instance of the model matched by filter from the data source.
operationId: HosThismonthsecond.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/HosThismonthsecond'
deprecated: false
/HosThismonthseconds/update:
post:
tags:
- HosThismonthsecond
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: HosThismonthsecond.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/HosThismonthsecond'
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
/HosThismonthseconds/count:
get:
tags:
- HosThismonthsecond
summary: Count instances of the model matched by where from the data source.
operationId: HosThismonthsecond.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
/HosThisyearseconds:
post:
tags:
- HosThisyearsecond
summary: Create a new instance of the model and persist it into the data source.
operationId: HosThisyearsecond.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosThisyearsecond'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearsecond'
deprecated: false
patch:
tags:
- HosThisyearsecond
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: HosThisyearsecond.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosThisyearsecond'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearsecond'
deprecated: false
put:
tags:
- HosThisyearsecond
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosThisyearsecond.replaceOrCreate__put_HosThisyearseconds
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosThisyearsecond'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearsecond'
deprecated: false
get:
tags:
- HosThisyearsecond
summary: Find all instances of the model matched by filter from the data source.
operationId: HosThisyearsecond.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/HosThisyearsecond'
deprecated: false
/HosThisyearseconds/replaceOrCreate:
post:
tags:
- HosThisyearsecond
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: >-
HosThisyearsecond.replaceOrCreate__post_HosThisyearseconds_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosThisyearsecond'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearsecond'
deprecated: false
/HosThisyearseconds/upsertWithWhere:
post:
tags:
- HosThisyearsecond
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: HosThisyearsecond.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/HosThisyearsecond'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearsecond'
deprecated: false
'/HosThisyearseconds/{id}/exists':
get:
tags:
- HosThisyearsecond
summary: Check whether a model instance exists in the data source.
operationId: 'HosThisyearsecond.exists__get_HosThisyearseconds_{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
'/HosThisyearseconds/{id}':
head:
tags:
- HosThisyearsecond
summary: Check whether a model instance exists in the data source.
operationId: 'HosThisyearsecond.exists__head_HosThisyearseconds_{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:
- HosThisyearsecond
summary: 'Find a model instance by {{id}} from the data source.'
operationId: HosThisyearsecond.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/HosThisyearsecond'
deprecated: false
put:
tags:
- HosThisyearsecond
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosThisyearsecond.replaceById__put_HosThisyearseconds_{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/HosThisyearsecond'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearsecond'
deprecated: false
delete:
tags:
- HosThisyearsecond
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: HosThisyearsecond.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:
- HosThisyearsecond
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: HosThisyearsecond.prototype.patchAttributes
parameters:
- name: id
in: path
description: HosThisyearsecond 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/HosThisyearsecond'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearsecond'
deprecated: false
'/HosThisyearseconds/{id}/replace':
post:
tags:
- HosThisyearsecond
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosThisyearsecond.replaceById__post_HosThisyearseconds_{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/HosThisyearsecond'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearsecond'
deprecated: false
/HosThisyearseconds/findOne:
get:
tags:
- HosThisyearsecond
summary: Find first instance of the model matched by filter from the data source.
operationId: HosThisyearsecond.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/HosThisyearsecond'
deprecated: false
/HosThisyearseconds/update:
post:
tags:
- HosThisyearsecond
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: HosThisyearsecond.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/HosThisyearsecond'
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
/HosThisyearseconds/count:
get:
tags:
- HosThisyearsecond
summary: Count instances of the model matched by where from the data source.
operationId: HosThisyearsecond.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
/HosThisyearfirsts:
post:
tags:
- HosThisyearfirst
summary: Create a new instance of the model and persist it into the data source.
operationId: HosThisyearfirst.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosThisyearfirst'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearfirst'
deprecated: false
patch:
tags:
- HosThisyearfirst
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: HosThisyearfirst.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosThisyearfirst'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearfirst'
deprecated: false
put:
tags:
- HosThisyearfirst
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosThisyearfirst.replaceOrCreate__put_HosThisyearfirsts
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosThisyearfirst'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearfirst'
deprecated: false
get:
tags:
- HosThisyearfirst
summary: Find all instances of the model matched by filter from the data source.
operationId: HosThisyearfirst.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/HosThisyearfirst'
deprecated: false
/HosThisyearfirsts/replaceOrCreate:
post:
tags:
- HosThisyearfirst
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosThisyearfirst.replaceOrCreate__post_HosThisyearfirsts_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosThisyearfirst'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearfirst'
deprecated: false
/HosThisyearfirsts/upsertWithWhere:
post:
tags:
- HosThisyearfirst
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: HosThisyearfirst.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/HosThisyearfirst'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearfirst'
deprecated: false
'/HosThisyearfirsts/{id}/exists':
get:
tags:
- HosThisyearfirst
summary: Check whether a model instance exists in the data source.
operationId: 'HosThisyearfirst.exists__get_HosThisyearfirsts_{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
'/HosThisyearfirsts/{id}':
head:
tags:
- HosThisyearfirst
summary: Check whether a model instance exists in the data source.
operationId: 'HosThisyearfirst.exists__head_HosThisyearfirsts_{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:
- HosThisyearfirst
summary: 'Find a model instance by {{id}} from the data source.'
operationId: HosThisyearfirst.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/HosThisyearfirst'
deprecated: false
put:
tags:
- HosThisyearfirst
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosThisyearfirst.replaceById__put_HosThisyearfirsts_{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/HosThisyearfirst'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearfirst'
deprecated: false
delete:
tags:
- HosThisyearfirst
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: HosThisyearfirst.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:
- HosThisyearfirst
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: HosThisyearfirst.prototype.patchAttributes
parameters:
- name: id
in: path
description: HosThisyearfirst 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/HosThisyearfirst'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearfirst'
deprecated: false
'/HosThisyearfirsts/{id}/replace':
post:
tags:
- HosThisyearfirst
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosThisyearfirst.replaceById__post_HosThisyearfirsts_{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/HosThisyearfirst'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosThisyearfirst'
deprecated: false
/HosThisyearfirsts/findOne:
get:
tags:
- HosThisyearfirst
summary: Find first instance of the model matched by filter from the data source.
operationId: HosThisyearfirst.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/HosThisyearfirst'
deprecated: false
/HosThisyearfirsts/update:
post:
tags:
- HosThisyearfirst
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: HosThisyearfirst.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/HosThisyearfirst'
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
/HosThisyearfirsts/count:
get:
tags:
- HosThisyearfirst
summary: Count instances of the model matched by where from the data source.
operationId: HosThisyearfirst.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:
...
@@ -47455,6 +49002,42 @@ definitions:
...
@@ -47455,6 +49002,42 @@ definitions:
required:
required:
- name
- name
additionalProperties: false
additionalProperties: false
HosThismonthfirst:
properties:
id:
maxLength: 36
type: string
value:
type: number
format: double
additionalProperties: false
HosThismonthsecond:
properties:
id:
maxLength: 36
type: string
value:
type: number
format: double
additionalProperties: false
HosThisyearsecond:
properties:
id:
maxLength: 36
type: string
value:
type: number
format: double
additionalProperties: false
HosThisyearfirst:
properties:
id:
maxLength: 36
type: string
value:
type: number
format: double
additionalProperties: false
basePath: /api/ruipeng
basePath: /api/ruipeng
swagger: '2.0'
swagger: '2.0'
info:
info:
server/model-config.json
View file @
01362cf6
...
@@ -484,5 +484,21 @@
...
@@ -484,5 +484,21 @@
"HosFlownum"
:
{
"HosFlownum"
:
{
"dataSource"
:
"ruipeng"
,
"dataSource"
:
"ruipeng"
,
"public"
:
true
"public"
:
true
},
"HosThismonthfirst"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
},
"HosThismonthsecond"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
},
"HosThisyearsecond"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
},
"HosThisyearfirst"
:
{
"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