Add description to rdap endpoint

This commit is contained in:
Erin Song 2024-09-24 17:02:37 -07:00
parent a435eb1f68
commit d6201fc31f
No known key found for this signature in database
3 changed files with 3 additions and 10 deletions

View file

@ -103,8 +103,7 @@ def available(request, domain=""):
@require_http_methods(["GET"])
@login_not_required
def rdap(request, domain=""):
"""TODO: Write description"""
Domain = apps.get_model("registrar.Domain")
"""Returns JSON dictionary of a domain's RDAP data from Cloudflare API"""
domain = request.GET.get("domain", "")
# If inputted domain doesn't have a TLD, append .gov to it