Commit f375deb1 authored by redmitry@list.ru's avatar redmitry@list.ru

better index.html

parent 0bd5136d
<!DOCTYPE html>
<html>
<head>
<title>OpenEBench API</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<h1>OpenEBench API</h1>
<p>GET https://openebench.bsc.es/api/scientific/access/{collection}/{id}[/query]</p>
<p>PUT https://openebench.bsc.es/api/scientific/access/{collection}/</p>
</body>
<head>
<title>OpenEBench REST API</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
body { width: 90%;
margin-left: auto;
margin-right: auto;
}
table {
width: 100%;
border-collapse: separate;
border-spacing: 0px 12px;
}
td { border-width: 1px 0px 1px 0px;
border-style: solid;
padding: 8px;
}
td:first-child { width: 5%; }
td:last-child { width: 95%; }
tr td:first-child {
border-left-width: 1px !important;
border-top-left-radius: 8px;
border-bottom-left-radius: 8px;
}
tr td:last-child {
border-right-width: 1px !important;
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
}
tr td:first-child:before {
display: inline-block;
width: 100%;
text-align: center;
padding: 2px 0px 2px 0px;
}
tr.GET td {
border-color: #61affe;
background-color: #eff7ff;
}
tr.GET td:first-child:before {
content: "GET";
color: #eff7ff;
background-color: #61affe;
}
tr.HEAD td {
border-color: #9012fe;
background-color: #f4e7ff;
}
tr.HEAD td:first-child:before {
content: "HEAD";
color: #f4e7ff;
background-color: #9012fe;
}
</style>
</head>
<body>
<h1>OpenEBench REST API</h1>
<table>
<tr class="GET">
<td></td>
<td>/{collection}</td><td>returns OpenEBench collection of data</td>
</tr>
<tr class="GET">
<td></td>
<td>/{collection}/{id}</td><td>returns OpenEBench data object</td>
</tr>
<tr class="HEAD">
<td></td>
<td>/{collection}/{id}</td><td>checks whether the object exists</td>
</tr>
</table>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment