Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opencode — a typed Nim client auto-generated from OpenAPI 3.x

nimble install opencode

API reference
Github Actions Github Actions

Note

This package is auto-generated from an OpenAPI 3.x specification using the Nimbase codegen. Do not edit the generated sources by hand — regenerate with nimbase instead.

Features

  • Typed client for opencode (188 endpoints)
  • Bearer-token authentication
  • Mock-server backed test suite
  • Async-first, generated with Nimbase

Examples

import opencode
import std/asyncdispatch

proc main() {.async.} =
  let client = initOpencodeClient("your-api-key")
  try:
    let res = await client.deleteAuthProviderID("test")
    echo res
  except CatchableError as e:
    echo "request failed: ", e.msg

when isMainModule:
  waitFor main()

❤ Contributions & Support

🎩 License

MIT license. Made with Nimbase Codegen
Copyright Nim Community — All rights reserved.

Releases

Packages

Contributors

Languages

Generated from openpeeps/pistachio