update docs
This commit is contained in:
parent
dd9fff02a1
commit
9c17248bfa
|
@ -10,7 +10,7 @@
|
||||||
<li>
|
<li>
|
||||||
<h3>POST /api/sessions
|
<h3>POST /api/sessions
|
||||||
<br>
|
<br>
|
||||||
<code>{"sub":"<strong><em>jon@example.com</em></strong>"}</code>
|
<code>{"sub":"<strong><em><email></em></strong>"}</code>
|
||||||
</h3>
|
</h3>
|
||||||
<pre><code># Ask for an auth code (swap sub)
|
<pre><code># Ask for an auth code (swap sub)
|
||||||
|
|
||||||
|
@ -21,9 +21,9 @@ curl -X POST http://localhost:4080/api/sessions \
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<h3>POST /api/sessions/<strong><em>id</em></strong>
|
<h3>POST /api/sessions/<strong><em><id></em></strong>
|
||||||
<br>
|
<br>
|
||||||
<code>{"otp":"<strong><em>auth-code</em></strong>"}</code>
|
<code>{"otp":"<strong><em><auth-code></em></strong>"}</code>
|
||||||
</h3>
|
</h3>
|
||||||
<pre><code># Validate auth code (swap session id, sub, and otp)
|
<pre><code># Validate auth code (swap session id, sub, and otp)
|
||||||
|
|
||||||
|
@ -39,8 +39,8 @@ curl -X POST http://localhost:4080/api/sessions/<strong><em>xyz</em></strong> \
|
||||||
<li>
|
<li>
|
||||||
<h3>POST /api/rooms/general
|
<h3>POST /api/rooms/general
|
||||||
<br>
|
<br>
|
||||||
<code>Authorization: Bearer <strong><em>api-token</em></strong>
|
<code>Authorization: Bearer <strong><em><api-token></em></strong>
|
||||||
<br>{"message":"<strong><em>Hello, World!</em></strong>"}</code>
|
<br>{"message":"<strong><em><msg></em></strong>"}</code>
|
||||||
</h3>
|
</h3>
|
||||||
<pre><code># Post a message (swap api-token)
|
<pre><code># Post a message (swap api-token)
|
||||||
|
|
||||||
|
@ -54,8 +54,7 @@ curl -X POST http://localhost:4080/api/rooms/general \
|
||||||
<li>
|
<li>
|
||||||
<h3>GET /api/rooms/general
|
<h3>GET /api/rooms/general
|
||||||
<br>
|
<br>
|
||||||
<code>Authorization: Bearer <strong><em>api-token</em></strong>
|
<code>Authorization: Bearer <strong><em><api-token></em></strong></code>
|
||||||
<br>{"message":"<strong><em>Hello, World!</em></strong>"}</code>
|
|
||||||
</h3>
|
</h3>
|
||||||
<pre><code># Get a room's messages (swap api-token, since unix-epoch)
|
<pre><code># Get a room's messages (swap api-token, since unix-epoch)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue