2019-03-26 15:28:24 +00:00
|
|
|
import { ApiHeaders } from "../api/ApiRequests";
|
|
|
|
|
|
|
|
|
|
export type DataType = "json" | "xml"
|
|
|
|
|
export type ContentType = "application/json" | "application/x-www-form-urlencoded"
|
|
|
|
|
export type EncodingType = "gzip"
|
|
|
|
|
|
|
|
|
|
export const PROD_BASE_URL = "https://mobtools.com/api/"
|
2019-08-26 12:41:21 +00:00
|
|
|
export const MOCK_BASE_URL = "https://f1a8b631-ef37-4932-8f41-75cf127fcc55.mock.pstmn.io"
|
2019-03-26 15:28:24 +00:00
|
|
|
export const STAGE_BASE_URL = "https://14157cb0-190f-4082-a791-886a8df05930.mock.pstmn.io"
|
2019-08-21 12:49:16 +00:00
|
|
|
export const BASE_URL = MOCK_BASE_URL
|
2019-03-26 15:28:24 +00:00
|
|
|
export const REQUEST_TIMEOUT_MS = 2000
|
|
|
|
|
export const REQUEST_HEADERS: ApiHeaders = {
|
|
|
|
|
Accept: "application/json",
|
|
|
|
|
"Content-Type": "application/json",
|
|
|
|
|
dataType: "json",
|
|
|
|
|
}
|