-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (57 loc) · 1.59 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Image Search</title>
<style>
body {
color: #333333;
font-size: 21px;
background-color: #fafafa;
}
p {
letter-spacing: 1px;
}
span {
color: #9900e6;
}
.spn{
background-color: #efefef;
color: #ff6666;
}
a {
text-decoration: none;
color : #ff3333;
background-color: #f3f3f3;
}
a:hover{text-decoration: underline;}
h2 {
text-align: center;
line-height: 20px;
}
</style>
</head>
<body>
<h2>Image Search Abstraction Layer</h2>
<p>Usage : " <span class="spn"> https://mgjean-img-search.glitch.me/<span>query</span>&<span>count</span>&<span>offset</span></span> "</p>
<ul>
<li><span>query</span> : the thing you want to search </li>
<li><span>count </span> : number of results </li>
<li><span>offset</span> : skip number of result from the start </li>
</ul>
<p>Search : " <a href="https://mgjean-img-search.glitch.me/cats&5&0">https://mgjean-img-search.glitch.me/cats&5&0</a> "</p>
<p>Return : '<code>{"name" : "...",
"content" : "...",
"thumbnail" : "...",
"source" : "...",
"published" : "..."}</code>'</p>
<hr />
<p>Usage : " <span class="spn"> https://mgjean-img-search.glitch.me/<span>history</span>/<span>limit</span></span> "</p>
<ul>
<li><span>history</span> : view search history</li>
<li><span>limit</span> : number of search history to display</li>
</ul>
<p>Searched : " <a href="https://mgjean-img-search.glitch.me/history/10">https://mgjean-img-search.glitch.me/history/10</a> "</p>
<p>Return : '<code>{"query" : "...",
"time" : "..."}</code>'</p>
</body>
</html>