Dokümantasyon
Fonksiyonlar
Edge JavaScript. Scope: functions:invoke.
Invoke
| Method | Path | Açıklama |
|---|---|---|
| GET | /functions | Liste |
| POST | /functions/{name} | Çağır |
| PUT | /functions/{name} | Deploy kaynak |
| DELETE | /functions/{name} | Sil |
| GET | /functions/runtime | Runtime |
| POST | /functions/jobs | Arka plan iş |
Node.js
const res = await fetch(`${EDGE}/functions/hello`, {
method: 'POST',
headers: {
'X-Liap-Key': API_KEY,
'Content-Type': 'application/json',
},
body: JSON.stringify({ name: 'Liap' }),
}).then(r => r.json())
console.log(res)