···11{% extends "base.html.j2" %}
22+{% import "try-it-macros.html.j2" as try_it %}
2334{% block title %}Hello!{% endblock %}
55+{% block body_classes %}home{% endblock %}
4657{% block content %}
68 <p>Every interaction in Bluesky and atproto at large tends to appear as a <em>link</em> from a new repository record to <em>somewhere</em>: liking a post creates a record with a link to the post, blocking a spammer creates a record with reference to their DID.</p>
···2426 <li><code>path</code>: required, must url-encode. Example: <code>.subject.uri</code></li>
2527 </ul>
26282727- <p><strong>Live example:</strong> <code><a href="/links?target=at://did:plc:vc7f4oafdgxsihk4cry2xpze/app.bsky.feed.post/3lgwdn7vd722r&collection=app.bsky.feed.like&path=.subject.uri">/links?target=at://did:plc:cjfcz3t36f6nrprarkhkycxo/app.bsky.feed.post/3lgyagnrqnc2t&collection=app.bsky.feed.like&path=.subject.uri</a></code></p>
2929+ <p style="margin-bottom: 0"><strong>Try it:</strong></p>
3030+ {% call try_it::links("at://did:plc:vc7f4oafdgxsihk4cry2xpze/app.bsky.feed.post/3lgwdn7vd722r", "app.bsky.feed.like", ".subject.uri") %}
283129323033 <h3><code>GET /links/count</code></h3>
···4043 <li><code>cursor</code>: optional, see Definitions.</li>
4144 </ul>
42454343- <p><strong>Live example:</strong> <code><a href="/links/count?target=did:plc:vc7f4oafdgxsihk4cry2xpze&collection=app.bsky.graph.block&path=.subject">/links/count?target=did:plc:vc7f4oafdgxsihk4cry2xpze&collection=app.bsky.graph.block&path=.subject</a></code></p>
4646+ <p style="margin-bottom: 0"><strong>Try it:</strong></p>
4747+ {% call try_it::links_count("did:plc:vc7f4oafdgxsihk4cry2xpze", "app.bsky.graph.block", ".subject") %}
444845494650 <h3><code>GET /links/all/count</code></h3>
···5357 <li><code>target</code>: required, must url-encode. Example: <code>did:plc:oky5czdrnfjpqslsw2a5iclo</code></li>
5458 </ul>
55595656- <p><strong>Live example:</strong> <code><a href="/links/all/count?target=did:plc:oky5czdrnfjpqslsw2a5iclo">/links/all/count?target=did:plc:oky5czdrnfjpqslsw2a5iclo</a></code></p>
6060+ <p style="margin-bottom: 0"><strong>Try it:</strong></p>
6161+ {% call try_it::links_all_count("did:plc:oky5czdrnfjpqslsw2a5iclo") %}
576258635964 <h2>Definitions</h2>
+2-3
link_aggregator/templates/links-all-count.html.j2
···11{% extends "base.html.j2" %}
22+{% import "try-it-macros.html.j2" as try_it %}
2334{% block title %}All link counts{% endblock %}
45···1112 {% endif %}
1213 </h2>
13141414- <form method="get" action="/links/all/count">
1515- <pre class="code"><strong>GET</strong> /links?target=<input type="text" name="target" value="{{ query.target }}" placeholder="target" /> <button type="submit">get link counts</button></pre>
1616- </form>
1515+ {% call try_it::links_all_count(query.target) %}
17161817 <h3>Links by collection and path:</h3>
1918