{"owner":"repowise-dev","repo":"repowise","hasSpec":true,"specFile":"tests/fixtures/sample_repo/api/openapi.yaml","branch":"HEAD","format":"yaml","version":"3.x (YAML)","title":"repowise","description":"","endpoints":[],"spec":"openapi: \"3.0.3\"\ninfo:\n  title: Sample Calculator API\n  version: \"1.0.0\"\n  description: >\n    A simple arithmetic API used as a fixture for repowise ingestion tests.\n    Supports four operations: add, subtract, multiply, divide.\n\npaths:\n  /calculate:\n    post:\n      operationId: calculate\n      summary: Perform a single arithmetic calculation\n      requestBody:\n        required: true\n        content:\n          application/json:\n            schema:\n              $ref: '#/components/schemas/CalculationRequest'\n      responses:\n        '200':\n          description: Successful calculation\n          content:\n            application/json:\n              schema:\n                $ref: '#/components/schemas/CalculationResponse'\n        '400':\n          description: Invalid request\n          content:\n            application/json:\n              schema:\n                $ref: '#/components/schemas/ApiError'\n        '422':\n          description: Division by zero\n          content:\n            application/json:\n              schema:\n                $ref: '#/components/schemas/ApiError'\n\n  /history:\n    get:\n      operationId: getHistory\n      summary: Retrieve calculation history\n      parameters:\n        - in: query\n          name: page\n          schema:\n            type: integer\n            default: 0\n        - in: query\n          name: page_size\n          schema:\n            type: integer\n            default: 20\n      responses:\n        '200':\n          description: Paginated history\n          content:\n            application/json:\n              schema:\n                $ref: '#/components/schemas/CalculationHistory'\n\n  /health:\n    get:\n      operationId: healthCheck\n      summary: API health check\n      responses:\n        '200':\n          description: API is healthy\n          content:\n            application/json:\n              schema:\n                type: object\n                properties:\n                  status:\n                    type: string\n                    example: ok\n\ncomponents:\n  schemas:\n    CalculationRequest:\n      type: object\n      required: [operation, x, y]\n      properties:\n        operation:\n          type: string\n          enum: [add, subtract, multiply, divide]\n        x:\n          type: number\n        y:\n          type: number\n\n    CalculationResponse:\n      type: object\n      properties:\n        operation:\n          type: string\n        x:\n          type: number\n        y:\n          type: number\n        result:\n          type: number\n\n    CalculationHistory:\n      type: object\n      properties:\n        entries:\n          type: array\n          items:\n            $ref: '#/components/schemas/CalculationResponse'\n        total:\n          type: integer\n        page:\n          type: integer\n        page_size:\n          type: integer\n\n    ApiError:\n      type: object\n      properties:\n        status:\n          type: integer\n        message:\n          type: string\n        detail:\n          type: string\n"}