jarvis.db.restapi
¶
Module to access or upload data in JARVIS-API.
Module Contents¶
Classes¶
Class for handling functions for JARVIS-API. |
- class jarvis.db.restapi.Api(base_url='https://jarvis.nist.gov', user_info_file_path='/users/knc6/myinfo')[source]¶
Bases:
object
Class for handling functions for JARVIS-API.
- send_keyword_query(data={'query': 'JVASP-1002.xml', 'title': 'JVASP-1002.xml'})[source]¶
Post general query to API.
- upload_xml_file(filename='', workspace_id='5df7b6defb7e53000c4652aa', template_id='')[source]¶
Upload file using path of the file and schema/template id.
- get_all_template_ids(title=None, only_user=False)[source]¶
Get templates for a user or global templates/schema/xsd.
- get_data_by_template_id(id='5f6162b4ece4b00034e4fe19', query='.xml', max_record=5)[source]¶
Get data by template IDs.
For template IDs see: https://jarvis.nist.gov/rest/template-version-manager/global/ and is_disabled=False