(projectKey: string, params: IToggleParams)
| 7 | import { ApplicationJson } from 'constants/api/contentType'; |
| 8 | |
| 9 | export const getToggleList = async<T> (projectKey: string, params: IToggleParams) => { |
| 10 | const url = `${ |
| 11 | API.getToggleListURI |
| 12 | .replace(':projectKey', projectKey) |
| 13 | }?${qs.stringify(params)}`; |
| 14 | |
| 15 | return request<T>(url, { |
| 16 | method: 'GET', |
| 17 | headers: { |
| 18 | ...ApplicationJson() |
| 19 | }, |
| 20 | }); |
| 21 | }; |
| 22 | |
| 23 | export const getToggleInfo = async<T> (projectKey: string, environmentKey: string, toggleKey: string) => { |
| 24 | const url = `${ |
no test coverage detected