Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (13 sloc) 642 Bytes
"""fmrest constants"""
import os
from pkg_resources import get_distribution
__version__ = get_distribution('python-fmrest').version
PORTAL_PREFIX = 'portal_'
TIMEOUT = int(os.environ.get('fmrest_timeout', 10))
API_PATH = {
'auth': '/fmi/data/v1/databases/{database}/sessions/{token}',
'record': '/fmi/data/v1/databases/{database}/layouts/{layout}/records',
'record_action': '/fmi/data/v1/databases/{database}/layouts/{layout}/records/{record_id}',
'find': '/fmi/data/v1/databases/{database}/layouts/{layout}/_find',
'global': '/fmi/data/v1/databases/{database}/globals'
}