pwfdf parent url¶
Synopsis¶
pwfdf parent url [options]
Description¶
Returns the URL to the PWFDF parent 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.
Example:
pwfdf parent url
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 parent url --decode
- --json¶
Returns a URL for an sbJSON API query, instead of the ScienceBase user interface.
Example:
pwfdf parent url --json
- --fields FIELD...¶
When returning a URL for an sbJSON API query, request specific sbJSON fields in the URL.
Example:
pwfdf parent url --json --fields id title summary