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
337d2228
Commit
337d2228
authored
5 years ago
by
余海军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
a86117a8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
831 additions
and
0 deletions
+831
-0
bill-shop.json
common/models/bill-shop.json
+15
-0
RuiPengLoopbackApi.yaml
definitions/RuiPengLoopbackApi.yaml
+812
-0
model-config.json
server/model-config.json
+4
-0
No files found.
common/models/bill-shop.json
View file @
337d2228
...
@@ -10,6 +10,21 @@
...
@@ -10,6 +10,21 @@
"table"
:
"bill_shop"
"table"
:
"bill_shop"
},
},
"properties"
:
{
"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"
:
{
"name"
:
{
"type"
:
"String"
,
"type"
:
"String"
,
"required"
:
false
,
"required"
:
false
,
...
...
This diff is collapsed.
Click to expand it.
definitions/RuiPengLoopbackApi.yaml
View file @
337d2228
...
@@ -64151,6 +64151,778 @@ paths:
...
@@ -64151,6 +64151,778 @@ paths:
type: number
type: number
format: double
format: double
deprecated: false
deprecated: false
/BillCategories:
post:
tags:
- BillCategory
summary: Create a new instance of the model and persist it into the data source.
operationId: BillCategory.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/BillCategory'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/BillCategory'
deprecated: false
patch:
tags:
- BillCategory
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: BillCategory.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/BillCategory'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/BillCategory'
deprecated: false
put:
tags:
- BillCategory
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: BillCategory.replaceOrCreate__put_BillCategories
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/BillCategory'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/BillCategory'
deprecated: false
get:
tags:
- BillCategory
summary: Find all instances of the model matched by filter from the data source.
operationId: BillCategory.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/BillCategory'
deprecated: false
/BillCategories/replaceOrCreate:
post:
tags:
- BillCategory
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: BillCategory.replaceOrCreate__post_BillCategories_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/BillCategory'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/BillCategory'
deprecated: false
/BillCategories/upsertWithWhere:
post:
tags:
- BillCategory
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: BillCategory.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/BillCategory'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/BillCategory'
deprecated: false
'/BillCategories/{id}/exists':
get:
tags:
- BillCategory
summary: Check whether a model instance exists in the data source.
operationId: 'BillCategory.exists__get_BillCategories_{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
'/BillCategories/{id}':
head:
tags:
- BillCategory
summary: Check whether a model instance exists in the data source.
operationId: 'BillCategory.exists__head_BillCategories_{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:
- BillCategory
summary: 'Find a model instance by {{id}} from the data source.'
operationId: BillCategory.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/BillCategory'
deprecated: false
put:
tags:
- BillCategory
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'BillCategory.replaceById__put_BillCategories_{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/BillCategory'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/BillCategory'
deprecated: false
delete:
tags:
- BillCategory
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: BillCategory.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:
- BillCategory
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: BillCategory.prototype.patchAttributes
parameters:
- name: id
in: path
description: BillCategory 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/BillCategory'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/BillCategory'
deprecated: false
'/BillCategories/{id}/replace':
post:
tags:
- BillCategory
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'BillCategory.replaceById__post_BillCategories_{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/BillCategory'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/BillCategory'
deprecated: false
/BillCategories/findOne:
get:
tags:
- BillCategory
summary: Find first instance of the model matched by filter from the data source.
operationId: BillCategory.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/BillCategory'
deprecated: false
/BillCategories/update:
post:
tags:
- BillCategory
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: BillCategory.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/BillCategory'
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
/BillCategories/count:
get:
tags:
- BillCategory
summary: Count instances of the model matched by where from the data source.
operationId: BillCategory.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
/BillShops:
post:
tags:
- BillShop
summary: Create a new instance of the model and persist it into the data source.
operationId: BillShop.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/BillShop'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/BillShop'
deprecated: false
patch:
tags:
- BillShop
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: BillShop.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/BillShop'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/BillShop'
deprecated: false
put:
tags:
- BillShop
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: BillShop.replaceOrCreate__put_BillShops
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/BillShop'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/BillShop'
deprecated: false
get:
tags:
- BillShop
summary: Find all instances of the model matched by filter from the data source.
operationId: BillShop.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/BillShop'
deprecated: false
/BillShops/replaceOrCreate:
post:
tags:
- BillShop
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: BillShop.replaceOrCreate__post_BillShops_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/BillShop'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/BillShop'
deprecated: false
/BillShops/upsertWithWhere:
post:
tags:
- BillShop
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: BillShop.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/BillShop'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/BillShop'
deprecated: false
'/BillShops/{id}/exists':
get:
tags:
- BillShop
summary: Check whether a model instance exists in the data source.
operationId: 'BillShop.exists__get_BillShops_{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
'/BillShops/{id}':
head:
tags:
- BillShop
summary: Check whether a model instance exists in the data source.
operationId: 'BillShop.exists__head_BillShops_{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:
- BillShop
summary: 'Find a model instance by {{id}} from the data source.'
operationId: BillShop.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/BillShop'
deprecated: false
put:
tags:
- BillShop
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'BillShop.replaceById__put_BillShops_{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/BillShop'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/BillShop'
deprecated: false
delete:
tags:
- BillShop
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: BillShop.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:
- BillShop
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: BillShop.prototype.patchAttributes
parameters:
- name: id
in: path
description: BillShop 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/BillShop'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/BillShop'
deprecated: false
'/BillShops/{id}/replace':
post:
tags:
- BillShop
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'BillShop.replaceById__post_BillShops_{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/BillShop'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/BillShop'
deprecated: false
/BillShops/findOne:
get:
tags:
- BillShop
summary: Find first instance of the model matched by filter from the data source.
operationId: BillShop.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/BillShop'
deprecated: false
/BillShops/update:
post:
tags:
- BillShop
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: BillShop.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/BillShop'
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
/BillShops/count:
get:
tags:
- BillShop
summary: Count instances of the model matched by where from the data source.
operationId: BillShop.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:
...
@@ -66656,6 +67428,46 @@ definitions:
...
@@ -66656,6 +67428,46 @@ definitions:
required:
required:
- year
- year
additionalProperties: false
additionalProperties: false
BillCategory:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 200
type: string
value1:
type: number
format: double
value2:
maxLength: 2
type: string
value3:
maxLength: 55
type: string
required:
- value2
additionalProperties: false
BillShop:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 200
type: string
value1:
type: number
format: double
value2:
maxLength: 2
type: string
value3:
maxLength: 55
type: string
required:
- value2
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 @
337d2228
...
@@ -680,5 +680,9 @@
...
@@ -680,5 +680,9 @@
"BillCategory"
:
{
"BillCategory"
:
{
"dataSource"
:
"ruipeng"
,
"dataSource"
:
"ruipeng"
,
"public"
:
true
"public"
:
true
},
"BillShop"
:
{
"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