enzostvs's picture
enzostvs HF staff
add snippet + rework UI/UX
ff1a29c
raw
history blame
371 Bytes
export interface ApiCollection {
key: string
endpoints: Array<ApiRoute>
wip?: boolean
}
export interface ApiRoute {
method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'
path: string,
parameters?: any,
body?: Array<Body>,
tooltips?: Record<string, string>
}
export interface Body {
key: string
label: string
required?: boolean
defaultValue?: any
}