MCPcopy Create free account
hub / github.com/simstudioai/sim / callPost

Function callPost

apps/sim/app/api/table/[tableId]/rows/route.test.ts:83–90  ·  view source on GitHub ↗
(body: Record<string, unknown>)

Source from the content-addressed store, hash-verified

81}
82
83function callPost(body: Record<string, unknown>) {
84 const req = new NextRequest('http://localhost:3000/api/table/tbl_1/rows', {
85 method: 'POST',
86 headers: { 'Content-Type': 'application/json' },
87 body: JSON.stringify(body),
88 })
89 return POST(req, { params: Promise.resolve({ tableId: 'tbl_1' }) })
90}
91
92function callGet(query: Record<string, string>) {
93 const params = new URLSearchParams(query)

Callers 1

route.test.tsFile · 0.70

Calls 2

POSTFunction · 0.90
resolveMethod · 0.65

Tested by

no test coverage detected