pwfdf item url¶
Synopsis¶
pwfdf item url ID [options]
Description¶
Returns the URL to a specified ScienceBase item. By default, returns a web-encoded URL. Use the --decode option to return a decoded URL, which is more human-readable. By default, returns a URL for the ScienceBase user interface. Use the --json option to return a URL for an sbJSON API query instead, and the --fields option to request specific sbJSON fields in the response.
Arguments¶
- ID¶
The ID of the ScienceBase item whose URL should be returned.
Example:
pwfdf item url abc123
Options¶
- -h, --help¶
Displays the command’s help text and exits.
- -t, --show-traceback¶
Shows the full traceback when an error occurs.
Url¶
- --decode¶
Returns a decoded URL, instead of a web-encoded URL. Decoded URLs are more human-readable, but may fail to open in some web browsers.
Example:
pwfdf item url abc123 --decode
- --json¶
Returns a URL for an sbJSON API query, instead of the ScienceBase user interface.
Example:
pwfdf item url abc123 --json
- --fields FIELD...¶
When returning a URL for an sbJSON API query, request specific sbJSON fields in the URL.
Example:
pwfdf item url abc123 --json --fields id title summary