| 1 |
<?xml version="1.0" encoding="utf-8"?> |
|---|
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
|---|
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja"> |
|---|
| 4 |
<head> |
|---|
| 5 |
<meta name="Author" content="ãªãªãã ã¿ã«ã·"> |
|---|
| 6 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|---|
| 7 |
<link rev="MADE" href="mailto:miya@mizzy.org" /> |
|---|
| 8 |
<link rel="stylesheet" type="text/css" href="css/style.css" title="style.css" /> |
|---|
| 9 |
<title>A2T2 (Atom API Test Tool)</title> |
|---|
| 10 |
[% c.prototype.define_javascript_functions %] |
|---|
| 11 |
<script type="text/javascript"> |
|---|
| 12 |
function loading(){ |
|---|
| 13 |
$('result').innerHTML = '<img src="img/bigrotation2.gif" style="margin-left: 2em;" />'; |
|---|
| 14 |
} |
|---|
| 15 |
</script> |
|---|
| 16 |
</head> |
|---|
| 17 |
<body> |
|---|
| 18 |
<h1><a name="form">A2T2 (Atom API Test Tool)</a></h1> |
|---|
| 19 |
|
|---|
| 20 |
[% c.prototype.form_remote_tag( |
|---|
| 21 |
url => 'post', |
|---|
| 22 |
update => 'result', |
|---|
| 23 |
loading => 'loading()', |
|---|
| 24 |
) %] |
|---|
| 25 |
|
|---|
| 26 |
<p> |
|---|
| 27 |
<label>Resouce URI: </label><input type="text" name="resource_uri" size="60" /><br /> |
|---|
| 28 |
|
|---|
| 29 |
<label>User: </label><input type="text" name="username" size="20" /><br /> |
|---|
| 30 |
<label>Password: </label><input type="password" name="password" size="20" /><br /> |
|---|
| 31 |
|
|---|
| 32 |
<label>Auth Method: </label> |
|---|
| 33 |
<select name="auth_method"> |
|---|
| 34 |
<option value="digest">WSSE</option> |
|---|
| 35 |
<option value="basic">Basic</option> |
|---|
| 36 |
</select> |
|---|
| 37 |
<br /> |
|---|
| 38 |
|
|---|
| 39 |
<label>Request Method: </label> |
|---|
| 40 |
<select name="request_method"> |
|---|
| 41 |
<option value="getFeed">GET(getFeed)</option> |
|---|
| 42 |
<option value="getEntry">GET(getEntry)</option> |
|---|
| 43 |
<option value="createEntry">POST(createEntry)</option> |
|---|
| 44 |
<option value="updateEntry">PUT(updateEntry)</option> |
|---|
| 45 |
<option value="deleteEntry">DELETE(deleteEntry)</option> |
|---|
| 46 |
</select> |
|---|
| 47 |
<br /> |
|---|
| 48 |
|
|---|
| 49 |
<label>Request Content: </label> |
|---|
| 50 |
<textarea name="request_content" cols="60" rows="10"> |
|---|
| 51 |
</textarea> |
|---|
| 52 |
<br /> |
|---|
| 53 |
|
|---|
| 54 |
<label></label> |
|---|
| 55 |
<input type="submit" value="submit" /> <a href="#result">(jump to result)</a> |
|---|
| 56 |
|
|---|
| 57 |
</p> |
|---|
| 58 |
</form> |
|---|
| 59 |
|
|---|
| 60 |
|
|---|
| 61 |
<div id="result"> |
|---|
| 62 |
|
|---|
| 63 |
</div> |
|---|
| 64 |
|
|---|
| 65 |
</body> |
|---|
| 66 |
</html> |
|---|