@planship/management-fetch-dev v0.3.9
planship-management-fetch-client
Fetch client for Planship Management API. Autogerated using https://github.com/OpenAPITools/openapi-generator/blob/master/docs/generators/typescript-fetch.md
Autogenerate and publish to npmjs
Pre-requisite: Install openapi-generator
Run the Planship API locally and run the following command to autogenerate the client code:
pnpm openapi-genCompile ts code to a distributable js and rebuild the docs
pnpm build
pnpm build-docsIncrement the package version in package.json, commit all changes (required), and run the following command to publish:
pnpm publishLocal dev
Steps to get started in a local dev environment. This assumes that your other project is using pnpm.
pnpm install
pnpm build
pnpm link --globalGo to your target project and run the follow to link the client library as a dependency:
pnpm link --global planship-management-fetch-clientSample code to import, get a list of orgs from Planship, and print the result. This assumes that Planship is running on localhost.
import { OrganizationsApi } from 'planship-management-fetch-client';
let organizationsApi = new OrganizationsApi();
organizationsApi.listOrganizations().then((response) => {console.dir(response)});API classes documentation can be found here.
9 months ago
11 months ago
12 months ago
11 months ago
12 months ago
12 months ago
11 months ago
11 months ago
12 months ago
12 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
12 months ago
1 year ago
11 months ago
11 months ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago