2020-01-24 09:54:40 +00:00
|
|
|
import { RestAction } from "api/ActionAPI";
|
|
|
|
|
|
2020-02-18 18:13:19 +00:00
|
|
|
export const HTTP_METHODS = ["GET", "POST", "PUT", "DELETE", "PATCH"];
|
2019-10-21 15:12:45 +00:00
|
|
|
|
|
|
|
|
export const HTTP_METHOD_OPTIONS = HTTP_METHODS.map(method => ({
|
|
|
|
|
label: method,
|
|
|
|
|
value: method,
|
|
|
|
|
}));
|
|
|
|
|
|
2019-11-29 05:22:49 +00:00
|
|
|
export const PLUGIN_NAME = "RestTemplatePluginExecutor";
|
2020-01-24 09:54:40 +00:00
|
|
|
|
|
|
|
|
export const DEFAULT_API_ACTION: Partial<RestAction> = {
|
|
|
|
|
actionConfiguration: {
|
|
|
|
|
httpMethod: HTTP_METHODS[0],
|
|
|
|
|
},
|
|
|
|
|
};
|