GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

export const federation = new Federation<void>(); federation .actor("/users/{handle}", async (ctx, handle, key) => { // ... omitted for brevity }) .keyPair(async (ctxData, handle) => { // ... omitted for brevity }); federation .outbox("/users/{handle}/outbox", async (ctx, handle, cursor) =>{ // ... omitted for brevity }) .counter(async (ctx, handle) => omitted) .firstCursor(async (ctx, handle) => omitted); federation .inbox("/users/{handle}/inbox", "/inbox") .on(Follow, async (ctx, follow) => omitted) .on(Undo, async (ctx, undo) => omitted); federation .following( "/users/{handle}/following", async (ctx, handle, cursor) => { // ... omitted for brevity } ) .counter(async (ctx, handle) => omitted) .firstCursor(async (ctx, handle) => omitted); federation .followers( "/users/{handle}/followers", async (ctx, handle, cursor) => { // ... omitted for brevity } ) .counter(async (ctx, handle) => omitted) .firstCursor(async (ctx, handle) => omitted);

Download link

https://todon.eu/system/media_attachments/files/112/019/500/393/669/692/original/0647fa93a274e197.png

Notices where this attachment appears

  1. Embed this notice
    洪 民憙 (Hong Minhee) (hongminhee@todon.eu)'s status on Friday, 01-Mar-2024 17:32:12 JST 洪 民憙 (Hong Minhee) 洪 民憙 (Hong Minhee)

    I'm currently building a framework for a federated server app based on ActivityPub, and I'm considering between two styles of APIs. Which one seems better to you?

    In conversation Friday, 01-Mar-2024 17:32:12 JST from todon.eu permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.