Commit b7fc8bf7 authored by 黄卓然's avatar 黄卓然

add

parent de026a5e
'use strict';
module.exports = function(Educbrowse1) {
};
{
"name": "EducBrowse1",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "educ_browse1"
},
"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": 13,
"precision": null,
"scale": null,
"mysql": {
"columnName": "name",
"dataType": "varchar",
"dataLength": 13,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"value": {
"type": "Number",
"required": false,
"length": null,
"precision": 11,
"scale": 2,
"mysql": {
"columnName": "value",
"dataType": "float",
"dataLength": null,
"dataPrecision": 11,
"dataScale": 2,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
'use strict';
module.exports = function(Educcourse4) {
};
{
"name": "EducCourse4",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "educ_course4"
},
"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": 13,
"precision": null,
"scale": null,
"mysql": {
"columnName": "name",
"dataType": "varchar",
"dataLength": 13,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"value": {
"type": "Number",
"required": false,
"length": null,
"precision": 11,
"scale": 2,
"mysql": {
"columnName": "value",
"dataType": "float",
"dataLength": null,
"dataPrecision": 11,
"dataScale": 2,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
...@@ -29791,6 +29791,778 @@ paths: ...@@ -29791,6 +29791,778 @@ paths:
type: number type: number
format: double format: double
deprecated: false deprecated: false
/EducCourse4s:
post:
tags:
- EducCourse4
summary: Create a new instance of the model and persist it into the data source.
operationId: EducCourse4.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/EducCourse4'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/EducCourse4'
deprecated: false
patch:
tags:
- EducCourse4
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: EducCourse4.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/EducCourse4'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/EducCourse4'
deprecated: false
put:
tags:
- EducCourse4
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: EducCourse4.replaceOrCreate__put_EducCourse4s
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/EducCourse4'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/EducCourse4'
deprecated: false
get:
tags:
- EducCourse4
summary: Find all instances of the model matched by filter from the data source.
operationId: EducCourse4.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/EducCourse4'
deprecated: false
/EducCourse4s/replaceOrCreate:
post:
tags:
- EducCourse4
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: EducCourse4.replaceOrCreate__post_EducCourse4s_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/EducCourse4'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/EducCourse4'
deprecated: false
/EducCourse4s/upsertWithWhere:
post:
tags:
- EducCourse4
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: EducCourse4.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/EducCourse4'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/EducCourse4'
deprecated: false
'/EducCourse4s/{id}/exists':
get:
tags:
- EducCourse4
summary: Check whether a model instance exists in the data source.
operationId: 'EducCourse4.exists__get_EducCourse4s_{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
'/EducCourse4s/{id}':
head:
tags:
- EducCourse4
summary: Check whether a model instance exists in the data source.
operationId: 'EducCourse4.exists__head_EducCourse4s_{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:
- EducCourse4
summary: 'Find a model instance by {{id}} from the data source.'
operationId: EducCourse4.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/EducCourse4'
deprecated: false
put:
tags:
- EducCourse4
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'EducCourse4.replaceById__put_EducCourse4s_{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/EducCourse4'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/EducCourse4'
deprecated: false
delete:
tags:
- EducCourse4
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: EducCourse4.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:
- EducCourse4
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: EducCourse4.prototype.patchAttributes
parameters:
- name: id
in: path
description: EducCourse4 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/EducCourse4'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/EducCourse4'
deprecated: false
'/EducCourse4s/{id}/replace':
post:
tags:
- EducCourse4
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'EducCourse4.replaceById__post_EducCourse4s_{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/EducCourse4'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/EducCourse4'
deprecated: false
/EducCourse4s/findOne:
get:
tags:
- EducCourse4
summary: Find first instance of the model matched by filter from the data source.
operationId: EducCourse4.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/EducCourse4'
deprecated: false
/EducCourse4s/update:
post:
tags:
- EducCourse4
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: EducCourse4.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/EducCourse4'
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
/EducCourse4s/count:
get:
tags:
- EducCourse4
summary: Count instances of the model matched by where from the data source.
operationId: EducCourse4.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
/EducBrowse1s:
post:
tags:
- EducBrowse1
summary: Create a new instance of the model and persist it into the data source.
operationId: EducBrowse1.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/EducBrowse1'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/EducBrowse1'
deprecated: false
patch:
tags:
- EducBrowse1
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: EducBrowse1.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/EducBrowse1'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/EducBrowse1'
deprecated: false
put:
tags:
- EducBrowse1
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: EducBrowse1.replaceOrCreate__put_EducBrowse1s
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/EducBrowse1'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/EducBrowse1'
deprecated: false
get:
tags:
- EducBrowse1
summary: Find all instances of the model matched by filter from the data source.
operationId: EducBrowse1.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/EducBrowse1'
deprecated: false
/EducBrowse1s/replaceOrCreate:
post:
tags:
- EducBrowse1
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: EducBrowse1.replaceOrCreate__post_EducBrowse1s_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/EducBrowse1'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/EducBrowse1'
deprecated: false
/EducBrowse1s/upsertWithWhere:
post:
tags:
- EducBrowse1
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: EducBrowse1.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/EducBrowse1'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/EducBrowse1'
deprecated: false
'/EducBrowse1s/{id}/exists':
get:
tags:
- EducBrowse1
summary: Check whether a model instance exists in the data source.
operationId: 'EducBrowse1.exists__get_EducBrowse1s_{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
'/EducBrowse1s/{id}':
head:
tags:
- EducBrowse1
summary: Check whether a model instance exists in the data source.
operationId: 'EducBrowse1.exists__head_EducBrowse1s_{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:
- EducBrowse1
summary: 'Find a model instance by {{id}} from the data source.'
operationId: EducBrowse1.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/EducBrowse1'
deprecated: false
put:
tags:
- EducBrowse1
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'EducBrowse1.replaceById__put_EducBrowse1s_{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/EducBrowse1'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/EducBrowse1'
deprecated: false
delete:
tags:
- EducBrowse1
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: EducBrowse1.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:
- EducBrowse1
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: EducBrowse1.prototype.patchAttributes
parameters:
- name: id
in: path
description: EducBrowse1 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/EducBrowse1'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/EducBrowse1'
deprecated: false
'/EducBrowse1s/{id}/replace':
post:
tags:
- EducBrowse1
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'EducBrowse1.replaceById__post_EducBrowse1s_{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/EducBrowse1'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/EducBrowse1'
deprecated: false
/EducBrowse1s/findOne:
get:
tags:
- EducBrowse1
summary: Find first instance of the model matched by filter from the data source.
operationId: EducBrowse1.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/EducBrowse1'
deprecated: false
/EducBrowse1s/update:
post:
tags:
- EducBrowse1
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: EducBrowse1.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/EducBrowse1'
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
/EducBrowse1s/count:
get:
tags:
- EducBrowse1
summary: Count instances of the model matched by where from the data source.
operationId: EducBrowse1.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:
...@@ -31051,6 +31823,34 @@ definitions: ...@@ -31051,6 +31823,34 @@ definitions:
required: required:
- name - name
additionalProperties: false additionalProperties: false
EducCourse4:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 13
type: string
value:
type: number
format: double
required:
- name
additionalProperties: false
EducBrowse1:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 13
type: string
value:
type: number
format: double
required:
- name
additionalProperties: false
basePath: /api/ruipeng basePath: /api/ruipeng
swagger: '2.0' swagger: '2.0'
info: info:
......
...@@ -320,5 +320,13 @@ ...@@ -320,5 +320,13 @@
"HosThisyearbudget": { "HosThisyearbudget": {
"dataSource": "ruipeng", "dataSource": "ruipeng",
"public": true "public": true
},
"EducCourse4": {
"dataSource": "ruipeng",
"public": true
},
"EducBrowse1": {
"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