openapi: 3.0.0 info: title: Product Management API version: 1.0.0 description: API to manage product catalog including creation, updates, and retrieval. servers: - url: https://api.example.com/v1 description: Production server paths: /products: post: summary: Create a new product tags: [Products] requestBody: required: true content: application/json: schema: type: object required: - name - description properties: name: type: string example: "Product A" description: type: string example: "Detailed description of Product A" responses: '201': description: Product created successfully '400': description: Bad request get: summary: Get all products tags: [Products] responses: '200': description: A list of products /products/{productId}: get: summary: Get product by ID tags: [Products] parameters: - name: productId in: path required: true schema: type: string responses: '200': description: Product details '404': description: Product not found components: securitySchemes: bearerAuth: type: http scheme: bearer bearerFormat: JWT security: - bearerAuth: [] tags: - name: Products description: Product management endpoints