Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

@rhoas/registry-management-sdk

Package Overview
Dependencies
1
Maintainers
5
Versions
58
Issues
File Explorer

Advanced tools

@rhoas/registry-management-sdk

RHOAS Service Registry Management SDK

    0.33.2latest

Version published
Maintainers
5
Yearly downloads
13,718

Weekly downloads

Changelog

Source

0.33.2

What's Changed

  • chore(openapi): update kafka-mgmt/v1 OpenAPI document by @app-services-ci in https://github.com/redhat-developer/app-services-sdk-js/pull/380
  • chore(all): re-generate OpenAPI client(s) by @app-services-ci in https://github.com/redhat-developer/app-services-sdk-js/pull/381

Full Changelog: https://github.com/redhat-developer/app-services-sdk-js/compare/0.33.1...0.33.2

Readme

Source

Service Registry Management SDK

RHOAS Service Registry Management TypeScript/JavaScript SDK.

Getting Started

Install Package

npm install @rhoas/registry-management-sdk --save

Usage

import { Configuration, DefaultApi, getErrorCode, isServiceApiError, APIErrorCodes } from "@rhoas/registry-management-sdk"; const accessToken = process.env.CLOUD_API_TOKEN; const basePath = "https://api.openshift.com"; const apiConfig = new Configuration({ accessToken, basePath, }); const registryApi = new DefaultApi(apiConfig) registryApi.getRegistries().then((data) => { console.log(data?.data) }).catch((err) => { if(isServiceApiError(err)){ console.error("Invalid JSON format", getErrorCode(err) == APIErrorCodes.ERROR_5) } })

See ./examples for full example

Security

API is using https://sso.redhat.com for OAuth Authentication. Provided token needs to be AccessToken returned from library like keycloak.js

Keywords

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc