(projectKey: string, data: ITag)
| 162 | }; |
| 163 | |
| 164 | export const addTag = async (projectKey: string, data: ITag) => { |
| 165 | const url = `${ |
| 166 | API.tagsURI |
| 167 | .replace(':projectKey', projectKey) |
| 168 | }`; |
| 169 | |
| 170 | return request(url, { |
| 171 | method: 'POST', |
| 172 | headers: { |
| 173 | ...ApplicationJson() |
| 174 | }, |
| 175 | body: JSON.stringify(data), |
| 176 | }); |
| 177 | }; |
| 178 | |
| 179 | export const getTraffic = async<T> (projectKey: string, environmentKey: string, toggleKey: string, params: ITrafficParams) => { |
| 180 | const url = `${ |
no test coverage detected