/directory enhancements

It would nice if api.omg.lol/directory returned more than just a list of addresses. A few things I’d like to see:

  • If the address is “verified”
  • The date the address was registered
  • If they are a member of omg.lol staff

Basically everything in api.omg.lol/address//info + if they are a member of staff. I’m hesitant to say just update the existing API because that may break any tools that rely on its existing schema. Perhaps a different endpoint would make sense?

2 Likes

Great ideas! Will work on this soon. :+1:

1 Like

Are you thinking of a new endpoint or updating /directory?

Here’s what I’m thinking, but I’m always open to feedback (or warnings of just how bad of an idea something may be, heh):

  1. I’ll keep the endpoint the same, because it’s such a perfect API endpoint URL
  2. I’ll keep the existing directory part of the response intact so as not to break anything
  3. I’ll add a new entries response that will include all of the specific data and look like this:
{
  ...
    "entries": {
        "foobar": {
            "verified": "true",
            "registered": "2019-04-01",
            ...
        }
    }
}

Will that work?

2 Likes

That’ll work great!

1 Like

Just following up — and feeling super guilty for not having gotten to the yet. Good news, though! Going to be doing some API cleanup soon and implement a versioning system. Will get this update (along with some others) in place soon!

2 Likes