Skip to content

User Story: Build model for webfinger response object

As an engineer, I would like to see a model for the webfinger response object that can be built based on the request received by the service. For example, https://domain.com/.well-known/webfinger?resource=acct:user@domain.com should have a response that follows this model (to be validated against specification):

{
  "subject": "acct:user@domain.com",
  "links": [
    {
      "rel": "http://microformats.org/profile/hcard",
      "type": "text/html",
      "href": "https://pod.domain.com/hcard/users/7dba7ca01d64013485eb3131731751e9"
    },
    {
      "rel": "http://joindiaspora.com/seed_location",
      "type": "text/html",
      "href": "https://pod.domain.com/"
    }
  ]
}