MCPcopy Create free account
hub / github.com/Datakitpage/Datakit / post

Method post

frontend/src/lib/api/apiClient.ts:144–154  ·  view source on GitHub ↗
(
    endpoint: string,
    data?: any,
    options?: RequestOptions
  )

Source from the content-addressed store, hash-verified

142 }
143
144 async post<T>(
145 endpoint: string,
146 data?: any,
147 options?: RequestOptions
148 ): Promise<T> {
149 return this.request<T>(endpoint, {
150 ...options,
151 method: 'POST',
152 body: data ? JSON.stringify(data) : undefined,
153 });
154 }
155
156 async put<T>(
157 endpoint: string,

Callers 15

checkCreditsMethod · 0.80
changePasswordMethod · 0.80
checkCreditsMethod · 0.80
createCheckoutSessionMethod · 0.80
createPortalSessionMethod · 0.80
cancelSubscriptionMethod · 0.80
joinWaitlistMethod · 0.80
switchWorkspaceFunction · 0.80
acceptInviteFunction · 0.80
validateApiKeyMethod · 0.80
loginMethod · 0.80
signupMethod · 0.80

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected