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

add fanspublic

parent c5638f88
'use strict';
module.exports = function(Interfanspublic) {
};
{
"name": "InterFanspublic",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "inter_fanspublic"
},
"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": 6,
"precision": null,
"scale": null,
"mysql": {
"columnName": "name",
"dataType": "varchar",
"dataLength": 6,
"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": {}
}
...@@ -26701,6 +26701,392 @@ paths: ...@@ -26701,6 +26701,392 @@ paths:
type: number type: number
format: double format: double
deprecated: false deprecated: false
/InterFanspublics:
post:
tags:
- InterFanspublic
summary: Create a new instance of the model and persist it into the data source.
operationId: InterFanspublic.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterFanspublic'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterFanspublic'
deprecated: false
patch:
tags:
- InterFanspublic
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: InterFanspublic.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterFanspublic'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterFanspublic'
deprecated: false
put:
tags:
- InterFanspublic
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: InterFanspublic.replaceOrCreate__put_InterFanspublics
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterFanspublic'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterFanspublic'
deprecated: false
get:
tags:
- InterFanspublic
summary: Find all instances of the model matched by filter from the data source.
operationId: InterFanspublic.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/InterFanspublic'
deprecated: false
/InterFanspublics/replaceOrCreate:
post:
tags:
- InterFanspublic
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: InterFanspublic.replaceOrCreate__post_InterFanspublics_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterFanspublic'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterFanspublic'
deprecated: false
/InterFanspublics/upsertWithWhere:
post:
tags:
- InterFanspublic
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: InterFanspublic.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/InterFanspublic'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterFanspublic'
deprecated: false
'/InterFanspublics/{id}/exists':
get:
tags:
- InterFanspublic
summary: Check whether a model instance exists in the data source.
operationId: 'InterFanspublic.exists__get_InterFanspublics_{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
'/InterFanspublics/{id}':
head:
tags:
- InterFanspublic
summary: Check whether a model instance exists in the data source.
operationId: 'InterFanspublic.exists__head_InterFanspublics_{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:
- InterFanspublic
summary: 'Find a model instance by {{id}} from the data source.'
operationId: InterFanspublic.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/InterFanspublic'
deprecated: false
put:
tags:
- InterFanspublic
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'InterFanspublic.replaceById__put_InterFanspublics_{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/InterFanspublic'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterFanspublic'
deprecated: false
delete:
tags:
- InterFanspublic
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: InterFanspublic.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:
- InterFanspublic
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: InterFanspublic.prototype.patchAttributes
parameters:
- name: id
in: path
description: InterFanspublic 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/InterFanspublic'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterFanspublic'
deprecated: false
'/InterFanspublics/{id}/replace':
post:
tags:
- InterFanspublic
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'InterFanspublic.replaceById__post_InterFanspublics_{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/InterFanspublic'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterFanspublic'
deprecated: false
/InterFanspublics/findOne:
get:
tags:
- InterFanspublic
summary: Find first instance of the model matched by filter from the data source.
operationId: InterFanspublic.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/InterFanspublic'
deprecated: false
/InterFanspublics/update:
post:
tags:
- InterFanspublic
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: InterFanspublic.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/InterFanspublic'
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
/InterFanspublics/count:
get:
tags:
- InterFanspublic
summary: Count instances of the model matched by where from the data source.
operationId: InterFanspublic.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:
...@@ -27852,6 +28238,20 @@ definitions: ...@@ -27852,6 +28238,20 @@ definitions:
type: number type: number
format: double format: double
additionalProperties: false additionalProperties: false
InterFanspublic:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 6
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:
......
...@@ -288,5 +288,9 @@ ...@@ -288,5 +288,9 @@
"MainTraderevenue": { "MainTraderevenue": {
"dataSource": "ruipeng", "dataSource": "ruipeng",
"public": true "public": true
},
"InterFanspublic": {
"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