1.20.2-1 • Published 9 months ago

node-gitea-api v1.20.2-1

Weekly downloads
-
License
Unlicense
Repository
github
Last release
9 months ago

gitea-api

Gitea API client for Node.

Generated with GitHub - ferdikoomen/openapi-typescript-codegen: NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification.

I will try to keep the package up to date with new released versions.

To install

npm i gitea-api

To use

import { GiteaApi } from "gitea-api";

const client = new GiteaApi({
    BASE: 'https://gitea.domain.com',
    WITH_CREDENTIALS: true,
    TOKEN: ""
});

Development

Generated with (from repo folder):

cd ..
npm --global i openapi-typescript-codegen
openapi -c fetch -o ./gitea-api/ -i {gitea-url}/swagger.v1.json --name="GiteaApi" --useOptions --client node