Story
HTTP Method : POST(create)/PUT(update)
URI : /story
Status |
Description |
OK |
view 페이지로 redirect |
ERROR |
error message return |
콘텐츠를 조회하기 위한 방법으로 동일한 uri-template을 가진다.
HTTP Method : GET
URI : /story/:contentid
parameter 없음
* Accept : text/html
* Accept : application/json
HTTP Method : DELETE
URI : /story/:contentid
parameter 없음
Status |
Description |
OK |
view 페이지로 redirect |
ERROR |
error message return |
HTTP Method : GET
URI : /story
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": "story",
"doc": [
{
"_id": "54c5a6c7414598bb7064fc16",
"uuid": "a0c81dd8-fa6c-4d33-86c3-0bc4539871cb",
"name": "KIST L1 for google glass",
"author": "anonymous",
"desc": "<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n <meta charset=\"utf-8\">\r\n <title> KIST </title>\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"http://www.tourcloud.org/external/timesheet/layout.css\">\r\n <style type=\"text/css\">\r\n seq { display: block; }\r\n </style>\r\n <script type=\"text/javascript\" src=\"http://www.tourcloud.org/external/timesheet/timesheets.js\"></script>\r\n</head>\r\n<body class=\"crossfade\">\r\n\t<div id=\"banner\" class=\"highlight\" timeContainer=\"seq\" repeatCount=\"indefinite\">\r\n\t\t<img dur=\"5s\" src=\"http://tourcloud.org/media/245945a7-b5f5-417c-91e5-8d96f6a8b899\">\r\n\t\t<img dur=\"3s\" src=\"http://tourcloud.org/media/4c4b8d39-6924-4a5a-93e5-92dc9713ad68\">\r\n\t\t<img dur=\"3s\" src=\"http://tourcloud.org/media/439696a4-9421-4665-8116-e7d46fb61a18\">\r\n\t\t<img dur=\"3s\" src=\"http://tourcloud.org/media/25df9681-89c7-49aa-ad18-70904cd2ef57\">\r\n\t</div>\r\n</body>\r\n</html>",
"__v": 0,
"revision": 1,
"changed": "2015-01-26T02:30:31.826Z",
"created": "2015-01-26T02:30:31.826Z",
"access": [
"Public"
],
"tags": null,
"POIs": null,
"storytype": "HTML"
}
]
}
] |
|
|