Methods
-
addNodeDatumMetadataUrl( [nodeId] [, sourceId])
-
Generate a URL for adding (merging) datum metadata via a
POSTrequest.Parameters:
Name Type Argument Description nodeIdnumber <optional>
a specific node ID to use; if not provided the
nodeIdproperty of this class will be usedsourceIdstring <optional>
a specific source ID to use; if not provided the
sourceIdproperty of this class will be usedReturns:
the URL
- Type
- string
-
deleteNodeDatumMetadataUrl( [nodeId] [, sourceId])
-
Generate a URL for deleting datum metadata via a
DELETErequest.Parameters:
Name Type Argument Description nodeIdnumber <optional>
a specific node ID to use; if not provided the
nodeIdproperty of this class will be usedsourceIdstring <optional>
a specific source ID to use; if not provided the
sourceIdproperty of this class will be usedReturns:
the URL
- Type
- string
-
findNodeDatumMetadataUrl( [nodeId] [, sourceId] [, sorts] [, pagination])
-
Generate a URL for searching for datum metadata.
Parameters:
Name Type Argument Description nodeIdnumber <optional>
a specific node ID to use; if not provided the
nodeIdproperty of this class will be usedsourceIdstring <optional>
a specific source ID to use; if not provided the
sourceIdproperty of this class will be used; ifnullthen ignore anysourceIdproperty of this classsortsArray.<SortDescriptor> <optional>
optional sort settings to use
paginationmodule:domain~Pagination <optional>
optional pagination settings to use
Returns:
the URL
- Type
- string
-
replaceNodeDatumMetadataUrl( [nodeId] [, sourceId])
-
Generate a URL for setting datum metadata via a
PUTrequest.Parameters:
Name Type Argument Description nodeIdnumber <optional>
a specific node ID to use; if not provided the
nodeIdproperty of this class will be usedsourceIdstring <optional>
a specific source ID to use; if not provided the
sourceIdproperty of this class will be usedReturns:
the URL
- Type
- string
-
viewNodeDatumMetadataUrl( [nodeId] [, sourceId])
-
Generate a URL for viewing datum metadata.
If no
sourceIdis provided, then the API will return all available datum metadata for all sources.Parameters:
Name Type Argument Description nodeIdnumber <optional>
a specific node ID to use; if not provided the
nodeIdproperty of this class will be usedsourceIdstring <optional>
a specific source ID to use; if not provided the
sourceIdproperty of this class will be used; ifnullthen ignore anysourceIdproperty of this classReturns:
the URL
- Type
- string
-
viewUserMetadataUrl( [userId])
-
Generate a URL for viewing a specific user's metadata via a
GETrequest.Note this URL is similar to
module:net~UserMetadataUrlHelperMixin#viewUserMetadataUrlbut is for the read-only SolarQuery API, rather than the read-write SolarUser API.Parameters:
Name Type Argument Description userIdnumber | null <optional>
a specific user ID; if not provided the
userIdproperty of this class will be usedReturns:
the URL
- Type
- string