MCPcopy Index your code
hub / github.com/xerrors/Yuxi / apiPost

Function apiPost

web/src/apis/base.js:173–184  ·  view source on GitHub ↗
(url, data = {}, options = {}, requiresAuth = true, responseType = 'json')

Source from the content-addressed store, hash-verified

171 * @returns {Promise} - 请求结果
172 */
173export function apiPost(url, data = {}, options = {}, requiresAuth = true, responseType = 'json') {
174 return apiRequest(
175 url,
176 {
177 method: 'POST',
178 body: data instanceof FormData ? data : JSON.stringify(data),
179 ...options
180 },
181 requiresAuth,
182 responseType
183 )
184}
185
186export function apiAdminPost(url, data = {}, options = {}, responseType = 'json') {
187 checkAdminPermission()

Callers 15

createViewerDirectoryFunction · 0.90
uploadViewerFilesFunction · 0.90
agent_api.jsFile · 0.90
prepareSkillUploadFunction · 0.90
listRemoteSkillsFunction · 0.90
prepareRemoteSkillsFunction · 0.90
searchRemoteSkillsFunction · 0.90
confirmSkillInstallDraftFunction · 0.90
createSkillFileFunction · 0.90
deleteSkillsBatchFunction · 0.90
apikey_api.jsFile · 0.90
user_api.jsFile · 0.90

Calls 1

apiRequestFunction · 0.85

Tested by

no test coverage detected