Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • M mapeditor
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Jira
    • Jira
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Jobs
  • Issue Boards
Collapse sidebar
  • Chatchawan Polmafoung
  • mapeditor
  • Wiki
  • crud service docs

crud service docs · Changes

Page history
chatchawan created page: crud service docs authored Sep 22, 2015 by Chatchawan Polmafoung's avatar Chatchawan Polmafoung
Hide whitespace changes
Inline Side-by-side
crud-service-docs.markdown
View page @ baabeef7
#Create poi
### Get Poi in bounds
get http://172.16.20.63:3000/poi/:zoom/:nwlng/:nwlat/:selng/:selat
```json
respone {
"MAPINFO_ID" : 10000,
"GEOSPATIAL" : {
"x" : 0 // lng
"y" : 0 // lat
},
"NAME_THAI" : "",
"NAME_ENG" : "",
"LABEL_THAI" : "",
"LABEL_ENG" : ""
}
```
### delete poi
delete http://172.16.20.63:3000/poi/:mapinfo_id
response 204 = success
400 = err
### update poi
put http://172.16.20.63:3000/poi/:mapinfo_id
```json
request data = {
'latlng' : {
'lat' : 0,
'lng' : 0
},
nameThai : '',
nameEng : '',
labelThai : '',
labelEng : ''
}
// จะใส่แค่ตัวแปรที่เปลี่ยนหรือทั้งหมดก็ได้
response 201 = success
400 = err
```
### Create poi
post http://127.0.0.1:3000/poi/
```json
{
"latlng" : {
......@@ -19,11 +68,22 @@ post http://127.0.0.1:3000/poi/
}
```
#Get All Category
### Get All Category
get http://127.0.0.1:3000/category
#Get All Provice
### Get All Provice
get http://127.0.0.1:3000/land/
#Get All Amphoe in Provice
### Get All Amphoe in Provice
get http://127.0.0.1:3000/land/:pcode
#Get All Tambon in Amphoe
get http://127.0.0.1:3000/land/:pcode/acode
### Get All Tambon in Amphoe
get http://127.0.0.1:3000/land/:pcode/acode
\ No newline at end of file
Clone repository
  • EcmaScript 6.0
  • crud service docs
  • ecmascript 6
  • Home