Media
콘텐츠를 생성하거나 수정을 위한 API이다.
HTTP Method : POST(create)/PUT(update)
URI : /media
Status |
Description |
OK |
view 페이지로 redirect |
ERROR |
error message return |
콘텐츠를 조회하기 위한 방법으로 동일한 uri-template을 가진다.
HTTP Method : GET
URI : /media/:contentid
parameter 없음
* Accept : text/html
미디어 전송
* Accept : application/json
{
"_id": "54cb4a8e4b8ecc350c5f217d",
"uuid": "55af8de6-439b-4344-927c-0ee6eb8de601",
"name": "File Name:1387510886925.jpg",
"desc": "File Description:1387510886925.jpg",
"author": "anonymous",
"__v": 0,
"revision": 1,
"changed": "2015-01-30T09:10:38.241Z",
"created": "2015-01-30T09:10:38.241Z",
"access": [
"Public"
],
"tags": [],
"POIs": [],
"trajectory": {
"coordinates": []
},
"location": {
"type": "Point",
"coordinates": [
{
"type": "Point",
"coordinates": [
126.0423515064271,
34.46057109367654
]
}
]
},
"fileinfo": [
{
"origin": "1387510886925.jpg",
"mimetype": "image/jpeg",
"filesize": 48684,
"filepath": "/files/55af8de6-439b-4344-927c-0ee6eb8de601",
"_id": "54cb4a8e4b8ecc350c5f217e"
}
],
"mediatype": "File"
}
|
HTTP Method : DELETE
URI : /media/:contentid
parameter 없음
Status |
Description |
OK |
view 페이지로 redirect |
ERROR |
error message return |
HTTP Method : GET
URI : /media
Parameters |
Description |
Example |
region |
POI가 포함되는 영역(location 과 exclusive) |
{"type": "Polygon","coordinates": [[126.97379730926367,37.58326714052456],[126.97388313995633,37.579713112229854]]} |
location |
사용자가 지정하는 한 점(region과 exclusive) |
{"type": "Point","coordinates": [126.97697304473937,37.57853973549271]} |
spatialop |
region or location 에 대한 spatial operator |
geoWithin |
spatialtarget |
spatial operator 를 적용할 대상 |
region |
keyword |
content 제목 중 keyword 를 포함 |
경복궁 |
lod.server |
true인 경우 하위 lod server까지 검색 |
true |
limit |
한번에 paging 할 최대 record 갯수 |
12 |
start |
paging start index |
1 |
* Accept : application/json
[
{
"source": "tourcloud.org",
"contenttype": "media",
"doc": [
{
"_id": "54cb4975afe237e67e42efd7",
"uuid": "8eb92321-8e42-42cb-8b00-00ecf3f551c8",
"name": "File Name:1387510886925.jpg",
"desc": "File Description:1387510886925.jpg",
"author": "anonymous",
"__v": 0,
"revision": 1,
"changed": "2015-01-30T09:05:57.788Z",
"created": "2015-01-30T09:05:57.788Z",
"access": [
"Public"
],
"tags": [],
"POIs": [],
"trajectory": {
"coordinates": []
},
"location": {
"type": "Point",
"coordinates": [
{
"type": "Point",
"coordinates": [
126.0423515064271,
34.46057109367654
]
}
]
},
"fileinfo": [
{
"origin": "1387510886925.jpg",
"mimetype": "image/jpeg",
"filesize": 48684,
"filepath": "/files/8eb92321-8e42-42cb-8b00-00ecf3f551c8",
"_id": "54cb4975afe237e67e42efd8"
}
],
"mediatype": "File"
}
]
}
] |
|