Commit 8a90f649 authored by 余海军's avatar 余海军

ad

parent f6b24e47
'use strict';
module.exports = function(Anotherflownum) {
};
{
"name": "AnotherFlownum",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "another_flownum"
},
"properties": {
"id": {
"type": "String",
"required": false,
"length": 36,
"precision": null,
"scale": null,
"mysql": {
"columnName": "id",
"dataType": "varchar",
"dataLength": 36,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"name": {
"type": "String",
"required": true,
"length": 5,
"precision": null,
"scale": null,
"mysql": {
"columnName": "name",
"dataType": "varchar",
"dataLength": 5,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"value": {
"type": "Number",
"required": false,
"length": null,
"precision": 41,
"scale": 0,
"mysql": {
"columnName": "value",
"dataType": "decimal",
"dataLength": null,
"dataPrecision": 41,
"dataScale": 0,
"nullable": "Y"
}
},
"clinicName": {
"type": "String",
"required": false,
"length": 102,
"precision": null,
"scale": null,
"mysql": {
"columnName": "clinic_name",
"dataType": "varchar",
"dataLength": 102,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
...@@ -75362,6 +75362,392 @@ paths: ...@@ -75362,6 +75362,392 @@ paths:
type: number type: number
format: double format: double
deprecated: false deprecated: false
/AnotherFlownums:
post:
tags:
- AnotherFlownum
summary: Create a new instance of the model and persist it into the data source.
operationId: AnotherFlownum.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/AnotherFlownum'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherFlownum'
deprecated: false
patch:
tags:
- AnotherFlownum
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: AnotherFlownum.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/AnotherFlownum'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherFlownum'
deprecated: false
put:
tags:
- AnotherFlownum
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: AnotherFlownum.replaceOrCreate__put_AnotherFlownums
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/AnotherFlownum'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherFlownum'
deprecated: false
get:
tags:
- AnotherFlownum
summary: Find all instances of the model matched by filter from the data source.
operationId: AnotherFlownum.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/AnotherFlownum'
deprecated: false
/AnotherFlownums/replaceOrCreate:
post:
tags:
- AnotherFlownum
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: AnotherFlownum.replaceOrCreate__post_AnotherFlownums_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/AnotherFlownum'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherFlownum'
deprecated: false
/AnotherFlownums/upsertWithWhere:
post:
tags:
- AnotherFlownum
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: AnotherFlownum.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/AnotherFlownum'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherFlownum'
deprecated: false
'/AnotherFlownums/{id}/exists':
get:
tags:
- AnotherFlownum
summary: Check whether a model instance exists in the data source.
operationId: 'AnotherFlownum.exists__get_AnotherFlownums_{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
'/AnotherFlownums/{id}':
head:
tags:
- AnotherFlownum
summary: Check whether a model instance exists in the data source.
operationId: 'AnotherFlownum.exists__head_AnotherFlownums_{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:
- AnotherFlownum
summary: 'Find a model instance by {{id}} from the data source.'
operationId: AnotherFlownum.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/AnotherFlownum'
deprecated: false
put:
tags:
- AnotherFlownum
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'AnotherFlownum.replaceById__put_AnotherFlownums_{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/AnotherFlownum'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherFlownum'
deprecated: false
delete:
tags:
- AnotherFlownum
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: AnotherFlownum.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:
- AnotherFlownum
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: AnotherFlownum.prototype.patchAttributes
parameters:
- name: id
in: path
description: AnotherFlownum 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/AnotherFlownum'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherFlownum'
deprecated: false
'/AnotherFlownums/{id}/replace':
post:
tags:
- AnotherFlownum
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'AnotherFlownum.replaceById__post_AnotherFlownums_{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/AnotherFlownum'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/AnotherFlownum'
deprecated: false
/AnotherFlownums/findOne:
get:
tags:
- AnotherFlownum
summary: Find first instance of the model matched by filter from the data source.
operationId: AnotherFlownum.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/AnotherFlownum'
deprecated: false
/AnotherFlownums/update:
post:
tags:
- AnotherFlownum
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: AnotherFlownum.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/AnotherFlownum'
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
/AnotherFlownums/count:
get:
tags:
- AnotherFlownum
summary: Count instances of the model matched by where from the data source.
operationId: AnotherFlownum.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:
...@@ -78523,6 +78909,23 @@ definitions: ...@@ -78523,6 +78909,23 @@ definitions:
type: number type: number
format: double format: double
additionalProperties: false additionalProperties: false
AnotherFlownum:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 5
type: string
value:
type: number
format: double
clinicName:
maxLength: 102
type: string
required:
- name
additionalProperties: false
basePath: /api/ruipeng basePath: /api/ruipeng
swagger: '2.0' swagger: '2.0'
info: info:
...@@ -792,5 +792,9 @@ ...@@ -792,5 +792,9 @@
"AnotherClientsource": { "AnotherClientsource": {
"dataSource": "ruipeng", "dataSource": "ruipeng",
"public": true "public": true
},
"AnotherFlownum": {
"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