0.0.20 • Published 2 years ago
@tectonique/api-standards-nestjs v0.0.20
🌩 API Standards – NestJS
This library is based on tectonique/api-standards 🔗.
It implements its Envelope and ProblemDetail schema for NestJS applications.
Additionally, this library provides low barrier validation mechanisms powered by Zod 🔗.
📖 Table of contents
- 🌩 API Standards – NestJS
- 📖 Table of contents
- 📦 NPM Package
- 💾 Installation
- 🏁 Goal
- 📑 Documentation
- 📜 Changelog
- 🦔 Author
📦 NPM Package
💾 Installation
Using npm:
npm i @tectonique/api-standards-nestjs
Using yarn:
yarn add @tectonique/api-standards-nestjs
To install all components use useApiStandards(app)
:
import { useApiStandards } from '@tectonique/api-standards-nestjs';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
// Register all NestJS API standards components.
useApiStandards(app, () => {
return InternalServerProblemDetail();
});
await app.listen(8080);
}
bootstrap();
🏁 Goal
The goal of the library is to help you create:
- NestJS APIs with validated incoming data (query params, request bodies)
- a scalable and type safe error handling system
- 100% type safe API calls
Check out the following examples:
- Frontend: 100% type safe api calls thanks to envelopes
- Backend: Validated query parameters
- Backend: Validated request bodies
- Backend: Sanitized endpoint responses
📑 Documentation
📨 Envelopes and ⚠️ Problem Details
💎 Zod powered data validation and transformation
📜 Changelog
🦔 Author
0.0.20
2 years ago
0.0.19
2 years ago
0.0.18
3 years ago
0.0.17
3 years ago
0.0.16
3 years ago
0.0.15
3 years ago
0.0.14
3 years ago
0.0.13
3 years ago
0.0.12
3 years ago
0.0.11
3 years ago
0.0.10
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago