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

@ -6,14 +6,7 @@ from django.contrib.auth import get_user_model
from django.test import RequestFactory
from django.test import TestCase
from ..views import available, check_domain_available, rdap
from .common import less_console_noise
from registrar.utility.errors import GenericError, GenericErrorCodes
from unittest.mock import call
from epplibwrapper import (
commands,
)
from ..views import rdap
API_BASE_PATH = "/api/v1/rdap/?domain="

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

View file

@ -116,6 +116,7 @@ class TestURLAuth(TestCase):
"/api/v1/available/",
"/api/v1/get-report/current-federal",
"/api/v1/get-report/current-full",
"/api/v1/rdap/",
"/health",
]