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
ef281ae4
Commit
ef281ae4
authored
5 years ago
by
余海军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
2ed74b30
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
452 additions
and
0 deletions
+452
-0
ruipeng-test.js
common/models/ruipeng-test.js
+5
-0
ruipeng-test.json
common/models/ruipeng-test.json
+48
-0
RuiPengLoopbackApi.yaml
definitions/RuiPengLoopbackApi.yaml
+395
-0
model-config.json
server/model-config.json
+4
-0
No files found.
common/models/ruipeng-test.js
0 → 100644
View file @
ef281ae4
'use strict'
;
module
.
exports
=
function
(
Ruipengtest
)
{
};
This diff is collapsed.
Click to expand it.
common/models/ruipeng-test.json
0 → 100644
View file @
ef281ae4
{
"name"
:
"RuipengTest"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
"validateUpsert"
:
true
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"ruipeng_test"
},
"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"
:
false
,
"length"
:
255
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"name"
,
"dataType"
:
"varchar"
,
"dataLength"
:
255
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
}
},
"validations"
:
[],
"relations"
:
{},
"acls"
:
[],
"methods"
:
{}
}
This diff is collapsed.
Click to expand it.
definitions/RuiPengLoopbackApi.yaml
View file @
ef281ae4
...
@@ -36352,6 +36352,392 @@ paths:
...
@@ -36352,6 +36352,392 @@ paths:
type: number
type: number
format: double
format: double
deprecated: false
deprecated: false
/RuipengTests:
post:
tags:
- RuipengTest
summary: Create a new instance of the model and persist it into the data source.
operationId: RuipengTest.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/RuipengTest'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/RuipengTest'
deprecated: false
patch:
tags:
- RuipengTest
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: RuipengTest.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/RuipengTest'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/RuipengTest'
deprecated: false
put:
tags:
- RuipengTest
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: RuipengTest.replaceOrCreate__put_RuipengTests
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/RuipengTest'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/RuipengTest'
deprecated: false
get:
tags:
- RuipengTest
summary: Find all instances of the model matched by filter from the data source.
operationId: RuipengTest.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/RuipengTest'
deprecated: false
/RuipengTests/replaceOrCreate:
post:
tags:
- RuipengTest
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: RuipengTest.replaceOrCreate__post_RuipengTests_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/RuipengTest'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/RuipengTest'
deprecated: false
/RuipengTests/upsertWithWhere:
post:
tags:
- RuipengTest
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: RuipengTest.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/RuipengTest'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/RuipengTest'
deprecated: false
'/RuipengTests/{id}/exists':
get:
tags:
- RuipengTest
summary: Check whether a model instance exists in the data source.
operationId: 'RuipengTest.exists__get_RuipengTests_{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
'/RuipengTests/{id}':
head:
tags:
- RuipengTest
summary: Check whether a model instance exists in the data source.
operationId: 'RuipengTest.exists__head_RuipengTests_{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:
- RuipengTest
summary: 'Find a model instance by {{id}} from the data source.'
operationId: RuipengTest.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/RuipengTest'
deprecated: false
put:
tags:
- RuipengTest
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'RuipengTest.replaceById__put_RuipengTests_{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/RuipengTest'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/RuipengTest'
deprecated: false
delete:
tags:
- RuipengTest
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: RuipengTest.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:
- RuipengTest
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: RuipengTest.prototype.patchAttributes
parameters:
- name: id
in: path
description: RuipengTest 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/RuipengTest'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/RuipengTest'
deprecated: false
'/RuipengTests/{id}/replace':
post:
tags:
- RuipengTest
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'RuipengTest.replaceById__post_RuipengTests_{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/RuipengTest'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/RuipengTest'
deprecated: false
/RuipengTests/findOne:
get:
tags:
- RuipengTest
summary: Find first instance of the model matched by filter from the data source.
operationId: RuipengTest.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/RuipengTest'
deprecated: false
/RuipengTests/update:
post:
tags:
- RuipengTest
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: RuipengTest.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/RuipengTest'
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
/RuipengTests/count:
get:
tags:
- RuipengTest
summary: Count instances of the model matched by where from the data source.
operationId: RuipengTest.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:
...
@@ -37870,6 +38256,15 @@ definitions:
...
@@ -37870,6 +38256,15 @@ definitions:
maxLength: 45
maxLength: 45
type: string
type: string
additionalProperties: false
additionalProperties: false
RuipengTest:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 255
type: string
additionalProperties: false
basePath: /api/ruipeng
basePath: /api/ruipeng
swagger: '2.0'
swagger: '2.0'
info:
info:
This diff is collapsed.
Click to expand it.
server/model-config.json
View file @
ef281ae4
...
@@ -388,5 +388,9 @@
...
@@ -388,5 +388,9 @@
"MapCity"
:
{
"MapCity"
:
{
"dataSource"
:
"ruipeng"
,
"dataSource"
:
"ruipeng"
,
"public"
:
true
"public"
:
true
},
"RuipengTest"
:
{
"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