Helpers
API endpoints are provided for retrieving JSON data from the database about files:
-
https://ncnr.nist.gov/ncnrdata/findRxCycle.php
- optional parameter: timestamp, e.g. https://ncnr.nist.gov/ncnrdata/findRxCycle.php?timestamp=1321321231
- returns rxcycle that matches current timestamp, or provided timestamp
-
https://ncnr.nist.gov/ncnrdata/listRxCycles.php
- optional parameters: start_timestamp, end_timestamp
- returns list of all rxcycles (name, start_date and end_date) that fall within start_timestamp and end_timestamp
-
https://ncnr.nist.gov/ncnrdata/listftpfiles.php
- required paramter: pathlist[] e.g. ["cgd", "201809", "21237", "data"], defaults to [""]
- accepts POST or GET
- returns file and directory metadata for the provided pathlist, including
- a list of subdirectories
- (filename, last modified time, sha256) for all data files in pathlist