{"id":"6b0941805ce40d447918f2e9","slug":"swagger-openapi","title":"Swagger i OpenAPI w praktyce – dokumentacja z kodu w NestJS i Express, typowany klient i higiena kontraktu","summary":"Dokumentujemy API pierogarni w OpenAPI – w NestJS przez @nestjs/swagger (plugin CLI, DTO odpowiedzi, klucz API w Swagger UI, wersjonowanie URI, eksport bez bazy), w Expressie ze schematów Zod przez zod-to-openapi i swagger-ui-express. Z tej samej specyfikacji generujemy typowany klient i pilnujemy jej w CI.","servedLang":"pl","availableLangs":["pl","en"],"topics":["swagger-openapi","nestjs","express"],"techs":["node","typescript"],"tags":["openapi-3-1","nestjs-swagger","swagger-ui","zod-to-openapi","openapi-typescript","openapi-fetch","redocly","oasdiff","api-versioning"],"level":"intermediate","kind":"tutorial","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":20,"stats":{"views":2,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T08:38:24.373Z","updatedAt":"2026-11-27T10:10:17.677Z","requestedLang":"pl","theme":{"hero":"classic","heroMedia":null,"accent":"green","background":"hex","weaveResources":true,"toc":"right"},"seoDescription":"OpenAPI i Swagger w Node.js – @nestjs/swagger (DocumentBuilder, ApiProperty, plugin CLI, ApiSecurity, wersjonowanie), Express + zod-to-openapi + swagger-ui-express, openapi-typescript i openapi-fetch, Redocly lint, oasdiff i dobre praktyki dokumentacji.","wordCount":3925,"doc":{"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"„Dokumentacja jest w Confluence, ale chyba nieaktualna” – to zdanie słyszał każdy, kto integrował się z cudzym API. OpenAPI rozwiązuje ten problem tylko wtedy, gdy specyfikacja "},{"type":"text","text":"powstaje z kodu","marks":[{"type":"bold"}]},{"type":"text","text":" albo jest przez kod pilnowana. W tym poradniku dokumentujesz API zamówień pierogarni na dwa sposoby – w NestJS i w Expressie – a potem robisz z tej specyfikacji użytek: generujesz typowanego klienta i blokujesz w CI zmiany, które zepsułyby integracje."}]},{"type":"callout","attrs":{"variant":"info","title":"W skrócie"},"content":[{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"OpenAPI to specyfikacja","marks":[{"type":"bold"}]},{"type":"text","text":" (plik JSON/YAML opisujący ścieżki, parametry, schematy i zabezpieczenia), "},{"type":"text","text":"Swagger to rodzina narzędzi","marks":[{"type":"bold"}]},{"type":"text","text":" (Swagger UI, Editor, Codegen), która z niej korzysta."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Jedno źródło prawdy","marks":[{"type":"bold"}]},{"type":"text","text":": w NestJS są nim DTO i dekoratory, w Expressie – te same schematy Zod, które walidują żądania. Ręcznie pisany YAML obok kodu rozjedzie się po miesiącu."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Specyfikacja to kontrakt","marks":[{"type":"bold"}]},{"type":"text","text":": commituj ją, lintuj (Redocly), porównuj z poprzednią wersją (oasdiff) i generuj z niej klientów (openapi-typescript)."}]}]}]}]},{"type":"callout","attrs":{"variant":"tip","title":"Co zbudujesz"},"content":[{"type":"paragraph","content":[{"type":"text","text":"Rozszerzenie dwóch projektów z poprzednich poradników: "},{"type":"text","text":"API w NestJS","marks":[{"type":"link","attrs":{"href":"/pl/articles/nestjs"}}]},{"type":"text","text":" dostaje Swagger UI pod "},{"type":"text","text":"/docs","marks":[{"type":"code"}]},{"type":"text","text":" z kluczem kuchni w oknie „Authorize”, opisane odpowiedzi i błędy, wersje "},{"type":"text","text":"/api/v1","marks":[{"type":"code"}]},{"type":"text","text":" i "},{"type":"text","text":"/api/v2","marks":[{"type":"code"}]},{"type":"text","text":" oraz skrypt eksportujący specyfikację bez MongoDB i Redisa. "},{"type":"text","text":"API w Expressie","marks":[{"type":"link","attrs":{"href":"/pl/articles/express"}}]},{"type":"text","text":" dostaje specyfikację OpenAPI 3.1 generowaną ze schematów Zod. Do tego typowany klient TypeScript i workflow GitHub Actions. ZIP zawiera nowe i zmienione pliki w katalogach "},{"type":"text","text":"nest/","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"express/","marks":[{"type":"code"}]},{"type":"text","text":" i "},{"type":"text","text":"client/","marks":[{"type":"code"}]},{"type":"text","text":" – nałóż je na projekty z poprzednich części."}]}]},{"type":"paragraph","content":[{"type":"text","text":"Wymagania wstępne:","marks":[{"type":"bold"}]},{"type":"text","text":" projekty z poradników "},{"type":"text","text":"Express","marks":[{"type":"link","attrs":{"href":"/pl/articles/express"}}]},{"type":"text","text":" i "},{"type":"text","text":"NestJS","marks":[{"type":"link","attrs":{"href":"/pl/articles/nestjs"}}]},{"type":"text","text":" (albo własne API w jednym z nich), podstawy HTTP i JSON Schema na poziomie „typ, wymagane pola, enum”."}]},{"type":"timeline","attrs":{"items":[{"date":"2011","title":"Swagger","text":"Tony Tam tworzy specyfikację i Swagger UI dla API serwisu Wordnik"},{"date":"2015","title":"OpenAPI Initiative","text":"SmartBear przekazuje specyfikację fundacji pod skrzydłami Linux Foundation"},{"date":"2017","title":"OpenAPI 3.0","text":"nowa struktura: `components`, `requestBody`, wiele serwerów"},{"date":"2021","title":"OpenAPI 3.1","text":"pełna zgodność z JSON Schema 2020-12, `type: [string, \"null\"]` zamiast `nullable`"},{"date":"2025","title":"OpenAPI 3.2","text":"strumienie (`itemSchema`), metoda `QUERY`, opisy odpowiedzi"}]}},{"type":"diagram","attrs":{"kind":"mermaid","code":"flowchart LR\n  subgraph SRC[\"Źródło prawdy\"]\n    N[\"NestJS<br/>DTO + dekoratory\"]\n    Z[\"Express<br/>schematy Zod\"]\n  end\n  N -->|SwaggerModule.createDocument| S[(\"openapi.json\")]\n  Z -->|OpenApiGeneratorV31| S\n  S --> UI[\"Swagger UI /docs<br/>ludzie, testy ręczne\"]\n  S --> T[\"openapi-typescript<br/>typy dla frontu\"]\n  S --> L[\"Redocly lint<br/>styl i kompletność\"]\n  S --> D[\"oasdiff<br/>breaking changes w PR\"]","caption":"Specyfikacja w centrum: powstaje z kodu, a korzystają z niej ludzie, klienci i CI"}},{"type":"heading","attrs":{"level":2,"id":"czesc-1-nestjs-nestjs-swagger"},"content":[{"type":"text","text":"Część 1. NestJS: @nestjs/swagger"}]},{"type":"heading","attrs":{"level":3,"id":"krok-1-instalacja-plugin-cli-i-konfiguracja-dokumentu"},"content":[{"type":"text","text":"Krok 1. Instalacja, plugin CLI i konfiguracja dokumentu"}]},{"type":"codeBlock","attrs":{"language":"bash"},"content":[{"type":"text","text":"npm install @nestjs/swagger@11"}]},{"type":"codeGroup","attrs":{"title":"Plugin, konfiguracja dokumentu i bootstrap"},"content":[{"type":"codeBlock","attrs":{"language":"json","filename":"nest/nest-cli.json"},"content":[{"type":"text","text":"{\n  \"$schema\": \"https://json.schemastore.org/nest-cli\",\n  \"collection\": \"@nestjs/schematics\",\n  \"sourceRoot\": \"src\",\n  \"compilerOptions\": {\n    \"deleteOutDir\": true,\n    \"plugins\": [\n      {\n        \"name\": \"@nestjs/swagger\",\n        \"options\": {\n          \"introspectComments\": true,\n          \"dtoFileNameSuffix\": [\".dto.ts\", \".query.ts\", \".response.ts\"]\n        }\n      }\n    ]\n  }\n}"}]},{"type":"codeBlock","attrs":{"language":"typescript","filename":"nest/src/app.setup.ts"},"content":[{"type":"text","text":"import { INestApplication, ValidationPipe, VersioningType } from '@nestjs/common';\nimport { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';\n\n// Shared by main.ts and the export script, so the exported spec matches the real routes.\nexport function configureApp(app: INestApplication): void {\n  app.setGlobalPrefix('api');\n  app.enableVersioning({ type: VersioningType.URI, defaultVersion: '1' }); // -> /api/v1/orders\n  app.useGlobalPipes(new ValidationPipe({ whitelist: true, forbidNonWhitelisted: true, transform: true }));\n}\n\nexport function createOpenApiDocument(app: INestApplication) {\n  const config = new DocumentBuilder()\n    .setTitle('Pierogi API')\n    .setDescription(\"Orders for Halina's pierogi shop\")\n    .setVersion('1.0.0')\n    .setLicense('Proprietary', 'https://example.org/terms')\n    .addApiKey({ type: 'apiKey', in: 'header', name: 'x-api-key' }, 'kitchen-key')\n    .addServer('http://localhost:3000', 'local')\n    .build();\n\n  return SwaggerModule.createDocument(app, config, {\n    // Stable, readable operationIds -> nice method names in generated clients.\n    operationIdFactory: (controllerKey, methodKey) => `${controllerKey.replace(/Controller$/, '').toLowerCase()}_${methodKey}`,\n  });\n}"}]},{"type":"codeBlock","attrs":{"language":"typescript","filename":"nest/src/main.ts"},"content":[{"type":"text","text":"import { ConfigService } from '@nestjs/config';\nimport { NestFactory } from '@nestjs/core';\nimport { SwaggerModule } from '@nestjs/swagger';\nimport helmet from 'helmet';\nimport { AppModule } from './app.module';\nimport { configureApp, createOpenApiDocument } from './app.setup';\nimport type { Env } from './config/env';\n\nasync function bootstrap() {\n  const app = await NestFactory.create(AppModule);\n  const config = app.get<ConfigService<Env, true>>(ConfigService);\n\n  app.use(helmet());\n  app.enableCors({ origin: config.get('CORS_ORIGINS', { infer: true }).split(','), credentials: true });\n  configureApp(app);\n  app.enableShutdownHooks();\n\n  if (config.get('NODE_ENV', { infer: true }) !== 'production') {\n    SwaggerModule.setup('docs', app, () => createOpenApiDocument(app), {\n      jsonDocumentUrl: 'docs/openapi.json',\n      swaggerOptions: { persistAuthorization: true, displayOperationId: true },\n    });\n  }\n\n  await app.listen(config.get('PORT', { infer: true }));\n}\n\nvoid bootstrap();"}]}]},{"type":"paragraph","content":[{"type":"text","text":"Najważniejsze elementy:"}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Plugin CLI","marks":[{"type":"bold"}]},{"type":"text","text":" ("},{"type":"text","text":"plugins","marks":[{"type":"code"}]},{"type":"text","text":" w "},{"type":"text","text":"nest-cli.json","marks":[{"type":"code"}]},{"type":"text","text":") analizuje kod w czasie kompilacji i dopisuje "},{"type":"text","text":"@ApiProperty","marks":[{"type":"code"}]},{"type":"text","text":" za ciebie: typy właściwości, opcjonalność ("},{"type":"text","text":"?","marks":[{"type":"code"}]},{"type":"text","text":"), ograniczenia z "},{"type":"text","text":"class-validator","marks":[{"type":"code"}]},{"type":"text","text":" ("},{"type":"text","text":"@Length","marks":[{"type":"code"}]},{"type":"text","text":" → "},{"type":"text","text":"minLength/maxLength","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"@Matches","marks":[{"type":"code"}]},{"type":"text","text":" → "},{"type":"text","text":"pattern","marks":[{"type":"code"}]},{"type":"text","text":"), a z "},{"type":"text","text":"introspectComments","marks":[{"type":"code"}]},{"type":"text","text":" także opisy i przykłady z komentarzy JSDoc. Domyślnie przetwarza tylko pliki "},{"type":"text","text":"*.dto.ts","marks":[{"type":"code"}]},{"type":"text","text":" i "},{"type":"text","text":"*.entity.ts","marks":[{"type":"code"}]},{"type":"text","text":" – dlatego dopisujemy "},{"type":"text","text":".query.ts","marks":[{"type":"code"}]},{"type":"text","text":" i "},{"type":"text","text":".response.ts","marks":[{"type":"code"}]},{"type":"text","text":"."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"configureApp()","marks":[{"type":"code"}]},{"type":"text","text":" zbiera prefiks, wersjonowanie i walidację w jednym miejscu, używanym przez "},{"type":"text","text":"main.ts","marks":[{"type":"code"}]},{"type":"text","text":" i skrypt eksportu. Bez tego wyeksportowana specyfikacja miałaby inne ścieżki niż działające API."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"addApiKey(..., 'kitchen-key')","marks":[{"type":"code"}]},{"type":"text","text":" rejestruje schemat zabezpieczeń. Nazwa ("},{"type":"text","text":"kitchen-key","marks":[{"type":"code"}]},{"type":"text","text":") łączy go z dekoratorem "},{"type":"text","text":"@ApiSecurity('kitchen-key')","marks":[{"type":"code"}]},{"type":"text","text":" na endpointach."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"operationIdFactory","marks":[{"type":"code"}]},{"type":"text","text":" – domyślne identyfikatory to "},{"type":"text","text":"OrdersController_place","marks":[{"type":"code"}]},{"type":"text","text":". Krótsze "},{"type":"text","text":"orders_place","marks":[{"type":"code"}]},{"type":"text","text":" dają czytelniejsze nazwy metod w generowanych klientach."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"persistAuthorization","marks":[{"type":"code"}]},{"type":"text","text":" – Swagger UI pamięta wpisany klucz po odświeżeniu strony. Dokumentację wystawiamy tylko poza produkcją (albo za uwierzytelnieniem)."}]}]}]},{"type":"callout","attrs":{"variant":"warning","title":"Plugin działa tylko przy kompilacji przez Nest CLI"},"content":[{"type":"paragraph","content":[{"type":"text","text":"Plugin to transformacja TypeScriptu podpinana przez "},{"type":"text","text":"nest build","marks":[{"type":"code"}]},{"type":"text","text":" / "},{"type":"text","text":"nest start","marks":[{"type":"code"}]},{"type":"text","text":". Jeśli uruchamiasz kod inaczej (ts-jest, tsx, SWC bez dodatkowej konfiguracji), metadane z pluginu nie powstaną, a schematy będą puste. Przy budowaniu przez SWC Nest udostępnia "},{"type":"text","text":"PluginMetadataGenerator","marks":[{"type":"code"}]},{"type":"text","text":", który zapisuje metadane do pliku."}]}]},{"type":"heading","attrs":{"level":3,"id":"krok-2-dto-wejscia-i-wyjscia"},"content":[{"type":"text","text":"Krok 2. DTO wejścia i wyjścia"}]},{"type":"paragraph","content":[{"type":"text","text":"Swagger nie widzi interfejsów TypeScriptu w czasie działania, więc odpowiedzi też opisujemy klasami. Domenowy "},{"type":"text","text":"Order","marks":[{"type":"code"}]},{"type":"text","text":" zostaje interfejsem – "},{"type":"text","text":"OrderResponse","marks":[{"type":"code"}]},{"type":"text","text":" ma ten sam kształt, więc kontroler może go zwrócić bez mapowania."}]},{"type":"codeGroup","attrs":{"title":"DTO z dokumentacją"},"content":[{"type":"codeBlock","attrs":{"language":"typescript","filename":"nest/src/orders/http/dto/create-order.dto.ts"},"content":[{"type":"text","text":"import { Type } from 'class-transformer';\nimport {\n  ArrayMaxSize,\n  ArrayMinSize,\n  IsIn,\n  IsInt,\n  IsOptional,\n  IsString,\n  Length,\n  Matches,\n  Max,\n  MaxLength,\n  Min,\n  ValidateNested,\n} from 'class-validator';\nimport { ApiProperty } from '@nestjs/swagger';\nimport { DISHES, type Dish } from '../../domain/order';\n\nexport class OrderItemDto {\n  @ApiProperty({ enum: DISHES, enumName: 'Dish' }) // named enum = one reusable schema\n  @IsIn(DISHES)\n  dish: Dish;\n\n  /** @example 20 */\n  @IsInt()\n  @Min(1)\n  @Max(100)\n  quantity: number;\n}\n\nexport class CreateOrderDto {\n  /** @example \"Zdzisław\" */\n  @IsString()\n  @Length(2, 80)\n  customerName: string;\n\n  /** Called when the order is ready. @example \"600 100 200\" */\n  @Matches(/^\\+?[0-9 ]{9,15}$/, { message: 'phone must be a valid phone number' })\n  phone: string;\n\n  @ValidateNested({ each: true })\n  @Type(() => OrderItemDto) // without it nested objects stay plain and are NOT validated\n  @ArrayMinSize(1)\n  @ArrayMaxSize(10)\n  items: OrderItemDto[];\n\n  /** Allergies, gate code, anything the kitchen should know. */\n  @IsOptional()\n  @IsString()\n  @MaxLength(500)\n  note?: string;\n}"}]},{"type":"codeBlock","attrs":{"language":"typescript","filename":"nest/src/orders/http/dto/list-orders.query.ts"},"content":[{"type":"text","text":"import { Type } from 'class-transformer';\nimport { IsIn, IsInt, IsOptional, Max, Min } from 'class-validator';\nimport { ApiPropertyOptional } from '@nestjs/swagger';\nimport { ORDER_STATUSES, type OrderStatus } from '../../domain/order';\n\nexport class ListOrdersQuery {\n  @ApiPropertyOptional({ enum: ORDER_STATUSES, enumName: 'OrderStatus' })\n  @IsOptional()\n  @IsIn(ORDER_STATUSES)\n  status?: OrderStatus;\n\n  /** Page size. */\n  @IsOptional()\n  @Type(() => Number) // query params arrive as strings\n  @IsInt()\n  @Min(1)\n  @Max(100)\n  limit: number = 20;\n}"}]},{"type":"codeBlock","attrs":{"language":"typescript","filename":"nest/src/orders/http/dto/update-status.dto.ts"},"content":[{"type":"text","text":"import { ApiProperty } from '@nestjs/swagger';\nimport { IsIn } from 'class-validator';\nimport { ORDER_STATUSES, type OrderStatus } from '../../domain/order';\n\nexport class UpdateStatusDto {\n  @ApiProperty({ enum: ORDER_STATUSES, enumName: 'OrderStatus' })\n  @IsIn(ORDER_STATUSES)\n  status: OrderStatus;\n}"}]},{"type":"codeBlock","attrs":{"language":"typescript","filename":"nest/src/orders/http/dto/order.response.ts"},"content":[{"type":"text","text":"import { ApiProperty } from '@nestjs/swagger';\nimport { DISHES, type Dish, ORDER_STATUSES, type OrderStatus } from '../../domain/order';\n\n// Response shapes need classes too – Swagger cannot read TypeScript interfaces at runtime.\nexport class OrderItemResponse {\n  @ApiProperty({ enum: DISHES, enumName: 'Dish' })\n  dish: Dish;\n\n  /** @example 20 */\n  quantity: number;\n}\n\nexport class OrderResponse {\n  /** @example \"6b08c0da0e1dd661e68c6b93\" */\n  id: string;\n\n  /** @example \"Zdzisław\" */\n  customerName: string;\n\n  /** Called when the order is ready. @example \"600 100 200\" */\n  phone: string;\n\n  items: OrderItemResponse[];\n\n  note?: string;\n\n  @ApiProperty({ enum: ORDER_STATUSES, enumName: 'OrderStatus' })\n  status: OrderStatus;\n\n  createdAt: Date;\n}\n\nexport class OrderListResponse {\n  items: OrderResponse[];\n}\n\nexport class PageMeta {\n  /** @example 20 */\n  limit: number;\n}\n\nexport class OrderPageResponse {\n  data: OrderResponse[];\n  meta: PageMeta;\n}\n\nexport class ApiErrorResponse {\n  /** @example 422 */\n  statusCode: number;\n\n  /** Machine-readable error code. @example \"TOO_MANY_PIEROGI\" */\n  code?: string;\n\n  @ApiProperty({ oneOf: [{ type: 'string' }, { type: 'array', items: { type: 'string' } }] })\n  message: string | string[];\n}"}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"enumName","marks":[{"type":"code"}]},{"type":"text","text":" zamienia powtarzaną listę wartości w jeden komponent ("},{"type":"text","text":"Dish","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"OrderStatus","marks":[{"type":"code"}]},{"type":"text","text":"). Generatory klientów zrobią z niego jeden typ, a nie pięć kopii unii."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Komentarze ","marks":[{"type":"bold"}]},{"type":"text","text":"/** ... @example ... */","marks":[{"type":"code"}]},{"type":"text","text":" trafiają do specyfikacji dzięki "},{"type":"text","text":"introspectComments","marks":[{"type":"code"}]},{"type":"text","text":" – dokumentacja żyje obok pola, którego dotyczy."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"ApiErrorResponse","marks":[{"type":"code"}]},{"type":"text","text":" opisuje format błędów Nesta ("},{"type":"text","text":"message","marks":[{"type":"code"}]},{"type":"text","text":" bywa napisem albo tablicą komunikatów walidacji) i błędów domenowych ("},{"type":"text","text":"code","marks":[{"type":"code"}]},{"type":"text","text":")."}]}]}]}]},"toc":[{"id":"czesc-1-nestjs-nestjs-swagger","text":"Część 1. NestJS: @nestjs/swagger","level":2,"locked":false},{"id":"krok-1-instalacja-plugin-cli-i-konfiguracja-dokumentu","text":"Krok 1. Instalacja, plugin CLI i konfiguracja dokumentu","level":3,"locked":false},{"id":"krok-2-dto-wejscia-i-wyjscia","text":"Krok 2. DTO wejścia i wyjścia","level":3,"locked":false},{"id":"krok-3-kontroler-odpowiedzi-zabezpieczenia-i-wersje","text":"Krok 3. Kontroler: odpowiedzi, zabezpieczenia i wersje","level":3,"locked":true},{"id":"krok-4-eksport-specyfikacji-bez-bazy-danych","text":"Krok 4. Eksport specyfikacji bez bazy danych","level":3,"locked":true},{"id":"czesc-2-express-openapi-ze-schematow-zod","text":"Część 2. Express: OpenAPI ze schematów Zod","level":2,"locked":true},{"id":"krok-5-rejestr-sciezek-i-swagger-ui","text":"Krok 5. Rejestr ścieżek i Swagger UI","level":3,"locked":true},{"id":"krok-6-eksport-lint-i-kontrola-zmian-w-ci","text":"Krok 6. Eksport, lint i kontrola zmian w CI","level":3,"locked":true},{"id":"czesc-3-typowany-klient-z-kontraktu","text":"Część 3. Typowany klient z kontraktu","level":2,"locked":true},{"id":"krok-7-openapi-typescript-i-openapi-fetch","text":"Krok 7. openapi-typescript i openapi-fetch","level":3,"locked":true},{"id":"higiena-dokumentacji-lista-kontrolna","text":"Higiena dokumentacji – lista kontrolna","level":2,"locked":true},{"id":"typowe-bledy","text":"Typowe błędy","level":2,"locked":true},{"id":"sprawdz-sie","text":"Sprawdź się","level":2,"locked":true},{"id":"co-dalej","text":"Co dalej","level":2,"locked":true}],"locked":true,"paywall":null,"previewRatio":0.3,"totalBlocks":61,"visibleBlocks":17,"resources":[{"id":"6b0857b33c96f2d34d0b3663","type":"repo","provider":"github","url":"https://github.com/NationalBankBelgium/REST-API-Design-Guide","embedUrl":null,"title":"NationalBankBelgium/REST-API-Design-Guide","description":"NBB's REST-ish API Design Guide","author":"NationalBankBelgium","thumbnailUrl":"https://opengraph.githubassets.com/1/NationalBankBelgium/REST-API-Design-Guide","durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["design","design-pattern","design-patterns","rest","rest-api","restful","api-design","restful-api","restful-webservices"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2016-10-12T06:58:57.000Z","popularity":56,"verifiedAt":"2026-11-26T10:57:29.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:50.215Z","updatedAt":"2026-11-26T16:00:50.215Z"},{"id":"6b0857c73c96f2d34d0b491e","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=u_5JppAExDs","embedUrl":"https://www.youtube-nocookie.com/embed/u_5JppAExDs","title":"Top 10 Rest API Design Pitfalls by Victor Rentea @ Spring I/O 2025","description":"Spring I/O 2025 - 22-23 May, Barcelona An entertaining review of the most common mistakes in designing an API, from the most outrageous goofs to the most dangerous “innocent” shortcuts. You’ll see examples of: Breaking Changes, Domain Model Leak, Sensitive Data Exposure, Performance Issues…","author":"Spring I/O","thumbnailUrl":"https://i.ytimg.com/vi/u_5JppAExDs/hqdefault.jpg","durationSec":null,"lang":"en","topics":["cqrs"],"techs":["java"],"tags":["api-design","performance","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"youtube-rss","publishedAt":"2025-09-03T21:03:59.000Z","popularity":66,"verifiedAt":"2026-11-26T10:56:51.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:10.095Z","updatedAt":"2026-11-26T16:01:10.095Z"},{"id":"6b0857c83c96f2d34d0b4a21","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=JNuk66FVSM0","embedUrl":"https://www.youtube-nocookie.com/embed/JNuk66FVSM0","title":"OpenAPI with a sprinkle ✨ of Hypermedia","description":"OpenAPI is great for describing your HTTP API. It's used at design time when you're developing to understand how interact with an HTTP API. But on the other side is more runtime considerations that allow evolvability with Hypermedia. Here's how to use both. 🔗 EventStoreDB…","author":"CodeOpinion","thumbnailUrl":"https://i.ytimg.com/vi/JNuk66FVSM0/hqdefault.jpg","durationSec":null,"lang":"en","topics":["event-sourcing"],"techs":["dotnet"],"tags":["software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"youtube-rss","publishedAt":"2024-06-27T14:12:54.000Z","popularity":58,"verifiedAt":"2026-11-26T10:53:40.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:10.095Z","updatedAt":"2026-11-26T16:01:10.095Z"},{"id":"6b0857ba3c96f2d34d0b3eaa","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/building-the-future-of-apis-mike-kistlers-insights/id1433496275?i=1000735679581","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id1433496275?i=1000735679581","title":"Building the Future of APIs: Mike Kistler's Insights on OpenAPI and MCP","description":"Strategic Technology Consultation Services This episode of The Modern .NET Show is supported, in part, by RJJ Software's Strategic Technology Consultation Services. If you're an SME (Small to Medium Enterprise) leader wondering why your technology investments aren't delivering, or you're facing…","author":"The Modern .NET Show","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts211/v4/dd/a8/49/dda849d0-9ad8-ed16-1e29-c2379835442a/mza_548653166950185678.jpg/600x600bb.jpg","durationSec":4202,"lang":"en","topics":["mcp","ai-in-dotnet"],"techs":["dotnet"],"tags":["podcast","cloud","ai"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2025-11-07T06:30:00.000Z","popularity":52,"verifiedAt":"2026-11-26T11:07:26.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:57.868Z","updatedAt":"2026-11-26T16:00:57.868Z"}],"challenges":[],"attachments":[],"hasCode":true,"repoUrl":null,"series":[],"prev":null,"next":null,"featured":false,"authorCard":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","headline":"Wzorce projektowe · Architektura · AI i LLM","community":false,"reputation":{"points":3900,"level":{"key":"mentor","label":"Mentor"}},"articles":68,"skills":[{"key":"typescript","title":"TypeScript","level":5,"levelLabel":"Autorytet","articles":63},{"key":"dotnet","title":".NET","level":5,"levelLabel":"Autorytet","articles":53},{"key":"python","title":"Python","level":5,"levelLabel":"Autorytet","articles":52},{"key":"java","title":"Java","level":5,"levelLabel":"Autorytet","articles":38}]}}