Skip to content

kakomimasu/client-js

Kakomimasu server client for deno/node

JSR

使用方法

import { ApiClient } from "@kakomimasu/client-js";

const client = new ApiClient();

const boards = await client.getBoards();
console.log(boards);

その他の例は、samples をご覧ください

Contributing

OpenAPI Generator のインストール

ソースファイルの生成には OpenAPI Generator を使用しています。

$ deno task install

生成

生成は template ディレクトリ のテンプレートを使用して行われます。 コマンド実行時に OpenAPI 定義ファイル (https://api.kakomimasu.com/v1/openapi.json) を使って生成されます

$ deno task generate

テスト

テストは PR 作成時の GitHub Actions で行われます。 ローカルで試す方は、kakomimasu/server を起動しておく必要があります。

$ deno test -A .

About

Kakomimasu client for JavaScript

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •