new Discover(domain)
Create an instance of Discover
Parameters:
| Name | Type | Description |
|---|---|---|
domain |
string | The host name for querying Socrate (i.e. https://opendata.cityofnewyork.us) |
Methods
-
discover(name)
-
Find a resource endpoint by name
Parameters:
Name Type Description namestring The resource name
- Source:
Returns:
Promise that resolves to the resource endpoint without format extension
- Type
- Promise