HexmosTech / Lama2

Free, Lightweight & Collaborative API Client
https://hexmos.com/lama2/index.html
GNU Affero General Public License v3.0
109 stars 6 forks source link

Export l2 file into cURL, Python, JS, etc #15

Open shrsv opened 1 year ago

shrsv commented 1 year ago

It'll be super handy to have an option to generate Python/JS/Other code from .l2 specifications.

curlconverter seems like a nice JS project which can generate code in multiple languages, given a curl input. So, then, the subproblems become:

  1. Create cURL from .l2
  2. Use goja VM to load curlconverter
  3. Pass the new curl command to curlconverter, to get code in various languages
  4. Add UI support in VSCode extension