MCPcopy Create free account
hub / github.com/FeatureProbe/FeatureProbe / getSegmentDetail

Function getSegmentDetail

ui/src/services/segment.ts:27–40  ·  view source on GitHub ↗
(projectKey: string, segmentKey: string)

Source from the content-addressed store, hash-verified

25};
26
27export const getSegmentDetail = async<T> (projectKey: string, segmentKey: string) => {
28 const url = `${
29 API.getSegmentURI
30 .replace(':projectKey', projectKey)
31 .replace(':segmentKey', segmentKey)
32 }`;
33
34 return request<T>(url, {
35 method: 'GET',
36 headers: {
37 ...ApplicationJson()
38 },
39 });
40};
41
42export const addSegment = async (projectKey: string, data?: ISegmentInfo) => {
43 const url = `${

Callers 2

ProjectLayoutFunction · 0.90
InfoFunction · 0.90

Calls 2

ApplicationJsonFunction · 0.90
requestFunction · 0.85

Tested by

no test coverage detected