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
ff167927
Commit
ff167927
authored
Sep 25, 2019
by
黄卓然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix another_teacher
parent
390415cd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
164 additions
and
146 deletions
+164
-146
another-teacher.json
common/models/another-teacher.json
+18
-3
RuiPengLoopbackApi.yaml
definitions/RuiPengLoopbackApi.yaml
+144
-141
model-config.json
server/model-config.json
+2
-2
No files found.
common/models/another-teacher.json
View file @
ff167927
...
@@ -88,13 +88,28 @@
...
@@ -88,13 +88,28 @@
"img1"
:
{
"img1"
:
{
"type"
:
"String"
,
"type"
:
"String"
,
"required"
:
false
,
"required"
:
false
,
"length"
:
65535
,
"length"
:
500
,
"precision"
:
null
,
"precision"
:
null
,
"scale"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"mysql"
:
{
"columnName"
:
"img1"
,
"columnName"
:
"img1"
,
"dataType"
:
"text"
,
"dataType"
:
"varchar"
,
"dataLength"
:
65535
,
"dataLength"
:
500
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
},
"img2"
:
{
"type"
:
"String"
,
"required"
:
false
,
"length"
:
500
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"img2"
,
"dataType"
:
"varchar"
,
"dataLength"
:
500
,
"dataPrecision"
:
null
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
"nullable"
:
"Y"
...
...
definitions/RuiPengLoopbackApi.yaml
View file @
ff167927
...
@@ -64537,12 +64537,12 @@ paths:
...
@@ -64537,12 +64537,12 @@ paths:
type: number
type: number
format: double
format: double
deprecated: false
deprecated: false
/
AnotherTeacher
s:
/
HosL3p21
s:
post:
post:
tags:
tags:
-
AnotherTeacher
-
HosL3p21
summary: Create a new instance of the model and persist it into the data source.
summary: Create a new instance of the model and persist it into the data source.
operationId:
AnotherTeacher
.create
operationId:
HosL3p21
.create
parameters:
parameters:
- name: data
- name: data
in: body
in: body
...
@@ -64550,20 +64550,20 @@ paths:
...
@@ -64550,20 +64550,20 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/
AnotherTeacher
'
$ref: '#/definitions/
HosL3p21
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
AnotherTeacher
'
$ref: '#/definitions/
HosL3p21
'
deprecated: false
deprecated: false
patch:
patch:
tags:
tags:
-
AnotherTeacher
-
HosL3p21
summary: >-
summary: >-
Patch an existing model instance or insert a new one into the data
Patch an existing model instance or insert a new one into the data
source.
source.
operationId:
AnotherTeacher
.patchOrCreate
operationId:
HosL3p21
.patchOrCreate
parameters:
parameters:
- name: data
- name: data
in: body
in: body
...
@@ -64571,20 +64571,20 @@ paths:
...
@@ -64571,20 +64571,20 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/
AnotherTeacher
'
$ref: '#/definitions/
HosL3p21
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
AnotherTeacher
'
$ref: '#/definitions/
HosL3p21
'
deprecated: false
deprecated: false
put:
put:
tags:
tags:
-
AnotherTeacher
-
HosL3p21
summary: >-
summary: >-
Replace an existing model instance or insert a new one into the data
Replace an existing model instance or insert a new one into the data
source.
source.
operationId:
AnotherTeacher.replaceOrCreate__put_AnotherTeacher
s
operationId:
HosL3p21.replaceOrCreate__put_HosL3p21
s
parameters:
parameters:
- name: data
- name: data
in: body
in: body
...
@@ -64592,18 +64592,18 @@ paths:
...
@@ -64592,18 +64592,18 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/
AnotherTeacher
'
$ref: '#/definitions/
HosL3p21
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
AnotherTeacher
'
$ref: '#/definitions/
HosL3p21
'
deprecated: false
deprecated: false
get:
get:
tags:
tags:
-
AnotherTeacher
-
HosL3p21
summary: Find all instances of the model matched by filter from the data source.
summary: Find all instances of the model matched by filter from the data source.
operationId:
AnotherTeacher
.find
operationId:
HosL3p21
.find
parameters:
parameters:
- name: filter
- name: filter
in: query
in: query
...
@@ -64622,16 +64622,16 @@ paths:
...
@@ -64622,16 +64622,16 @@ paths:
schema:
schema:
type: array
type: array
items:
items:
$ref: '#/definitions/
AnotherTeacher
'
$ref: '#/definitions/
HosL3p21
'
deprecated: false
deprecated: false
/
AnotherTeacher
s/replaceOrCreate:
/
HosL3p21
s/replaceOrCreate:
post:
post:
tags:
tags:
-
AnotherTeacher
-
HosL3p21
summary: >-
summary: >-
Replace an existing model instance or insert a new one into the data
Replace an existing model instance or insert a new one into the data
source.
source.
operationId:
AnotherTeacher.replaceOrCreate__post_AnotherTeacher
s_replaceOrCreate
operationId:
HosL3p21.replaceOrCreate__post_HosL3p21
s_replaceOrCreate
parameters:
parameters:
- name: data
- name: data
in: body
in: body
...
@@ -64639,21 +64639,21 @@ paths:
...
@@ -64639,21 +64639,21 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/
AnotherTeacher
'
$ref: '#/definitions/
HosL3p21
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
AnotherTeacher
'
$ref: '#/definitions/
HosL3p21
'
deprecated: false
deprecated: false
/
AnotherTeacher
s/upsertWithWhere:
/
HosL3p21
s/upsertWithWhere:
post:
post:
tags:
tags:
-
AnotherTeacher
-
HosL3p21
summary: >-
summary: >-
Update an existing model instance or insert a new one into the data
Update an existing model instance or insert a new one into the data
source based on the where criteria.
source based on the where criteria.
operationId:
AnotherTeacher
.upsertWithWhere
operationId:
HosL3p21
.upsertWithWhere
parameters:
parameters:
- name: where
- name: where
in: query
in: query
...
@@ -64667,19 +64667,19 @@ paths:
...
@@ -64667,19 +64667,19 @@ paths:
required: false
required: false
schema:
schema:
description: An object of model property name/value pairs
description: An object of model property name/value pairs
$ref: '#/definitions/
AnotherTeacher
'
$ref: '#/definitions/
HosL3p21
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
AnotherTeacher
'
$ref: '#/definitions/
HosL3p21
'
deprecated: false
deprecated: false
'/
AnotherTeacher
s/{id}/exists':
'/
HosL3p21
s/{id}/exists':
get:
get:
tags:
tags:
-
AnotherTeacher
-
HosL3p21
summary: Check whether a model instance exists in the data source.
summary: Check whether a model instance exists in the data source.
operationId: '
AnotherTeacher.exists__get_AnotherTeacher
s_{id}_exists'
operationId: '
HosL3p21.exists__get_HosL3p21
s_{id}_exists'
parameters:
parameters:
- name: id
- name: id
in: path
in: path
...
@@ -64696,12 +64696,12 @@ paths:
...
@@ -64696,12 +64696,12 @@ paths:
exists:
exists:
type: boolean
type: boolean
deprecated: false
deprecated: false
'/
AnotherTeacher
s/{id}':
'/
HosL3p21
s/{id}':
head:
head:
tags:
tags:
-
AnotherTeacher
-
HosL3p21
summary: Check whether a model instance exists in the data source.
summary: Check whether a model instance exists in the data source.
operationId: '
AnotherTeacher.exists__head_AnotherTeacher
s_{id}'
operationId: '
HosL3p21.exists__head_HosL3p21
s_{id}'
parameters:
parameters:
- name: id
- name: id
in: path
in: path
...
@@ -64720,9 +64720,9 @@ paths:
...
@@ -64720,9 +64720,9 @@ paths:
deprecated: false
deprecated: false
get:
get:
tags:
tags:
-
AnotherTeacher
-
HosL3p21
summary: 'Find a model instance by {{id}} from the data source.'
summary: 'Find a model instance by {{id}} from the data source.'
operationId:
AnotherTeacher
.findById
operationId:
HosL3p21
.findById
parameters:
parameters:
- name: id
- name: id
in: path
in: path
...
@@ -64742,15 +64742,15 @@ paths:
...
@@ -64742,15 +64742,15 @@ paths:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
AnotherTeacher
'
$ref: '#/definitions/
HosL3p21
'
deprecated: false
deprecated: false
put:
put:
tags:
tags:
-
AnotherTeacher
-
HosL3p21
summary: >-
summary: >-
Replace attributes for a model instance and persist it into the data
Replace attributes for a model instance and persist it into the data
source.
source.
operationId: '
AnotherTeacher.replaceById__put_AnotherTeacher
s_{id}'
operationId: '
HosL3p21.replaceById__put_HosL3p21
s_{id}'
parameters:
parameters:
- name: id
- name: id
in: path
in: path
...
@@ -64764,18 +64764,18 @@ paths:
...
@@ -64764,18 +64764,18 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/
AnotherTeacher
'
$ref: '#/definitions/
HosL3p21
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
AnotherTeacher
'
$ref: '#/definitions/
HosL3p21
'
deprecated: false
deprecated: false
delete:
delete:
tags:
tags:
-
AnotherTeacher
-
HosL3p21
summary: 'Delete a model instance by {{id}} from the data source.'
summary: 'Delete a model instance by {{id}} from the data source.'
operationId:
AnotherTeacher
.deleteById
operationId:
HosL3p21
.deleteById
parameters:
parameters:
- name: id
- name: id
in: path
in: path
...
@@ -64791,15 +64791,15 @@ paths:
...
@@ -64791,15 +64791,15 @@ paths:
deprecated: false
deprecated: false
patch:
patch:
tags:
tags:
-
AnotherTeacher
-
HosL3p21
summary: >-
summary: >-
Patch attributes for a model instance and persist it into the data
Patch attributes for a model instance and persist it into the data
source.
source.
operationId:
AnotherTeacher
.prototype.patchAttributes
operationId:
HosL3p21
.prototype.patchAttributes
parameters:
parameters:
- name: id
- name: id
in: path
in: path
description:
AnotherTeacher
id
description:
HosL3p21
id
required: true
required: true
type: string
type: string
format: JSON
format: JSON
...
@@ -64809,21 +64809,21 @@ paths:
...
@@ -64809,21 +64809,21 @@ paths:
required: false
required: false
schema:
schema:
description: An object of model property name/value pairs
description: An object of model property name/value pairs
$ref: '#/definitions/
AnotherTeacher
'
$ref: '#/definitions/
HosL3p21
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
AnotherTeacher
'
$ref: '#/definitions/
HosL3p21
'
deprecated: false
deprecated: false
'/
AnotherTeacher
s/{id}/replace':
'/
HosL3p21
s/{id}/replace':
post:
post:
tags:
tags:
-
AnotherTeacher
-
HosL3p21
summary: >-
summary: >-
Replace attributes for a model instance and persist it into the data
Replace attributes for a model instance and persist it into the data
source.
source.
operationId: '
AnotherTeacher.replaceById__post_AnotherTeacher
s_{id}_replace'
operationId: '
HosL3p21.replaceById__post_HosL3p21
s_{id}_replace'
parameters:
parameters:
- name: id
- name: id
in: path
in: path
...
@@ -64837,19 +64837,19 @@ paths:
...
@@ -64837,19 +64837,19 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/
AnotherTeacher
'
$ref: '#/definitions/
HosL3p21
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
AnotherTeacher
'
$ref: '#/definitions/
HosL3p21
'
deprecated: false
deprecated: false
/
AnotherTeacher
s/findOne:
/
HosL3p21
s/findOne:
get:
get:
tags:
tags:
-
AnotherTeacher
-
HosL3p21
summary: Find first instance of the model matched by filter from the data source.
summary: Find first instance of the model matched by filter from the data source.
operationId:
AnotherTeacher
.findOne
operationId:
HosL3p21
.findOne
parameters:
parameters:
- name: filter
- name: filter
in: query
in: query
...
@@ -64866,14 +64866,14 @@ paths:
...
@@ -64866,14 +64866,14 @@ paths:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
AnotherTeacher
'
$ref: '#/definitions/
HosL3p21
'
deprecated: false
deprecated: false
/
AnotherTeacher
s/update:
/
HosL3p21
s/update:
post:
post:
tags:
tags:
-
AnotherTeacher
-
HosL3p21
summary: 'Update instances of the model matched by {{where}} from the data source.'
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId:
AnotherTeacher
.updateAll
operationId:
HosL3p21
.updateAll
parameters:
parameters:
- name: where
- name: where
in: query
in: query
...
@@ -64887,7 +64887,7 @@ paths:
...
@@ -64887,7 +64887,7 @@ paths:
required: false
required: false
schema:
schema:
description: An object of model property name/value pairs
description: An object of model property name/value pairs
$ref: '#/definitions/
AnotherTeacher
'
$ref: '#/definitions/
HosL3p21
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
...
@@ -64900,12 +64900,12 @@ paths:
...
@@ -64900,12 +64900,12 @@ paths:
type: number
type: number
format: double
format: double
deprecated: false
deprecated: false
/
AnotherTeacher
s/count:
/
HosL3p21
s/count:
get:
get:
tags:
tags:
-
AnotherTeacher
-
HosL3p21
summary: Count instances of the model matched by where from the data source.
summary: Count instances of the model matched by where from the data source.
operationId:
AnotherTeacher
.count
operationId:
HosL3p21
.count
parameters:
parameters:
- name: where
- name: where
in: query
in: query
...
@@ -64923,12 +64923,12 @@ paths:
...
@@ -64923,12 +64923,12 @@ paths:
type: number
type: number
format: double
format: double
deprecated: false
deprecated: false
/
HosL3p21
s:
/
AnotherTeacher
s:
post:
post:
tags:
tags:
-
HosL3p21
-
AnotherTeacher
summary: Create a new instance of the model and persist it into the data source.
summary: Create a new instance of the model and persist it into the data source.
operationId:
HosL3p21
.create
operationId:
AnotherTeacher
.create
parameters:
parameters:
- name: data
- name: data
in: body
in: body
...
@@ -64936,20 +64936,20 @@ paths:
...
@@ -64936,20 +64936,20 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/
HosL3p21
'
$ref: '#/definitions/
AnotherTeacher
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
HosL3p21
'
$ref: '#/definitions/
AnotherTeacher
'
deprecated: false
deprecated: false
patch:
patch:
tags:
tags:
-
HosL3p21
-
AnotherTeacher
summary: >-
summary: >-
Patch an existing model instance or insert a new one into the data
Patch an existing model instance or insert a new one into the data
source.
source.
operationId:
HosL3p21
.patchOrCreate
operationId:
AnotherTeacher
.patchOrCreate
parameters:
parameters:
- name: data
- name: data
in: body
in: body
...
@@ -64957,20 +64957,20 @@ paths:
...
@@ -64957,20 +64957,20 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/
HosL3p21
'
$ref: '#/definitions/
AnotherTeacher
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
HosL3p21
'
$ref: '#/definitions/
AnotherTeacher
'
deprecated: false
deprecated: false
put:
put:
tags:
tags:
-
HosL3p21
-
AnotherTeacher
summary: >-
summary: >-
Replace an existing model instance or insert a new one into the data
Replace an existing model instance or insert a new one into the data
source.
source.
operationId:
HosL3p21.replaceOrCreate__put_HosL3p21
s
operationId:
AnotherTeacher.replaceOrCreate__put_AnotherTeacher
s
parameters:
parameters:
- name: data
- name: data
in: body
in: body
...
@@ -64978,18 +64978,18 @@ paths:
...
@@ -64978,18 +64978,18 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/
HosL3p21
'
$ref: '#/definitions/
AnotherTeacher
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
HosL3p21
'
$ref: '#/definitions/
AnotherTeacher
'
deprecated: false
deprecated: false
get:
get:
tags:
tags:
-
HosL3p21
-
AnotherTeacher
summary: Find all instances of the model matched by filter from the data source.
summary: Find all instances of the model matched by filter from the data source.
operationId:
HosL3p21
.find
operationId:
AnotherTeacher
.find
parameters:
parameters:
- name: filter
- name: filter
in: query
in: query
...
@@ -65008,16 +65008,16 @@ paths:
...
@@ -65008,16 +65008,16 @@ paths:
schema:
schema:
type: array
type: array
items:
items:
$ref: '#/definitions/
HosL3p21
'
$ref: '#/definitions/
AnotherTeacher
'
deprecated: false
deprecated: false
/
HosL3p21
s/replaceOrCreate:
/
AnotherTeacher
s/replaceOrCreate:
post:
post:
tags:
tags:
-
HosL3p21
-
AnotherTeacher
summary: >-
summary: >-
Replace an existing model instance or insert a new one into the data
Replace an existing model instance or insert a new one into the data
source.
source.
operationId:
HosL3p21.replaceOrCreate__post_HosL3p21
s_replaceOrCreate
operationId:
AnotherTeacher.replaceOrCreate__post_AnotherTeacher
s_replaceOrCreate
parameters:
parameters:
- name: data
- name: data
in: body
in: body
...
@@ -65025,21 +65025,21 @@ paths:
...
@@ -65025,21 +65025,21 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/
HosL3p21
'
$ref: '#/definitions/
AnotherTeacher
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
HosL3p21
'
$ref: '#/definitions/
AnotherTeacher
'
deprecated: false
deprecated: false
/
HosL3p21
s/upsertWithWhere:
/
AnotherTeacher
s/upsertWithWhere:
post:
post:
tags:
tags:
-
HosL3p21
-
AnotherTeacher
summary: >-
summary: >-
Update an existing model instance or insert a new one into the data
Update an existing model instance or insert a new one into the data
source based on the where criteria.
source based on the where criteria.
operationId:
HosL3p21
.upsertWithWhere
operationId:
AnotherTeacher
.upsertWithWhere
parameters:
parameters:
- name: where
- name: where
in: query
in: query
...
@@ -65053,19 +65053,19 @@ paths:
...
@@ -65053,19 +65053,19 @@ paths:
required: false
required: false
schema:
schema:
description: An object of model property name/value pairs
description: An object of model property name/value pairs
$ref: '#/definitions/
HosL3p21
'
$ref: '#/definitions/
AnotherTeacher
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
HosL3p21
'
$ref: '#/definitions/
AnotherTeacher
'
deprecated: false
deprecated: false
'/
HosL3p21
s/{id}/exists':
'/
AnotherTeacher
s/{id}/exists':
get:
get:
tags:
tags:
-
HosL3p21
-
AnotherTeacher
summary: Check whether a model instance exists in the data source.
summary: Check whether a model instance exists in the data source.
operationId: '
HosL3p21.exists__get_HosL3p21
s_{id}_exists'
operationId: '
AnotherTeacher.exists__get_AnotherTeacher
s_{id}_exists'
parameters:
parameters:
- name: id
- name: id
in: path
in: path
...
@@ -65082,12 +65082,12 @@ paths:
...
@@ -65082,12 +65082,12 @@ paths:
exists:
exists:
type: boolean
type: boolean
deprecated: false
deprecated: false
'/
HosL3p21
s/{id}':
'/
AnotherTeacher
s/{id}':
head:
head:
tags:
tags:
-
HosL3p21
-
AnotherTeacher
summary: Check whether a model instance exists in the data source.
summary: Check whether a model instance exists in the data source.
operationId: '
HosL3p21.exists__head_HosL3p21
s_{id}'
operationId: '
AnotherTeacher.exists__head_AnotherTeacher
s_{id}'
parameters:
parameters:
- name: id
- name: id
in: path
in: path
...
@@ -65106,9 +65106,9 @@ paths:
...
@@ -65106,9 +65106,9 @@ paths:
deprecated: false
deprecated: false
get:
get:
tags:
tags:
-
HosL3p21
-
AnotherTeacher
summary: 'Find a model instance by {{id}} from the data source.'
summary: 'Find a model instance by {{id}} from the data source.'
operationId:
HosL3p21
.findById
operationId:
AnotherTeacher
.findById
parameters:
parameters:
- name: id
- name: id
in: path
in: path
...
@@ -65128,15 +65128,15 @@ paths:
...
@@ -65128,15 +65128,15 @@ paths:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
HosL3p21
'
$ref: '#/definitions/
AnotherTeacher
'
deprecated: false
deprecated: false
put:
put:
tags:
tags:
-
HosL3p21
-
AnotherTeacher
summary: >-
summary: >-
Replace attributes for a model instance and persist it into the data
Replace attributes for a model instance and persist it into the data
source.
source.
operationId: '
HosL3p21.replaceById__put_HosL3p21
s_{id}'
operationId: '
AnotherTeacher.replaceById__put_AnotherTeacher
s_{id}'
parameters:
parameters:
- name: id
- name: id
in: path
in: path
...
@@ -65150,18 +65150,18 @@ paths:
...
@@ -65150,18 +65150,18 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/
HosL3p21
'
$ref: '#/definitions/
AnotherTeacher
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
HosL3p21
'
$ref: '#/definitions/
AnotherTeacher
'
deprecated: false
deprecated: false
delete:
delete:
tags:
tags:
-
HosL3p21
-
AnotherTeacher
summary: 'Delete a model instance by {{id}} from the data source.'
summary: 'Delete a model instance by {{id}} from the data source.'
operationId:
HosL3p21
.deleteById
operationId:
AnotherTeacher
.deleteById
parameters:
parameters:
- name: id
- name: id
in: path
in: path
...
@@ -65177,15 +65177,15 @@ paths:
...
@@ -65177,15 +65177,15 @@ paths:
deprecated: false
deprecated: false
patch:
patch:
tags:
tags:
-
HosL3p21
-
AnotherTeacher
summary: >-
summary: >-
Patch attributes for a model instance and persist it into the data
Patch attributes for a model instance and persist it into the data
source.
source.
operationId:
HosL3p21
.prototype.patchAttributes
operationId:
AnotherTeacher
.prototype.patchAttributes
parameters:
parameters:
- name: id
- name: id
in: path
in: path
description:
HosL3p21
id
description:
AnotherTeacher
id
required: true
required: true
type: string
type: string
format: JSON
format: JSON
...
@@ -65195,21 +65195,21 @@ paths:
...
@@ -65195,21 +65195,21 @@ paths:
required: false
required: false
schema:
schema:
description: An object of model property name/value pairs
description: An object of model property name/value pairs
$ref: '#/definitions/
HosL3p21
'
$ref: '#/definitions/
AnotherTeacher
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
HosL3p21
'
$ref: '#/definitions/
AnotherTeacher
'
deprecated: false
deprecated: false
'/
HosL3p21
s/{id}/replace':
'/
AnotherTeacher
s/{id}/replace':
post:
post:
tags:
tags:
-
HosL3p21
-
AnotherTeacher
summary: >-
summary: >-
Replace attributes for a model instance and persist it into the data
Replace attributes for a model instance and persist it into the data
source.
source.
operationId: '
HosL3p21.replaceById__post_HosL3p21
s_{id}_replace'
operationId: '
AnotherTeacher.replaceById__post_AnotherTeacher
s_{id}_replace'
parameters:
parameters:
- name: id
- name: id
in: path
in: path
...
@@ -65223,19 +65223,19 @@ paths:
...
@@ -65223,19 +65223,19 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/
HosL3p21
'
$ref: '#/definitions/
AnotherTeacher
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
HosL3p21
'
$ref: '#/definitions/
AnotherTeacher
'
deprecated: false
deprecated: false
/
HosL3p21
s/findOne:
/
AnotherTeacher
s/findOne:
get:
get:
tags:
tags:
-
HosL3p21
-
AnotherTeacher
summary: Find first instance of the model matched by filter from the data source.
summary: Find first instance of the model matched by filter from the data source.
operationId:
HosL3p21
.findOne
operationId:
AnotherTeacher
.findOne
parameters:
parameters:
- name: filter
- name: filter
in: query
in: query
...
@@ -65252,14 +65252,14 @@ paths:
...
@@ -65252,14 +65252,14 @@ paths:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/
HosL3p21
'
$ref: '#/definitions/
AnotherTeacher
'
deprecated: false
deprecated: false
/
HosL3p21
s/update:
/
AnotherTeacher
s/update:
post:
post:
tags:
tags:
-
HosL3p21
-
AnotherTeacher
summary: 'Update instances of the model matched by {{where}} from the data source.'
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId:
HosL3p21
.updateAll
operationId:
AnotherTeacher
.updateAll
parameters:
parameters:
- name: where
- name: where
in: query
in: query
...
@@ -65273,7 +65273,7 @@ paths:
...
@@ -65273,7 +65273,7 @@ paths:
required: false
required: false
schema:
schema:
description: An object of model property name/value pairs
description: An object of model property name/value pairs
$ref: '#/definitions/
HosL3p21
'
$ref: '#/definitions/
AnotherTeacher
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
...
@@ -65286,12 +65286,12 @@ paths:
...
@@ -65286,12 +65286,12 @@ paths:
type: number
type: number
format: double
format: double
deprecated: false
deprecated: false
/
HosL3p21
s/count:
/
AnotherTeacher
s/count:
get:
get:
tags:
tags:
-
HosL3p21
-
AnotherTeacher
summary: Count instances of the model matched by where from the data source.
summary: Count instances of the model matched by where from the data source.
operationId:
HosL3p21
.count
operationId:
AnotherTeacher
.count
parameters:
parameters:
- name: where
- name: where
in: query
in: query
...
@@ -67830,6 +67830,23 @@ definitions:
...
@@ -67830,6 +67830,23 @@ definitions:
maxLength: 65535
maxLength: 65535
type: string
type: string
additionalProperties: false
additionalProperties: false
HosL3p21:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 5
type: string
value:
type: number
format: double
area:
maxLength: 101
type: string
required:
- name
additionalProperties: false
AnotherTeacher:
AnotherTeacher:
properties:
properties:
id:
id:
...
@@ -67848,25 +67865,11 @@ definitions:
...
@@ -67848,25 +67865,11 @@ definitions:
maxLength: 65535
maxLength: 65535
type: string
type: string
img1:
img1:
maxLength:
65535
maxLength:
500
type: string
type: string
additionalProperties: false
img2:
HosL3p21:
maxLength: 500
properties:
id:
maxLength: 36
type: string
name:
maxLength: 5
type: string
type: string
value:
type: number
format: double
area:
maxLength: 101
type: string
required:
- name
additionalProperties: false
additionalProperties: false
basePath: /api/ruipeng
basePath: /api/ruipeng
swagger: '2.0'
swagger: '2.0'
server/model-config.json
View file @
ff167927
...
@@ -681,11 +681,11 @@
...
@@ -681,11 +681,11 @@
"dataSource"
:
"ruipeng"
,
"dataSource"
:
"ruipeng"
,
"public"
:
true
"public"
:
true
},
},
"
AnotherTeacher
"
:
{
"
HosL3p21
"
:
{
"dataSource"
:
"ruipeng"
,
"dataSource"
:
"ruipeng"
,
"public"
:
true
"public"
:
true
},
},
"
HosL3p21
"
:
{
"
AnotherTeacher
"
:
{
"dataSource"
:
"ruipeng"
,
"dataSource"
:
"ruipeng"
,
"public"
:
true
"public"
:
true
}
}
...
...
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