summary refs log tree commit diff stats
path: root/assets/tmpl
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-06-04 03:44:01 -0400
committerBen Morrison <ben@gbmor.dev>2019-06-04 03:44:01 -0400
commit5be84b22383bd7c7820ae8a88afdc27c55a7b0d0 (patch)
treee26520f883646185d49c2020a44ebbb7714172e1 /assets/tmpl
parent8916d1e5c7a99c66923b0ff08f27fd32be2b4219 (diff)
downloadgetwtxt-5be84b22383bd7c7820ae8a88afdc27c55a7b0d0.tar.gz
fixed most example api calls with horizontal scrolling v0.2.1
Diffstat (limited to 'assets/tmpl')
-rw-r--r--assets/tmpl/index.html20
1 files changed, 10 insertions, 10 deletions
diff --git a/assets/tmpl/index.html b/assets/tmpl/index.html
index c6cc6a9..4eaca5c 100644
--- a/assets/tmpl/index.html
+++ b/assets/tmpl/index.html
@@ -38,7 +38,7 @@
         If both <code>?url=X</code> and <code>?nickname=X</code> are not passed, or the user already exists in 
         this registry, you will receive <code>400 Bad Request</code> as a response. If you are unsure what went
         wrong, the error message should provide enough information for you to correct the request.</p>
-        <pre><code>$ curl -X POST '{{.URL}}/api/plain/users?url=https://example3.com/twtxt.txt&amp;nickname=foo_barrington'
+        <pre><code>$ curl -X POST '{{.URL}}/api/plain/users?url=https://foo.ext/twtxt.txt&amp;nickname=foobar'
 200 OK</code></pre>
       <p>Query responses are in descending chronological order. This means the newest user or tweet will be in the
       first row of the response, with older users or tweets in subsequent rows. Additionally, All queries accept <code>?page=N</code> 
@@ -61,15 +61,7 @@ foobar    https://example2.com/twtxt.txt    2019-05-13T12:46:20.000Z    It's bee
 ...</code></pre>
       <p>Query tweets by keyword:</p>
         <pre><code>$ curl '{{.URL}}/api/plain/tweets?q=getwtxt'
-foo_barrington    https://example3.com/twtxt.txt    2019-04-30T06:00:09.000Z    I just built getwtxt, time to set it up!</code></pre>
-      <p>Get all tweets with mentions:</p>
-        <pre><code>$ curl '{{.URL}}/api/plain/mentions'
-foo               https://example.com/twtxt.txt     2019-02-28T11:06:44.000Z    @&lt;foo_barrington https://example3.com/twtxt.txt&gt; Hey!! Are you still working on that project?
-bar               https://mxmmplm.com/twtxt.txt     2019-02-27T11:06:44.000Z    @&lt;foobar https://example2.com/twtxt.txt&gt; How's your day going, bud?
-foo_barrington    https://example3.com/twtxt.txt    2019-02-26T11:06:44.000Z    @&lt;foo https://example.com/twtxt.txt&gt; Did you eat my lunch?</code></pre>
-      <p>Query tweets by mention URL:</p>
-        <pre><code>$ curl '{{.URL}}/api/plain/mentions?url=https://foobarrington.co.uk/twtxt.txt'
-foo    https://example.com/twtxt.txt    2019-02-26T11:06:44.000Z    @&lt;foo_barrington https://example3.com/twtxt.txt&gt; Hey!! Are you still working on that project?</code></pre>
+foo_barrington    https://example3.com/twtxt.txt    2019-04-30T06:00:09.000Z    I just installed getwtxt</code></pre>
       <p>Get all tweets with tags:</p>
         <pre><code>$ curl '{{.URL}}/api/plain/tags'
 foo    https://example.com/twtxt.txt    2019-03-01T09:33:12.000Z    No, seriously, I need #help
@@ -78,6 +70,14 @@ foo    https://example.com/twtxt.txt    2019-03-01T09:31:02.000Z    I love #prog
       <p>Query tweets by tag:</p>
         <pre><code>$ curl '{{.URL}}/api/plain/tags/programming'
 foo    https://example.com/twtxt.txt    2019-03-01T09:31:02.000Z    I love #programming!</code></pre>
+      <p>Get all tweets with mentions:</p>
+        <pre><code>$ curl '{{.URL}}/api/plain/mentions'
+foo               https://example.com/twtxt.txt     2019-02-28T11:06:44.000Z    @&lt;foo_barrington https://example3.com/twtxt.txt&gt; Hey!! Are you still working on that project?
+bar               https://mxmmplm.com/twtxt.txt     2019-02-27T11:06:44.000Z    @&lt;foobar https://example2.com/twtxt.txt&gt; How's your day going, bud?
+foo_barrington    https://example3.com/twtxt.txt    2019-02-26T11:06:44.000Z    @&lt;foo https://example.com/twtxt.txt&gt; Did you eat my lunch?</code></pre>
+      <p>Query tweets by mention URL:</p>
+        <pre><code>$ curl '{{.URL}}/api/plain/mentions?url=https://foobarrington.co.uk/twtxt.txt'
+foo    https://example.com/twtxt.txt    2019-02-26T11:06:44.000Z    @&lt;foo_barrington https://example3.com/twtxt.txt&gt; Hey!! Are you still working on that project?</code></pre>
     </div>
     <div id="foot">
       powered by <a href="https://github.com/getwtxt/getwtxt">getwtxt</a>
hor Ben Morrison <ben@gbmor.dev> 2019-06-06 02:20:38 -0400 committer Ben Morrison <ben@gbmor.dev> 2019-06-06 02:22:54 -0400 renamed functions' href='/gbmor/getwtxt/commit/svc/cache.go?h=v0.4.15&id=1a15258ee5d93ffef8f8c768ff725d7429a3248c'>1a15258 ^
b961a70 ^
c896e6b ^

fdbc01d ^
c896e6b ^


c896e6b ^

c6ced3e ^




d6d0c18 ^
c38385c ^
c6ced3e ^
c896e6b ^

b961a70 ^
c896e6b ^
c6ced3e ^
c896e6b ^
d6d0c18 ^
c896e6b ^
8b6ab99 ^
c896e6b ^
55c8ffa ^
c896e6b ^
b961a70 ^
c896e6b ^

8b6ab99 ^
cd635e6 ^


c896e6b ^

2b0d4a5 ^




69217dd ^




2b0d4a5 ^
b961a70 ^
2b0d4a5 ^
25972a6 ^
69217dd ^
25972a6 ^
b961a70 ^
25972a6 ^

e9d4a6b ^
25972a6 ^

e9d4a6b ^
25972a6 ^

f316396 ^

25972a6 ^

2b0d4a5 ^
25972a6 ^



b961a70 ^
25972a6 ^
2b0d4a5 ^
e9d4a6b ^
25972a6 ^

e9d4a6b ^
25972a6 ^
2b0d4a5 ^
2b0d4a5 ^

69217dd ^
2b0d4a5 ^
b961a70 ^
2b0d4a5 ^

e9d4a6b ^
2b0d4a5 ^

e9d4a6b ^
2b0d4a5 ^

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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138