openapi: 3.2.0 info: title: Hyperlabs.Web Product Units API version: '1.0' servers: - url: /api tags: - name: ProductUnits paths: /v1/admin/products/{productId}/units: get: tags: - ProductUnits parameters: - name: productId in: path required: true schema: title: Guid type: string format: uuid responses: '200': description: OK '401': description: Unauthorized '403': description: Forbidden security: - oauth2: [] post: tags: - ProductUnits parameters: - name: productId in: path required: true schema: title: Guid type: string format: uuid requestBody: content: application/json: schema: $ref: '#/components/schemas/Hyperlabs.Web.Areas.Admin.Models.ProductUnits.ChangeProductUnitDto' text/json: schema: $ref: '#/components/schemas/Hyperlabs.Web.Areas.Admin.Models.ProductUnits.ChangeProductUnitDto' application/*+json: schema: $ref: '#/components/schemas/Hyperlabs.Web.Areas.Admin.Models.ProductUnits.ChangeProductUnitDto' responses: '200': description: OK '401': description: Unauthorized '403': description: Forbidden security: - oauth2: [] /v1/admin/units/{id}: put: tags: - ProductUnits parameters: - name: id in: path required: true schema: title: Guid type: string format: uuid requestBody: content: application/json: schema: $ref: '#/components/schemas/Hyperlabs.Web.Areas.Admin.Models.ProductUnits.ChangeProductUnitDto' text/json: schema: $ref: '#/components/schemas/Hyperlabs.Web.Areas.Admin.Models.ProductUnits.ChangeProductUnitDto' application/*+json: schema: $ref: '#/components/schemas/Hyperlabs.Web.Areas.Admin.Models.ProductUnits.ChangeProductUnitDto' responses: '200': description: OK '401': description: Unauthorized '403': description: Forbidden security: - oauth2: [] delete: tags: - ProductUnits parameters: - name: id in: path required: true schema: title: Guid type: string format: uuid responses: '200': description: OK '401': description: Unauthorized '403': description: Forbidden security: - oauth2: [] /v1/admin/products/{productId}/units/generate: post: tags: - ProductUnits parameters: - name: productId in: path required: true schema: title: Guid type: string format: uuid responses: '200': description: OK '401': description: Unauthorized '403': description: Forbidden security: - oauth2: [] components: schemas: Hyperlabs.Web.Areas.Admin.Models.ProductUnits.ChangeProductUnitVariableDto: title: ChangeProductUnitVariableDto type: object properties: variableId: title: Guid type: string format: uuid valueId: title: Guid type: string format: uuid additionalProperties: false Hyperlabs.Web.Areas.Admin.Models.ProductUnits.ChangeProductUnitDto: title: ChangeProductUnitDto type: object properties: name: title: String type: - string - 'null' variables: title: ChangeProductUnitVariableDto[] type: - array - 'null' items: $ref: '#/components/schemas/Hyperlabs.Web.Areas.Admin.Models.ProductUnits.ChangeProductUnitVariableDto' additionalProperties: false securitySchemes: oauth2: type: apiKey description: 'Standard Authorization header using the Bearer scheme. Example: "Bearer {token}"' name: Authorization in: header