File size: 371 Bytes
5916048
 
 
62b480a
5916048
 
 
 
 
03ce1cf
ff1a29c
 
03ce1cf
 
 
 
 
 
 
5916048
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
}