@ory/oathkeeper-client-fetch
v26.2.0
Published
OpenAPI client for @ory/oathkeeper-client-fetch
Readme
@ory/[email protected]
A TypeScript SDK client for the localhost API.
Usage
First, install the SDK from npm.
npm install @ory/oathkeeper-client-fetch --saveNext, try it out.
import {
Configuration,
ApiApi,
} from '@ory/oathkeeper-client-fetch';
import type { DecisionsRequest } from '@ory/oathkeeper-client-fetch';
async function example() {
console.log("🚀 Testing @ory/oathkeeper-client-fetch SDK...");
const api = new ApiApi();
try {
const data = await api.decisions();
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);Documentation
API Endpoints
All URIs are relative to http://localhost
| Class | Method | HTTP request | Description | ----- | ------ | ------------ | ------------- ApiApi | decisions | GET /decisions | Access Control Decision API ApiApi | getRule | GET /rules/{id} | Retrieve a Rule ApiApi | getWellKnownJSONWebKeys | GET /.well-known/jwks.json | Lists Cryptographic Keys ApiApi | listRules | GET /rules | List All Rules MetadataApi | getVersion | GET /version | Return Running Software Version. MetadataApi | isAlive | GET /health/alive | Check HTTP Server Status MetadataApi | isReady | GET /health/ready | Check HTTP Server and Database Status
Models
- GenericError
- GetVersion200Response
- HealthNotReadyStatus
- HealthStatus
- IsAlive200Response
- IsReady503Response
- JsonWebKey
- JsonWebKeySet
- Rule
- RuleHandler
- RuleMatch
- Upstream
- Version
Authorization
Endpoints do not require authorization.
About
This TypeScript SDK client supports the Fetch API and is automatically generated by the OpenAPI Generator project:
- API version:
v26.2.0 - Package version:
v26.2.0 - Generator version:
7.17.0 - Build package:
org.openapitools.codegen.languages.TypeScriptFetchClientCodegen
The generated npm module supports the following:
- Environments
- Node.js
- Webpack
- Browserify
- Language levels
- ES5 - you must have a Promises/A+ library installed
- ES6
- Module systems
- CommonJS
- ES6 module system
Development
Building
To build the TypeScript source code, you need to have Node.js and npm installed. After cloning the repository, navigate to the project directory and run:
npm install
npm run buildPublishing
Once you've built the package, you can publish it to npm:
npm publish