query client cache and better body types

This commit is contained in:
Gregory Schier
2023-03-21 11:38:37 -07:00
parent 50f92bcfab
commit 01cd7f951a
11 changed files with 155 additions and 58 deletions

View File

@@ -16,6 +16,12 @@ export interface HttpHeader {
enabled?: boolean;
}
export enum HttpRequestBodyType {
GraphQL = 'graphql',
JSON = 'application/json',
XML = 'text/xml',
}
export interface HttpRequest extends BaseModel {
readonly workspaceId: string;
readonly model: 'http_request';
@@ -23,7 +29,7 @@ export interface HttpRequest extends BaseModel {
name: string;
url: string;
body: string | null;
bodyType: string | null;
bodyType: HttpRequestBodyType | null;
method: string;
headers: HttpHeader[];
}