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
4295d116
Commit
4295d116
authored
Sep 12, 2019
by
余海军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
a4ad80fb
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
2023 additions
and
66 deletions
+2023
-66
map-beijing.js
common/models/map-beijing.js
+5
-0
map-beijing.json
common/models/map-beijing.json
+2
-2
map-chengdu.js
common/models/map-chengdu.js
+5
-0
map-chengdu.json
common/models/map-chengdu.json
+78
-0
map-guangzhou.js
common/models/map-guangzhou.js
+5
-0
map-guangzhou.json
common/models/map-guangzhou.json
+78
-0
map-shanghai.js
common/models/map-shanghai.js
+5
-0
map-shanghai.json
common/models/map-shanghai.json
+78
-0
map-shenzhen.js
common/models/map-shenzhen.js
+5
-0
map-shenzhen.json
common/models/map-shenzhen.json
+78
-0
RuiPengLoopbackApi.yaml
definitions/RuiPengLoopbackApi.yaml
+1667
-63
model-config.json
server/model-config.json
+17
-1
No files found.
common/models/map-
city
.js
→
common/models/map-
beijing
.js
View file @
4295d116
'use strict'
;
'use strict'
;
module
.
exports
=
function
(
Map
city
)
{
module
.
exports
=
function
(
Map
beijing
)
{
};
};
common/models/map-
city
.json
→
common/models/map-
beijing
.json
View file @
4295d116
{
{
"name"
:
"Map
City
"
,
"name"
:
"Map
Beijing
"
,
"base"
:
"PersistedModel"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"idInjection"
:
false
,
"options"
:
{
"options"
:
{
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
},
},
"mysql"
:
{
"mysql"
:
{
"schema"
:
"wordpress"
,
"schema"
:
"wordpress"
,
"table"
:
"map_
city
"
"table"
:
"map_
beijing
"
},
},
"properties"
:
{
"properties"
:
{
"id"
:
{
"id"
:
{
...
...
common/models/map-chengdu.js
0 → 100644
View file @
4295d116
'use strict'
;
module
.
exports
=
function
(
Mapchengdu
)
{
};
common/models/map-chengdu.json
0 → 100644
View file @
4295d116
{
"name"
:
"MapChengdu"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
"validateUpsert"
:
true
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"map_chengdu"
},
"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"
}
},
"city"
:
{
"type"
:
"String"
,
"required"
:
false
,
"length"
:
100
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"city"
,
"dataType"
:
"varchar"
,
"dataLength"
:
100
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
},
"name"
:
{
"type"
:
"String"
,
"required"
:
false
,
"length"
:
100
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"name"
,
"dataType"
:
"varchar"
,
"dataLength"
:
100
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
},
"value"
:
{
"type"
:
"String"
,
"required"
:
false
,
"length"
:
45
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"value"
,
"dataType"
:
"varchar"
,
"dataLength"
:
45
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
}
},
"validations"
:
[],
"relations"
:
{},
"acls"
:
[],
"methods"
:
{}
}
common/models/map-guangzhou.js
0 → 100644
View file @
4295d116
'use strict'
;
module
.
exports
=
function
(
Mapguangzhou
)
{
};
common/models/map-guangzhou.json
0 → 100644
View file @
4295d116
{
"name"
:
"MapGuangzhou"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
"validateUpsert"
:
true
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"map_guangzhou"
},
"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"
}
},
"city"
:
{
"type"
:
"String"
,
"required"
:
false
,
"length"
:
100
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"city"
,
"dataType"
:
"varchar"
,
"dataLength"
:
100
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
},
"name"
:
{
"type"
:
"String"
,
"required"
:
false
,
"length"
:
100
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"name"
,
"dataType"
:
"varchar"
,
"dataLength"
:
100
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
},
"value"
:
{
"type"
:
"String"
,
"required"
:
false
,
"length"
:
45
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"value"
,
"dataType"
:
"varchar"
,
"dataLength"
:
45
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
}
},
"validations"
:
[],
"relations"
:
{},
"acls"
:
[],
"methods"
:
{}
}
common/models/map-shanghai.js
0 → 100644
View file @
4295d116
'use strict'
;
module
.
exports
=
function
(
Mapshanghai
)
{
};
common/models/map-shanghai.json
0 → 100644
View file @
4295d116
{
"name"
:
"MapShanghai"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
"validateUpsert"
:
true
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"map_shanghai"
},
"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"
}
},
"city"
:
{
"type"
:
"String"
,
"required"
:
false
,
"length"
:
100
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"city"
,
"dataType"
:
"varchar"
,
"dataLength"
:
100
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
},
"name"
:
{
"type"
:
"String"
,
"required"
:
false
,
"length"
:
100
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"name"
,
"dataType"
:
"varchar"
,
"dataLength"
:
100
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
},
"value"
:
{
"type"
:
"String"
,
"required"
:
false
,
"length"
:
45
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"value"
,
"dataType"
:
"varchar"
,
"dataLength"
:
45
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
}
},
"validations"
:
[],
"relations"
:
{},
"acls"
:
[],
"methods"
:
{}
}
common/models/map-shenzhen.js
0 → 100644
View file @
4295d116
'use strict'
;
module
.
exports
=
function
(
Mapshenzhen
)
{
};
common/models/map-shenzhen.json
0 → 100644
View file @
4295d116
{
"name"
:
"MapShenzhen"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
"validateUpsert"
:
true
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"map_shenzhen"
},
"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"
}
},
"city"
:
{
"type"
:
"String"
,
"required"
:
false
,
"length"
:
100
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"city"
,
"dataType"
:
"varchar"
,
"dataLength"
:
100
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
},
"name"
:
{
"type"
:
"String"
,
"required"
:
false
,
"length"
:
100
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"name"
,
"dataType"
:
"varchar"
,
"dataLength"
:
100
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
},
"value"
:
{
"type"
:
"String"
,
"required"
:
false
,
"length"
:
45
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"value"
,
"dataType"
:
"varchar"
,
"dataLength"
:
45
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
}
},
"validations"
:
[],
"relations"
:
{},
"acls"
:
[],
"methods"
:
{}
}
definitions/RuiPengLoopbackApi.yaml
View file @
4295d116
...
@@ -34036,12 +34036,12 @@ paths:
...
@@ -34036,12 +34036,12 @@ paths:
type: number
type: number
format: double
format: double
deprecated: false
deprecated: false
/Map
Citie
s:
/Map
Shanghai
s:
post:
post:
tags:
tags:
- Map
City
- Map
Shanghai
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: Map
City
.create
operationId: Map
Shanghai
.create
parameters:
parameters:
- name: data
- name: data
in: body
in: body
...
@@ -34049,20 +34049,20 @@ paths:
...
@@ -34049,20 +34049,20 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/Map
City
'
$ref: '#/definitions/Map
Shanghai
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/Map
City
'
$ref: '#/definitions/Map
Shanghai
'
deprecated: false
deprecated: false
patch:
patch:
tags:
tags:
- Map
City
- Map
Shanghai
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: Map
City
.patchOrCreate
operationId: Map
Shanghai
.patchOrCreate
parameters:
parameters:
- name: data
- name: data
in: body
in: body
...
@@ -34070,20 +34070,20 @@ paths:
...
@@ -34070,20 +34070,20 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/Map
City
'
$ref: '#/definitions/Map
Shanghai
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/Map
City
'
$ref: '#/definitions/Map
Shanghai
'
deprecated: false
deprecated: false
put:
put:
tags:
tags:
- Map
City
- Map
Shanghai
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: Map
City.replaceOrCreate__put_MapCitie
s
operationId: Map
Shanghai.replaceOrCreate__put_MapShanghai
s
parameters:
parameters:
- name: data
- name: data
in: body
in: body
...
@@ -34091,18 +34091,18 @@ paths:
...
@@ -34091,18 +34091,18 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/Map
City
'
$ref: '#/definitions/Map
Shanghai
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/Map
City
'
$ref: '#/definitions/Map
Shanghai
'
deprecated: false
deprecated: false
get:
get:
tags:
tags:
- Map
City
- Map
Shanghai
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: Map
City
.find
operationId: Map
Shanghai
.find
parameters:
parameters:
- name: filter
- name: filter
in: query
in: query
...
@@ -34121,16 +34121,16 @@ paths:
...
@@ -34121,16 +34121,16 @@ paths:
schema:
schema:
type: array
type: array
items:
items:
$ref: '#/definitions/Map
City
'
$ref: '#/definitions/Map
Shanghai
'
deprecated: false
deprecated: false
/Map
Citie
s/replaceOrCreate:
/Map
Shanghai
s/replaceOrCreate:
post:
post:
tags:
tags:
- Map
City
- Map
Shanghai
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: Map
City.replaceOrCreate__post_MapCitie
s_replaceOrCreate
operationId: Map
Shanghai.replaceOrCreate__post_MapShanghai
s_replaceOrCreate
parameters:
parameters:
- name: data
- name: data
in: body
in: body
...
@@ -34138,21 +34138,21 @@ paths:
...
@@ -34138,21 +34138,21 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/Map
City
'
$ref: '#/definitions/Map
Shanghai
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/Map
City
'
$ref: '#/definitions/Map
Shanghai
'
deprecated: false
deprecated: false
/Map
Citie
s/upsertWithWhere:
/Map
Shanghai
s/upsertWithWhere:
post:
post:
tags:
tags:
- Map
City
- Map
Shanghai
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: Map
City
.upsertWithWhere
operationId: Map
Shanghai
.upsertWithWhere
parameters:
parameters:
- name: where
- name: where
in: query
in: query
...
@@ -34166,19 +34166,19 @@ paths:
...
@@ -34166,19 +34166,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/Map
City
'
$ref: '#/definitions/Map
Shanghai
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/Map
City
'
$ref: '#/definitions/Map
Shanghai
'
deprecated: false
deprecated: false
'/Map
Citie
s/{id}/exists':
'/Map
Shanghai
s/{id}/exists':
get:
get:
tags:
tags:
- Map
City
- Map
Shanghai
summary: Check whether a model instance exists in the data source.
summary: Check whether a model instance exists in the data source.
operationId: 'Map
City.exists__get_MapCitie
s_{id}_exists'
operationId: 'Map
Shanghai.exists__get_MapShanghai
s_{id}_exists'
parameters:
parameters:
- name: id
- name: id
in: path
in: path
...
@@ -34195,12 +34195,12 @@ paths:
...
@@ -34195,12 +34195,12 @@ paths:
exists:
exists:
type: boolean
type: boolean
deprecated: false
deprecated: false
'/Map
Citie
s/{id}':
'/Map
Shanghai
s/{id}':
head:
head:
tags:
tags:
- Map
City
- Map
Shanghai
summary: Check whether a model instance exists in the data source.
summary: Check whether a model instance exists in the data source.
operationId: 'Map
City.exists__head_MapCitie
s_{id}'
operationId: 'Map
Shanghai.exists__head_MapShanghai
s_{id}'
parameters:
parameters:
- name: id
- name: id
in: path
in: path
...
@@ -34219,9 +34219,9 @@ paths:
...
@@ -34219,9 +34219,9 @@ paths:
deprecated: false
deprecated: false
get:
get:
tags:
tags:
- Map
City
- Map
Shanghai
summary: 'Find a model instance by {{id}} from the data source.'
summary: 'Find a model instance by {{id}} from the data source.'
operationId: Map
City
.findById
operationId: Map
Shanghai
.findById
parameters:
parameters:
- name: id
- name: id
in: path
in: path
...
@@ -34241,15 +34241,15 @@ paths:
...
@@ -34241,15 +34241,15 @@ paths:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/Map
City
'
$ref: '#/definitions/Map
Shanghai
'
deprecated: false
deprecated: false
put:
put:
tags:
tags:
- Map
City
- Map
Shanghai
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: 'Map
City.replaceById__put_MapCitie
s_{id}'
operationId: 'Map
Shanghai.replaceById__put_MapShanghai
s_{id}'
parameters:
parameters:
- name: id
- name: id
in: path
in: path
...
@@ -34263,18 +34263,18 @@ paths:
...
@@ -34263,18 +34263,18 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/Map
City
'
$ref: '#/definitions/Map
Shanghai
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/Map
City
'
$ref: '#/definitions/Map
Shanghai
'
deprecated: false
deprecated: false
delete:
delete:
tags:
tags:
- Map
City
- Map
Shanghai
summary: 'Delete a model instance by {{id}} from the data source.'
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: Map
City
.deleteById
operationId: Map
Shanghai
.deleteById
parameters:
parameters:
- name: id
- name: id
in: path
in: path
...
@@ -34290,15 +34290,15 @@ paths:
...
@@ -34290,15 +34290,15 @@ paths:
deprecated: false
deprecated: false
patch:
patch:
tags:
tags:
- Map
City
- Map
Shanghai
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: Map
City
.prototype.patchAttributes
operationId: Map
Shanghai
.prototype.patchAttributes
parameters:
parameters:
- name: id
- name: id
in: path
in: path
description: Map
City
id
description: Map
Shanghai
id
required: true
required: true
type: string
type: string
format: JSON
format: JSON
...
@@ -34308,21 +34308,21 @@ paths:
...
@@ -34308,21 +34308,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/Map
City
'
$ref: '#/definitions/Map
Shanghai
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/Map
City
'
$ref: '#/definitions/Map
Shanghai
'
deprecated: false
deprecated: false
'/Map
Citie
s/{id}/replace':
'/Map
Shanghai
s/{id}/replace':
post:
post:
tags:
tags:
- Map
City
- Map
Shanghai
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: 'Map
City.replaceById__post_MapCitie
s_{id}_replace'
operationId: 'Map
Shanghai.replaceById__post_MapShanghai
s_{id}_replace'
parameters:
parameters:
- name: id
- name: id
in: path
in: path
...
@@ -34336,19 +34336,19 @@ paths:
...
@@ -34336,19 +34336,19 @@ paths:
required: false
required: false
schema:
schema:
description: Model instance data
description: Model instance data
$ref: '#/definitions/Map
City
'
$ref: '#/definitions/Map
Shanghai
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/Map
City
'
$ref: '#/definitions/Map
Shanghai
'
deprecated: false
deprecated: false
/Map
Citie
s/findOne:
/Map
Shanghai
s/findOne:
get:
get:
tags:
tags:
- Map
City
- Map
Shanghai
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: Map
City
.findOne
operationId: Map
Shanghai
.findOne
parameters:
parameters:
- name: filter
- name: filter
in: query
in: query
...
@@ -34365,14 +34365,14 @@ paths:
...
@@ -34365,14 +34365,14 @@ paths:
'200':
'200':
description: Request was successful
description: Request was successful
schema:
schema:
$ref: '#/definitions/Map
City
'
$ref: '#/definitions/Map
Shanghai
'
deprecated: false
deprecated: false
/Map
Citie
s/update:
/Map
Shanghai
s/update:
post:
post:
tags:
tags:
- Map
City
- Map
Shanghai
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: Map
City
.updateAll
operationId: Map
Shanghai
.updateAll
parameters:
parameters:
- name: where
- name: where
in: query
in: query
...
@@ -34386,7 +34386,7 @@ paths:
...
@@ -34386,7 +34386,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/Map
City
'
$ref: '#/definitions/Map
Shanghai
'
responses:
responses:
'200':
'200':
description: Request was successful
description: Request was successful
...
@@ -34399,12 +34399,1556 @@ paths:
...
@@ -34399,12 +34399,1556 @@ paths:
type: number
type: number
format: double
format: double
deprecated: false
deprecated: false
/Map
Citie
s/count:
/Map
Shanghai
s/count:
get:
get:
tags:
tags:
- Map
City
- Map
Shanghai
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: MapCity.count
operationId: MapShanghai.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
/MapChengdus:
post:
tags:
- MapChengdu
summary: Create a new instance of the model and persist it into the data source.
operationId: MapChengdu.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MapChengdu'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapChengdu'
deprecated: false
patch:
tags:
- MapChengdu
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: MapChengdu.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MapChengdu'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapChengdu'
deprecated: false
put:
tags:
- MapChengdu
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: MapChengdu.replaceOrCreate__put_MapChengdus
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MapChengdu'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapChengdu'
deprecated: false
get:
tags:
- MapChengdu
summary: Find all instances of the model matched by filter from the data source.
operationId: MapChengdu.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/MapChengdu'
deprecated: false
/MapChengdus/replaceOrCreate:
post:
tags:
- MapChengdu
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: MapChengdu.replaceOrCreate__post_MapChengdus_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MapChengdu'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapChengdu'
deprecated: false
/MapChengdus/upsertWithWhere:
post:
tags:
- MapChengdu
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: MapChengdu.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/MapChengdu'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapChengdu'
deprecated: false
'/MapChengdus/{id}/exists':
get:
tags:
- MapChengdu
summary: Check whether a model instance exists in the data source.
operationId: 'MapChengdu.exists__get_MapChengdus_{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
'/MapChengdus/{id}':
head:
tags:
- MapChengdu
summary: Check whether a model instance exists in the data source.
operationId: 'MapChengdu.exists__head_MapChengdus_{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:
- MapChengdu
summary: 'Find a model instance by {{id}} from the data source.'
operationId: MapChengdu.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/MapChengdu'
deprecated: false
put:
tags:
- MapChengdu
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MapChengdu.replaceById__put_MapChengdus_{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/MapChengdu'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapChengdu'
deprecated: false
delete:
tags:
- MapChengdu
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: MapChengdu.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:
- MapChengdu
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: MapChengdu.prototype.patchAttributes
parameters:
- name: id
in: path
description: MapChengdu 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/MapChengdu'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapChengdu'
deprecated: false
'/MapChengdus/{id}/replace':
post:
tags:
- MapChengdu
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MapChengdu.replaceById__post_MapChengdus_{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/MapChengdu'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapChengdu'
deprecated: false
/MapChengdus/findOne:
get:
tags:
- MapChengdu
summary: Find first instance of the model matched by filter from the data source.
operationId: MapChengdu.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/MapChengdu'
deprecated: false
/MapChengdus/update:
post:
tags:
- MapChengdu
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: MapChengdu.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/MapChengdu'
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
/MapChengdus/count:
get:
tags:
- MapChengdu
summary: Count instances of the model matched by where from the data source.
operationId: MapChengdu.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
/MapGuangzhous:
post:
tags:
- MapGuangzhou
summary: Create a new instance of the model and persist it into the data source.
operationId: MapGuangzhou.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MapGuangzhou'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapGuangzhou'
deprecated: false
patch:
tags:
- MapGuangzhou
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: MapGuangzhou.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MapGuangzhou'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapGuangzhou'
deprecated: false
put:
tags:
- MapGuangzhou
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: MapGuangzhou.replaceOrCreate__put_MapGuangzhous
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MapGuangzhou'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapGuangzhou'
deprecated: false
get:
tags:
- MapGuangzhou
summary: Find all instances of the model matched by filter from the data source.
operationId: MapGuangzhou.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/MapGuangzhou'
deprecated: false
/MapGuangzhous/replaceOrCreate:
post:
tags:
- MapGuangzhou
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: MapGuangzhou.replaceOrCreate__post_MapGuangzhous_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MapGuangzhou'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapGuangzhou'
deprecated: false
/MapGuangzhous/upsertWithWhere:
post:
tags:
- MapGuangzhou
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: MapGuangzhou.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/MapGuangzhou'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapGuangzhou'
deprecated: false
'/MapGuangzhous/{id}/exists':
get:
tags:
- MapGuangzhou
summary: Check whether a model instance exists in the data source.
operationId: 'MapGuangzhou.exists__get_MapGuangzhous_{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
'/MapGuangzhous/{id}':
head:
tags:
- MapGuangzhou
summary: Check whether a model instance exists in the data source.
operationId: 'MapGuangzhou.exists__head_MapGuangzhous_{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:
- MapGuangzhou
summary: 'Find a model instance by {{id}} from the data source.'
operationId: MapGuangzhou.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/MapGuangzhou'
deprecated: false
put:
tags:
- MapGuangzhou
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MapGuangzhou.replaceById__put_MapGuangzhous_{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/MapGuangzhou'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapGuangzhou'
deprecated: false
delete:
tags:
- MapGuangzhou
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: MapGuangzhou.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:
- MapGuangzhou
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: MapGuangzhou.prototype.patchAttributes
parameters:
- name: id
in: path
description: MapGuangzhou 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/MapGuangzhou'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapGuangzhou'
deprecated: false
'/MapGuangzhous/{id}/replace':
post:
tags:
- MapGuangzhou
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MapGuangzhou.replaceById__post_MapGuangzhous_{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/MapGuangzhou'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapGuangzhou'
deprecated: false
/MapGuangzhous/findOne:
get:
tags:
- MapGuangzhou
summary: Find first instance of the model matched by filter from the data source.
operationId: MapGuangzhou.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/MapGuangzhou'
deprecated: false
/MapGuangzhous/update:
post:
tags:
- MapGuangzhou
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: MapGuangzhou.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/MapGuangzhou'
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
/MapGuangzhous/count:
get:
tags:
- MapGuangzhou
summary: Count instances of the model matched by where from the data source.
operationId: MapGuangzhou.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
/MapBeijings:
post:
tags:
- MapBeijing
summary: Create a new instance of the model and persist it into the data source.
operationId: MapBeijing.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MapBeijing'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapBeijing'
deprecated: false
patch:
tags:
- MapBeijing
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: MapBeijing.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MapBeijing'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapBeijing'
deprecated: false
put:
tags:
- MapBeijing
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: MapBeijing.replaceOrCreate__put_MapBeijings
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MapBeijing'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapBeijing'
deprecated: false
get:
tags:
- MapBeijing
summary: Find all instances of the model matched by filter from the data source.
operationId: MapBeijing.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/MapBeijing'
deprecated: false
/MapBeijings/replaceOrCreate:
post:
tags:
- MapBeijing
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: MapBeijing.replaceOrCreate__post_MapBeijings_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MapBeijing'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapBeijing'
deprecated: false
/MapBeijings/upsertWithWhere:
post:
tags:
- MapBeijing
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: MapBeijing.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/MapBeijing'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapBeijing'
deprecated: false
'/MapBeijings/{id}/exists':
get:
tags:
- MapBeijing
summary: Check whether a model instance exists in the data source.
operationId: 'MapBeijing.exists__get_MapBeijings_{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
'/MapBeijings/{id}':
head:
tags:
- MapBeijing
summary: Check whether a model instance exists in the data source.
operationId: 'MapBeijing.exists__head_MapBeijings_{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:
- MapBeijing
summary: 'Find a model instance by {{id}} from the data source.'
operationId: MapBeijing.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/MapBeijing'
deprecated: false
put:
tags:
- MapBeijing
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MapBeijing.replaceById__put_MapBeijings_{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/MapBeijing'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapBeijing'
deprecated: false
delete:
tags:
- MapBeijing
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: MapBeijing.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:
- MapBeijing
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: MapBeijing.prototype.patchAttributes
parameters:
- name: id
in: path
description: MapBeijing 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/MapBeijing'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapBeijing'
deprecated: false
'/MapBeijings/{id}/replace':
post:
tags:
- MapBeijing
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MapBeijing.replaceById__post_MapBeijings_{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/MapBeijing'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapBeijing'
deprecated: false
/MapBeijings/findOne:
get:
tags:
- MapBeijing
summary: Find first instance of the model matched by filter from the data source.
operationId: MapBeijing.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/MapBeijing'
deprecated: false
/MapBeijings/update:
post:
tags:
- MapBeijing
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: MapBeijing.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/MapBeijing'
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
/MapBeijings/count:
get:
tags:
- MapBeijing
summary: Count instances of the model matched by where from the data source.
operationId: MapBeijing.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
/MapShenzhens:
post:
tags:
- MapShenzhen
summary: Create a new instance of the model and persist it into the data source.
operationId: MapShenzhen.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MapShenzhen'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapShenzhen'
deprecated: false
patch:
tags:
- MapShenzhen
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: MapShenzhen.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MapShenzhen'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapShenzhen'
deprecated: false
put:
tags:
- MapShenzhen
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: MapShenzhen.replaceOrCreate__put_MapShenzhens
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MapShenzhen'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapShenzhen'
deprecated: false
get:
tags:
- MapShenzhen
summary: Find all instances of the model matched by filter from the data source.
operationId: MapShenzhen.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/MapShenzhen'
deprecated: false
/MapShenzhens/replaceOrCreate:
post:
tags:
- MapShenzhen
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: MapShenzhen.replaceOrCreate__post_MapShenzhens_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MapShenzhen'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapShenzhen'
deprecated: false
/MapShenzhens/upsertWithWhere:
post:
tags:
- MapShenzhen
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: MapShenzhen.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/MapShenzhen'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapShenzhen'
deprecated: false
'/MapShenzhens/{id}/exists':
get:
tags:
- MapShenzhen
summary: Check whether a model instance exists in the data source.
operationId: 'MapShenzhen.exists__get_MapShenzhens_{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
'/MapShenzhens/{id}':
head:
tags:
- MapShenzhen
summary: Check whether a model instance exists in the data source.
operationId: 'MapShenzhen.exists__head_MapShenzhens_{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:
- MapShenzhen
summary: 'Find a model instance by {{id}} from the data source.'
operationId: MapShenzhen.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/MapShenzhen'
deprecated: false
put:
tags:
- MapShenzhen
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MapShenzhen.replaceById__put_MapShenzhens_{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/MapShenzhen'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapShenzhen'
deprecated: false
delete:
tags:
- MapShenzhen
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: MapShenzhen.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:
- MapShenzhen
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: MapShenzhen.prototype.patchAttributes
parameters:
- name: id
in: path
description: MapShenzhen 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/MapShenzhen'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapShenzhen'
deprecated: false
'/MapShenzhens/{id}/replace':
post:
tags:
- MapShenzhen
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MapShenzhen.replaceById__post_MapShenzhens_{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/MapShenzhen'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MapShenzhen'
deprecated: false
/MapShenzhens/findOne:
get:
tags:
- MapShenzhen
summary: Find first instance of the model matched by filter from the data source.
operationId: MapShenzhen.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/MapShenzhen'
deprecated: false
/MapShenzhens/update:
post:
tags:
- MapShenzhen
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: MapShenzhen.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/MapShenzhen'
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
/MapShenzhens/count:
get:
tags:
- MapShenzhen
summary: Count instances of the model matched by where from the data source.
operationId: MapShenzhen.count
parameters:
parameters:
- name: where
- name: where
in: query
in: query
...
@@ -35850,7 +37394,67 @@ definitions:
...
@@ -35850,7 +37394,67 @@ definitions:
required:
required:
- id
- id
additionalProperties: false
additionalProperties: false
MapCity:
MapShanghai:
properties:
id:
maxLength: 36
type: string
city:
maxLength: 100
type: string
name:
maxLength: 100
type: string
value:
maxLength: 45
type: string
additionalProperties: false
MapChengdu:
properties:
id:
maxLength: 36
type: string
city:
maxLength: 100
type: string
name:
maxLength: 100
type: string
value:
maxLength: 45
type: string
additionalProperties: false
MapGuangzhou:
properties:
id:
maxLength: 36
type: string
city:
maxLength: 100
type: string
name:
maxLength: 100
type: string
value:
maxLength: 45
type: string
additionalProperties: false
MapBeijing:
properties:
id:
maxLength: 36
type: string
city:
maxLength: 100
type: string
name:
maxLength: 100
type: string
value:
maxLength: 45
type: string
additionalProperties: false
MapShenzhen:
properties:
properties:
id:
id:
maxLength: 36
maxLength: 36
server/model-config.json
View file @
4295d116
...
@@ -365,7 +365,23 @@
...
@@ -365,7 +365,23 @@
"dataSource"
:
"ruipeng"
,
"dataSource"
:
"ruipeng"
,
"public"
:
true
"public"
:
true
},
},
"MapCity"
:
{
"MapShanghai"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
},
"MapChengdu"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
},
"MapGuangzhou"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
},
"MapBeijing"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
},
"MapShenzhen"
:
{
"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