Lookup.Api is a Node library which provides the RESTApi wrapper over Lookup.Services.
To setup and run Lookup.Api in your local machine, follow 3 simple steps:
git clone https://github.com/ValEXE-Technologies/Lookup.Api.gitnpm inpm run startThis should start nodemon secure server on Port# 5001 and you should see message on console
Lookup RESTApi listening at https://localhost:5001The status API to check whether application is up and running and is in healthy state to serve the requests.
/api/statuscurl https://localhost:5001/api/status{
"status": "Successful",
"message": "Lookup RESTApi is up and running",
"data": null
}/api/referenceData/currenciescurl https://localhost:5001/api/referenceData/currenciesReturns JSON object with value of data property as collection of supported currencies.
{
"status": "Successful",
"message": null,
"data": [
{
"code": "INR",
"symbol": "₹",
"name": "Indian Rupee"
},
{
"code": "USD",
"symbol": "$",
"name": "United States of America"
}
]
}
:currencymust be value of currencycodefrom Supported Currencies; likeINR,USD, etc.
/api/domain/:currency/registrarscurl https://localhost:5001/api/domain/INR/registrarsReturns JSON object with value of data property as collection of registrars.
{
"status": "Successful",
"message": null,
"data": [
{
"name": "GoDaddy",
"baseUrl": "https://in.godaddy.com",
"currencyCodes": [ "INR", "USD" ],
"features": [ "Basic DNS" ]
},
{
"name": "BigRock",
"baseUrl": "https://www.bigrock.in",
"currencyCodes": [ "INR", "USD" ],
"features": [
"Basic DNS",
"2 Email Accounts",
"Domain Forwarding",
"URL Masking",
"DNS Management",
"Domain Theft Protection"
]
}
]
}
:domainNameWithTLDmust be complete domain name including TLD; like.com,.co.in, etc.
/api/domain/isAvailable/:domainNameWithTLDcurl https://localhost:5001/api/domain/isAvailable/whatblarandomdomainxyz.comReturns JSON object with value of data property as true if domain is available and false if domain is not available.
{
"status": "Successful",
"message": null,
"data": true or false
}
:currencymust be value of currencycodefrom Supported Currencies; likeINR,USD, etc.
:registrarmust be value of registrarnamefrom Registrars; likeGoDaddy,BigRock, etc.
:domainNameWithTLDmust be complete domain name including TLD; like.com,.co.in, etc.
/api/domain/:currency/:registrar/:domainNameWithTLD/pricecurl https://localhost:5001/api/domain/INR/BigRock/whatblarandomdomainxyz.com/priceReturns JSON object with value of data property with domain price and registrar url.
{
"status": "Successful",
"message": null,
"data": {
"url": "https://www.bigrock.in",
"price": 799
}
}