2019-09-12 11:19:38 +00:00
|
|
|
import { APIHeaders } from "../api/ApiRequests";
|
2019-03-26 15:28:24 +00:00
|
|
|
|
2019-09-09 09:08:54 +00:00
|
|
|
export type ContentType =
|
|
|
|
|
| "application/json"
|
|
|
|
|
| "application/x-www-form-urlencoded";
|
|
|
|
|
export type EncodingType = "gzip";
|
2019-03-26 15:28:24 +00:00
|
|
|
|
2019-09-09 09:08:54 +00:00
|
|
|
export const PROD_BASE_URL = "https://mobtools.com/api/";
|
|
|
|
|
export const MOCK_BASE_URL =
|
|
|
|
|
"https://f78ff9dd-2c08-45f1-9bf9-8c670a1bb696.mock.pstmn.io";
|
2019-09-18 14:10:57 +00:00
|
|
|
export const STAGE_BASE_URL = "https://appsmith-test.herokuapp.com";
|
2019-09-18 10:48:56 +00:00
|
|
|
export const BASE_URL = STAGE_BASE_URL;
|
2019-09-09 09:08:54 +00:00
|
|
|
export const REQUEST_TIMEOUT_MS = 2000;
|
2019-09-12 11:19:38 +00:00
|
|
|
export const REQUEST_HEADERS: APIHeaders = {
|
2019-03-26 15:28:24 +00:00
|
|
|
"Content-Type": "application/json",
|
2019-09-09 09:08:54 +00:00
|
|
|
};
|
2019-08-29 11:22:09 +00:00
|
|
|
|
|
|
|
|
export interface APIException {
|
|
|
|
|
error: number;
|
|
|
|
|
message: string;
|
|
|
|
|
}
|