UNPKG

@rxap/open-api

Version:

This package provides tools for working with OpenAPI specifications in Angular applications. It includes services for configuring and loading OpenAPI definitions, validating requests and responses against schemas, and handling errors. It also offers utili

36 lines (29 loc) 1.56 kB
This package provides tools for working with OpenAPI specifications in Angular applications. It includes services for configuring and loading OpenAPI definitions, validating requests and responses against schemas, and handling errors. It also offers utilities for building HTTP requests based on OpenAPI definitions. [![npm version](https://img.shields.io/npm/v/@rxap/open-api?style=flat-square)](https://www.npmjs.com/package/@rxap/open-api) [![commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square)](https://commitizen.github.io/cz-cli/) [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) ![Libraries.io dependency status for latest release, scoped npm package](https://img.shields.io/librariesio/release/npm/@rxap/open-api) ![npm](https://img.shields.io/npm/dm/@rxap/open-api) ![NPM](https://img.shields.io/npm/l/@rxap/open-api) - [Installation](../wiki/#installation) - [Generators](../wiki/#generators) - [init](../wiki/#init) # Installation **Add the package to your workspace:** ```bash yarn add @rxap/open-api ``` **Install peer dependencies:** ```bash yarn add @angular/common @angular/core @rxap/config @rxap/data-source @rxap/environment @rxap/mixin @rxap/remote-method @rxap/rxjs @rxap/utilities ajv openapi-types rxjs ``` **Execute the init generator:** ```bash yarn nx g @rxap/open-api:init ``` # Generators ## init > Initialize the package in the workspace ```bash nx g @rxap/open-api:init ```