Closed aldy505 closed 1 year ago
Hi @aldy505 So, I need to write a sample code for consuming/handling pesto API?
SDK is not a sample code. SDK is a client library to consume the API.
Hey @aldy505 I can be of help here. I use Fern (www.buildwithfern.com) to code generate SDKs, including Node.js.
Here's an SDK I recently built for another organization: https://github.com/fern-primer/primer-node
Let me know if this is of interest for Teknologi Umum .
Hi @dannysheridan unless you can show a sample of code gen'd SDK that you're impling, I'm sorry, I'm not really interested on code gen'd SDK. I want to focus to the DX, not just a functional code that calls the API correctly.
@aldy505 here's a TypeScript example app consuming a Node SDK generated by Fern: https://github.com/fern-primer/primer-node/blob/main/.sample-app/app.ts
Must be written in Typescript and live in
/sdk/node/
Handles:
/api/ping
/api/list-runtimes
/api/execute
See: https://github.com/teknologi-umum/pesto/blob/master/rce/src/index.ts