Skip to main content
Home

Built and signed on GitHub Actions

A library for interacting with the backend and defining the backend API for personal projects.

This package works with Node.js, Deno, Browsers
This package works with Node.js
This package works with Deno
This package works with Browsers
JSR Score
100%
Published
2 days ago (2.2.8)
class APIService

A service for making calls to the backend API for personal projects. This is abstracted so that the backend implementation can change over time.

Static Methods

Calls the dashboard API and returns the result. This will fail if the dashboard API URL has not been set. See setDashboardAPIUrl.

setAPIUrl(url: string): void

Sets the base URL for the API.

Validates the provided username and password against the database and returns the user's information if successful.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@aneuhold/core-ts-api-lib

Import symbol

import APIService from "@aneuhold/core-ts-api-lib";
or

Import directly with a jsr specifier

import APIService from "jsr:@aneuhold/core-ts-api-lib";

Add Package

pnpm i jsr:@aneuhold/core-ts-api-lib
or (using pnpm 10.8 or older)
pnpm dlx jsr add @aneuhold/core-ts-api-lib

Import symbol

import APIService from "@aneuhold/core-ts-api-lib";

Add Package

yarn add jsr:@aneuhold/core-ts-api-lib
or (using Yarn 4.8 or older)
yarn dlx jsr add @aneuhold/core-ts-api-lib

Import symbol

import APIService from "@aneuhold/core-ts-api-lib";

Add Package

vlt install jsr:@aneuhold/core-ts-api-lib

Import symbol

import APIService from "@aneuhold/core-ts-api-lib";

Add Package

npx jsr add @aneuhold/core-ts-api-lib

Import symbol

import APIService from "@aneuhold/core-ts-api-lib";