Commit 8083c6b9 authored by 余海军's avatar 余海军

add

parent 2d65a436
'use strict';
module.exports = function(Maincompanyarea) {
};
{
"name": "MainCompanyarea",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "main_companyarea"
},
"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"
}
},
"value": {
"type": "String",
"required": true,
"length": 255,
"precision": null,
"scale": null,
"mysql": {
"columnName": "value",
"dataType": "varchar",
"dataLength": 255,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
swagger: '2.0'
info:
x-ibm-name: ruipengloopbackapi
version: 1.0.0
title: RuiPengLoopbackApi
schemes:
- https
host: $(catalog.host)
basePath: /api
consumes:
- application/json
produces:
- application/json
securityDefinitions:
clientIdHeader:
type: apiKey
in: header
name: X-IBM-Client-Id
clientSecretHeader:
in: "header"
name: "X-IBM-Client-Secret"
type: "apiKey"
security:
-
clientIdHeader: []
clientSecretHeader: []
x-ibm-configuration:
testable: true
enforced: true
cors:
enabled: true
catalogs:
apic-dev:
properties:
runtime-url: $(TARGET_URL)
sb:
properties:
runtime-url: 'http://localhost:4001'
assembly:
execute:
- invoke:
target-url: $(runtime-url)$(request.path)$(request.search)
paths: paths:
/DashboardHospitalAwenCounts: /DashboardHospitalAwenCounts:
post: post:
...@@ -32542,8 +32492,392 @@ paths: ...@@ -32542,8 +32492,392 @@ paths:
type: number type: number
format: double format: double
deprecated: false deprecated: false
/MainCompanyareas:
post:
tags:
- MainCompanyarea
summary: Create a new instance of the model and persist it into the data source.
operationId: MainCompanyarea.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainCompanyarea'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainCompanyarea'
deprecated: false
patch:
tags:
- MainCompanyarea
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: MainCompanyarea.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainCompanyarea'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainCompanyarea'
deprecated: false
put:
tags:
- MainCompanyarea
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: MainCompanyarea.replaceOrCreate__put_MainCompanyareas
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainCompanyarea'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainCompanyarea'
deprecated: false
get:
tags:
- MainCompanyarea
summary: Find all instances of the model matched by filter from the data source.
operationId: MainCompanyarea.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/MainCompanyarea'
deprecated: false
/MainCompanyareas/replaceOrCreate:
post:
tags:
- MainCompanyarea
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: MainCompanyarea.replaceOrCreate__post_MainCompanyareas_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainCompanyarea'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainCompanyarea'
deprecated: false
/MainCompanyareas/upsertWithWhere:
post:
tags:
- MainCompanyarea
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: MainCompanyarea.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/MainCompanyarea'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainCompanyarea'
deprecated: false
'/MainCompanyareas/{id}/exists':
get:
tags:
- MainCompanyarea
summary: Check whether a model instance exists in the data source.
operationId: 'MainCompanyarea.exists__get_MainCompanyareas_{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
'/MainCompanyareas/{id}':
head:
tags:
- MainCompanyarea
summary: Check whether a model instance exists in the data source.
operationId: 'MainCompanyarea.exists__head_MainCompanyareas_{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:
- MainCompanyarea
summary: 'Find a model instance by {{id}} from the data source.'
operationId: MainCompanyarea.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/MainCompanyarea'
deprecated: false
put:
tags:
- MainCompanyarea
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MainCompanyarea.replaceById__put_MainCompanyareas_{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/MainCompanyarea'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainCompanyarea'
deprecated: false
delete:
tags:
- MainCompanyarea
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: MainCompanyarea.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:
- MainCompanyarea
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: MainCompanyarea.prototype.patchAttributes
parameters:
- name: id
in: path
description: MainCompanyarea 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/MainCompanyarea'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainCompanyarea'
deprecated: false
'/MainCompanyareas/{id}/replace':
post:
tags:
- MainCompanyarea
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MainCompanyarea.replaceById__post_MainCompanyareas_{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/MainCompanyarea'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainCompanyarea'
deprecated: false
/MainCompanyareas/findOne:
get:
tags:
- MainCompanyarea
summary: Find first instance of the model matched by filter from the data source.
operationId: MainCompanyarea.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/MainCompanyarea'
deprecated: false
/MainCompanyareas/update:
post:
tags:
- MainCompanyarea
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: MainCompanyarea.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/MainCompanyarea'
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
/MainCompanyareas/count:
get:
tags:
- MainCompanyarea
summary: Count instances of the model matched by where from the data source.
operationId: MainCompanyarea.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:
...@@ -33904,4 +34238,58 @@ definitions: ...@@ -33904,4 +34238,58 @@ definitions:
required: required:
- value - value
additionalProperties: false additionalProperties: false
MainCompanyarea:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 255
type: string
value:
maxLength: 255
type: string
required:
- value
additionalProperties: false
basePath: /api/ruipeng
swagger: '2.0'
info:
x-ibm-name: ruipengloopbackapi
version: 1.0.0
title: RuiPengLoopbackApi
schemes:
- https
host: $(catalog.host)
consumes:
- application/json
produces:
- application/json
securityDefinitions:
clientIdHeader:
type: apiKey
in: header
name: X-IBM-Client-Id
clientSecretHeader:
in: header
name: X-IBM-Client-Secret
type: apiKey
security:
- clientIdHeader: []
clientSecretHeader: []
x-ibm-configuration:
testable: true
enforced: true
cors:
enabled: true
catalogs:
apic-dev:
properties:
runtime-url: $(TARGET_URL)
sb:
properties:
runtime-url: 'http://localhost:4001'
assembly:
execute:
- invoke:
target-url: $(runtime-url)$(request.path)$(request.search)
...@@ -348,5 +348,9 @@ ...@@ -348,5 +348,9 @@
"MainBillbrand": { "MainBillbrand": {
"dataSource": "ruipeng", "dataSource": "ruipeng",
"public": true "public": true
},
"MainCompanyarea": {
"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