Skip to content

Add support for domain research endpoint#450

Merged
juankuquintana merged 9 commits into
mainfrom
change/domain-research
Feb 26, 2026
Merged

Add support for domain research endpoint#450
juankuquintana merged 9 commits into
mainfrom
change/domain-research

Conversation

@juankuquintana

@juankuquintana juankuquintana commented Feb 13, 2026

Copy link
Copy Markdown
Contributor

Belongs to https://github.com/dnsimple/dnsimple-business/issues/2442
Fixes https://github.com/dnsimple/dnsimple-app/issues/33829

Add support for domain research endpoint

🔍 QA

require 'dnsimple'
client = Dnsimple::Client.new(base_url: "http://api.localhost:5000",  access_token: "token")
response = client.domains.domain_research_status(account_id, "example.com")

📋 Deployment Pre/Post tasks

:shipit: Deployment Verification

  • QAd

@juankuquintana

Copy link
Copy Markdown
Contributor Author

I'll wait for a ✅ before moving into new clients. As I want us to agree first on nomenclature, and naming convention of objects / classes, etc.

Comment on lines +1 to +16
HTTP/1.1 200 OK
server: nginx
date: Fri, 13 Feb 2026 16:04:05 GMT
content-type: application/json; charset=utf-8
connection: keep-alive
status: 200 OK
x-ratelimit-limit: 4000
x-ratelimit-remaining: 3999
x-ratelimit-reset: 1456506245
etag: W/"f3cf8499e935e48401aae26842f712c4"
cache-control: max-age=0, private, must-revalidate
x-request-id: e3c6fac1-a36d-42c3-8a04-d68f127add18
x-runtime: 0.605907
strict-transport-security: max-age=31536000

{"data":{"request_id":"f453dabc-a27e-4bf1-a93e-f263577ffaae","domain":"example.com","availability":"unavailable","errors":[]}}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add this to the developer repo

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread lib/dnsimple/struct/domain_research.rb Outdated
# @return [String] The domain name that was researched.
attr_accessor :domain

# @return [String] The availability status. Possible values: available, unavailable, unknown

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would reference the API docs here, rather than listing the values, just thinking about making these docs less prone to obsolescence / incompleteness.

Comment thread lib/dnsimple/client/domains.rb Outdated
response = client.get(endpoint, options)

Dnsimple::Response.new(response, Struct::DomainResearch.new(response["data"]))
end

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking closer at this, the only thing I am wondering is whether to add a new domains_research.rb file specific to this endpoint.

@jacegu

jacegu commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

@juankuquintana please, note #451. We need to:

  • Remove the fixture in this PR (so all the clients use the same fixtures).
  • Merge main so the shared fixtures are available here.
  • Update the specs accordingly.

@juankuquintana juankuquintana merged commit 244bba3 into main Feb 26, 2026
7 checks passed
@juankuquintana juankuquintana deleted the change/domain-research branch February 26, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants