hurt
Version:
HTTP and SPA routing using RFC 6570 URI templates
38 lines (37 loc) • 791 B
JSON
[
{
"path": "/",
"method": "GET",
"response": { "data": "ROOT" }
},
{
"path": "/object/123abc",
"method": "GET",
"response": { "data": "OBJECT 123abc" }
},
{
"path": "/file/my-file",
"method": "GET",
"response": { "data": "FILE my-file" }
},
{
"path": "/file/my-directory/my-file",
"method": "GET",
"response": { "data": "FILE my-directory/my-file" }
},
{
"path": "/search?q=my+search",
"method": "GET",
"response": { "data": "RESULTS my+search, PAGE 1" }
},
{
"path": "/search?q=my%20search",
"method": "GET",
"response": { "data": "RESULTS my search, PAGE 1" }
},
{
"path": "/search?q=my+search&page=2",
"method": "GET",
"response": { "data": "RESULTS my+search, PAGE 2" }
}
]