Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. deutrino (deutrino@mstdn.io)'s status on Friday, 12-Oct-2018 18:28:41 EDT deutrino deutrino

    Is there somebody online who knows the URL schema to Mastodon's federation API?

    Is it just, roughly:

    inboxes/create
    inboxes/set_account
    inboxes/body (etc..)
    outboxes/show
    outboxes/outbox_presenter
    outboxes/set_statuses (etc..)
    collections/show
    collections/set_statuses
    collections/scope_for_collection (etc..)

    (I'm just taking those from method names in the #ActivityPub controllers in Mastodon... I don't know Ruby or Rails.) #mastodev

    In conversation Friday, 12-Oct-2018 18:28:41 EDT from mstdn.io permalink
    1. deutrino (deutrino@mstdn.io)'s status on Friday, 12-Oct-2018 20:19:24 EDT deutrino deutrino
      in reply to

      oh my god this code ><

      In conversation Friday, 12-Oct-2018 20:19:24 EDT from mstdn.io permalink
      1. deutrino (deutrino@mstdn.io)'s status on Friday, 12-Oct-2018 20:21:24 EDT deutrino deutrino
        in reply to

        I mean you'd think that there'd be SOME differentiation between activitypub vs other types of endpoints beyond 'format.json do'.

        good god, man.

        In conversation Friday, 12-Oct-2018 20:21:24 EDT from mstdn.io permalink
    2. deutrino (deutrino@mstdn.io)'s status on Friday, 12-Oct-2018 20:40:30 EDT deutrino deutrino
      in reply to

      I managed to extract these Mastodon federation API endpoint (filename, [endpoints]) tuples from the code. No idea if this is complete or what.

      accounts_controller.rb:
      show

      follower_accounts_controller.rb:
      index

      following_accounts_controller.rb:
      index

      statuses_controller.rb:
      activity
      show

      tags_controller.rb:
      show

      activitypub/collections_controller.rb:
      show

      activitypub/inboxes_controller.rb:
      create

      activitypub/outboxes_controller.rb:
      show

      In conversation Friday, 12-Oct-2018 20:40:30 EDT from mstdn.io permalink
      1. deutrino (deutrino@mstdn.io)'s status on Friday, 12-Oct-2018 20:44:45 EDT deutrino deutrino
        in reply to

        With decreasing certainty of correctness, this would appear to imply that the Mastodon federation API endpoints are:

        accounts/show
        follower_accounts
        following_accounts
        statuses/activity
        statuses/show
        tags/show
        activitypub/collections/show
        activitypub/inboxes/create
        activitypub/outboxes/show

        #Mastodev #fedidev #ActivityPub

        In conversation Friday, 12-Oct-2018 20:44:45 EDT from mstdn.io permalink
      2. deutrino (deutrino@mstdn.io)'s status on Friday, 12-Oct-2018 20:46:11 EDT deutrino deutrino
        in reply to

        With decreasing certainty of correctness as I process this information further from the raw code, this would appear to imply that the Mastodon federation API endpoints are:

        accounts/show
        follower_accounts
        following_accounts
        statuses/activity
        statuses/show
        tags/show
        activitypub/collections/show
        activitypub/inboxes/create
        activitypub/outboxes/show

        #Mastodev #fedidev #ActivityPub

        In conversation Friday, 12-Oct-2018 20:46:11 EDT from mstdn.io permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.