openapi: 3.0.2 info: title: outlet-store version: "1.0" paths: /api/hello: post: requestBody: content: application/json: schema: $ref: '#/components/schemas/HelloInput' text/html: schema: $ref: '#/components/schemas/HelloInput' tags: - Initial summary: Request after turnOn application. responses: '200': description: Device is added and have status active content: application/json: schema: $ref: '#/components/schemas/HelloOutput' /api/login_check: post: requestBody: content: application/json: schema: oneOf: - $ref: '#/components/schemas/LoginUsernamePasswordInput' - $ref: '#/components/schemas/LoginBarcodeInput' text/html: schema: oneOf: - $ref: '#/components/schemas/LoginUsernamePasswordInput' - $ref: '#/components/schemas/LoginBarcodeInput' tags: - Default summary: Login request responses: '400': description: 'Information about bad creditentials or missiing androidId or invalid androidId or androidId is not assigned to user' '401': description: 'Unauthorized' '200': description: success content: application/json: schema: $ref: '#/components/schemas/LoginOutput' text/html: schema: $ref: '#/components/schemas/LoginOutput' /api/logout: post: requestBody: content: {} tags: - Default responses: '200': description: Success logout /api/pause/start: post: tags: - Default summary: Start reporting pause responses: '204': $ref: '#/components/responses/204NoContent' '401': $ref: '#/components/responses/401Unauthorized' /api/pause/stop: post: tags: - Default summary: Stop reporting pause responses: '204': $ref: '#/components/responses/204NoContent' '401': $ref: '#/components/responses/401Unauthorized' /api/clear-washing: post: tags: - Washing summary: Start reporting pause responses: '204': $ref: '#/components/responses/204NoContent' '401': $ref: '#/components/responses/401Unauthorized' /api/token/refresh: post: requestBody: content: application/json: schema: $ref: '#/components/schemas/RefreshInput' text/html: schema: $ref: '#/components/schemas/RefreshInput' tags: - Initial summary: Reflesh token request responses: '400': description: 'Information about bad creditentials or missiing androidId or invalid androidId or androidId is not assigned to user' '200': description: success content: application/json: schema: $ref: '#/components/schemas/LoginOutput' text/html: schema: $ref: '#/components/schemas/LoginOutput' /api/dictionary: get: tags: - Initial summary: Get dictionaries for manipulation responses: '200': description: success content: application/json: schema: $ref: '#/components/schemas/DictionaryOutput' text/hmtl: schema: $ref: '#/components/schemas/DictionaryOutput' /api/box: post: tags: - Box summary: "Create box" requestBody: content: application/json: schema: oneOf: - $ref: '#/components/schemas/BoxInput' - $ref: '#/components/schemas/ReceptionBoxInput' - $ref: '#/components/schemas/GoodBoxInput' - $ref: '#/components/schemas/WasteBoxInput' - $ref: '#/components/schemas/SecondhandBoxInput' - $ref: '#/components/schemas/SeasonBoxInput' - $ref: '#/components/schemas/ModelBoxInput' responses: '200': $ref: '#/components/responses/BoxOutputResponse' '400': $ref: '#/components/responses/400ValidationErrors' /api/box/{barcode}: get: tags: - Box parameters: - name: barcode in: path required: true schema: type: string example: "BR-12312312" summary: Get box info responses: '200': $ref: '#/components/responses/BoxOutputResponse' '404': $ref: '#/components/responses/404NotFound' put: tags: - Box summary: Update weight and units parameters: - name: barcode in: path required: true schema: type: string example: "BR-12312312" requestBody: content: application/json: schema: oneOf: - $ref: '#/components/schemas/BoxPutInput' - $ref: '#/components/schemas/ReceptionBoxPutInput' - $ref: '#/components/schemas/SecondhandBoxPutInput' - $ref: '#/components/schemas/WasteBoxPutInput' - $ref: '#/components/schemas/SeasonBoxPutInput' responses: '200': $ref: '#/components/responses/BoxOutputResponse' '400': $ref: '#/components/responses/400ValidationErrors' '404': $ref: '#/components/responses/404NotFound' /api/box/{barcode}/overwrite: put: tags: - Box summary: Update weight and units parameters: - name: barcode in: path required: true schema: type: string example: "BR-12312312" requestBody: content: application/json: schema: oneOf: - $ref: '#/components/schemas/BoxOverwriteInput' responses: '200': $ref: '#/components/responses/BoxOutputResponse' '400': $ref: '#/components/responses/400ValidationErrors' '404': $ref: '#/components/responses/404NotFound' /api/shop/box/{barcode}: put: tags: - Box summary: Add shop to units parameters: - name: barcode in: path required: true schema: type: string example: "BR-12312312" requestBody: content: application/json: schema: $ref: '#/components/schemas/ShopBoxPutInput' responses: '200': $ref: '#/components/responses/ShopBoxOutputResponse' '400': $ref: '#/components/responses/400ValidationErrors' '404': $ref: '#/components/responses/404NotFound' /api/repair/box/{barcode}: put: tags: - Box Repair summary: Remove box defect and remove all defects from box units parameters: - name: barcode in: path required: true schema: type: string example: "B-12312312" requestBody: content: application/json: schema: $ref: '#/components/schemas/EmptyInput' responses: '200': $ref: '#/components/responses/RepairBoxOutputResponse' '404': $ref: '#/components/responses/404NotFound' /api/logistic-queue: get: tags: - Logistic Queue summary: Get list of queue elements responses: '200': description: success content: application/json: schema: items: $ref: '#/components/schemas/LogisticQueueOutput' /api/supply: get: tags: - Supply summary: Get list of supplies parameters: - in: query name: active schema: type: boolean example: true, false - in: query name: createdAt[before] schema: type: string example: 28-10-2020 - in: query name: orderId schema: type: string example: ec598040-48fa-467c-9e0f-dcef43d93461 - in: query name: createdAt[after] schema: type: string example: 28-10-2020 - in: query name: brandId schema: type: string example: ec598040-48fa-467c-9e0f-dcef43d93461 - in: query name: supplyCode schema: type: string example: RES13/14.10.2020 responses: '200': description: success content: application/json: schema: items: $ref: '#/components/schemas/SupplyOutput' /api/supply/{id}: get: tags: - Supply summary: Get supply information parameters: - name: id in: path required: true schema: type: string example: "000854f4-49c4-44eb-944f-43a8b57841af" responses: '200': description: success content: application/json: schema: items: $ref: '#/components/schemas/SupplyOutput' '404': $ref: '#/components/responses/404NotFound' /api/order: get: tags: - Order summary: Get list of orders parameters: - in: query name: active schema: type: boolean example: true, false responses: '200': description: success content: application/json: schema: items: $ref: '#/components/schemas/OrderOutput' /api/order/{id}: get: tags: - Order summary: Get order information parameters: - name: id in: path required: true schema: type: string example: "000854f4-49c4-44eb-944f-43a8b57841af" responses: '200': description: success content: application/json: schema: items: $ref: '#/components/schemas/OrderOutput' '404': $ref: '#/components/responses/404NotFound' /api/pallet: post: tags: - Pallet summary: "Create pallet" requestBody: content: application/json: schema: oneOf: - $ref: '#/components/schemas/ReceptionPalletInput' - $ref: '#/components/schemas/LogisticPalletInput' responses: '200': $ref: '#/components/responses/PalletOutputResponse' '400': $ref: '#/components/responses/400ValidationErrors' /api/pallet/{barcode}: get: tags: - Pallet summary: Get pallet information parameters: - name: barcode in: path required: true schema: type: string example: "P-123112231" responses: '200': $ref: '#/components/responses/PalletOutputResponse' '404': $ref: '#/components/responses/404NotFound' put: tags: - Pallet summary: Add boxes to pallet parameters: - name: barcode in: path required: true schema: type: string example: "P-123112231" requestBody: content: application/json: schema: oneOf: - $ref: '#/components/schemas/ReceptionPalletPutInput' - $ref: '#/components/schemas/LogisticPalletPutInput' responses: '200': description: succcess content: application/json: schema: $ref: '#/components/schemas/PalletLogisticOutput' '400': $ref: '#/components/responses/400ValidationErrors' '404': $ref: '#/components/responses/404NotFound' delete: tags: - Pallet summary: "Delete reception pallet" parameters: - name: barcode in: path required: true schema: type: string example: "RP-1231231" responses: '204': $ref: '#/components/responses/204NoContent' '404': $ref: '#/components/responses/404NotFound' /api/magazine-place/{barcode}: get: tags: - Magazine Place summary: Get magzine place information parameters: - name: barcode in: path required: true schema: type: string example: "MP-123112231" responses: '200': $ref: '#/components/responses/MagazinePlaceOutputResponse' '404': $ref: '#/components/responses/404NotFound' put: tags: - Magazine Place summary: Add boxes to pallet parameters: - name: barcode in: path required: true schema: type: string example: "MP-123112231" requestBody: content: application/json: schema: $ref: '#/components/schemas/MagzinePlaceInput' responses: '200': $ref: '#/components/responses/MagazinePlaceOutputResponse' '400': $ref: '#/components/responses/400ValidationErrors' '404': $ref: '#/components/responses/404NotFound' /api/unit: post: tags: - Unit summary: Create new unit requestBody: $ref: '#/components/requestBodies/UnitInputResponse' responses: '200': $ref: '#/components/responses/UnitOutputResponse' '400': $ref: '#/components/responses/400ValidationErrors' /api/unit/{barcode}: put: tags: - Unit parameters: - name: barcode in: path required: true schema: type: string example: "U-123112231" summary: Update old unit. requestBody: $ref: '#/components/requestBodies/UnitInputResponse' responses: '200': $ref: '#/components/responses/UnitOutputResponse' '400': $ref: '#/components/responses/400ValidationErrors' get: tags: - Unit parameters: - name: barcode in: path required: true schema: type: string example: "U-123112231" summary: Get unit. responses: '200': $ref: '#/components/responses/UnitOutputResponse' '404': $ref: '#/components/responses/404NotFound' delete: tags: - Unit parameters: - name: barcode in: path required: true schema: type: string example: "U-123112231" summary: Delete unit. responses: '204': $ref: '#/components/responses/204NoContent' '404': $ref: '#/components/responses/404NotFound' /api/box-template/{barcode}: get: tags: - Box Template parameters: - name: barcode in: path required: true schema: type: string example: "TMP-123112231" summary: Get box template. responses: '200': $ref: '#/components/responses/BoxTemplateResponse' '404': $ref: '#/components/responses/404NotFound' /api/unit-good: get: tags: - UnitGood parameters: - in: query name: inWashing schema: type: boolean example: true, false summary: Get list of all good units responses: '200': $ref: '#/components/responses/UnitGoodResponse' /api/history-unit: get: tags: - History responses: '200': $ref: '#/components/responses/UnitOutputResponse' /api/history-box: get: tags: - History responses: '200': $ref: '#/components/responses/BoxOutputResponse' /api/history-pallet: get: tags: - History responses: '200': $ref: '#/components/responses/PalletOutputResponse' /api/ean: post: tags: - Ean summary: Create new ean requestBody: content: application/json: schema: $ref: '#/components/schemas/EanInput' responses: '201': $ref: '#/components/responses/EanOutputResponse' /api/ean/{barcode}: get: tags: - Ean summary: Get information about ean parameters: - name: barcode in: path required: true schema: type: string example: "123132-323132-32" responses: '200': $ref: '#/components/responses/EanOutputResponse' '404': $ref: '#/components/responses/404NotFound' put: tags: - Ean summary: Set proposed price for ean parameters: - name: barcode in: path required: true schema: type: string example: "123132-323132-32" requestBody: content: application/json: schema: $ref: '#/components/schemas/EanInput' responses: '200': $ref: '#/components/responses/EanOutputResponse' '400': $ref: '#/components/responses/400ValidationErrors' '404': $ref: '#/components/responses/404NotFound' delete: tags: - Ean parameters: - name: barcode in: path required: true schema: type: string example: "123132-323132-32" summary: Remove ean responses: '204': $ref: '#/components/responses/204NoContent' '404': $ref: '#/components/responses/404NotFound' /api/model: get: tags: - Model summary: Get list of models parameters: - in: query name: code schema: type: string example: "XC719-01X" - in: query name: brandType schema: type: integer enum: [0,1,2,3,4,5,6,7,8] responses: '200': description: success content: application/json: schema: items: $ref: '#/components/schemas/ModelOutput' post: tags: - Model summary: Create new model requestBody: content: application/json: schema: $ref: '#/components/schemas/ModelInput' responses: '201': $ref: '#/components/responses/ModelOutputResponse' /api/model/{id}: get: tags: - Model summary: Get model information parameters: - name: id in: path required: true schema: type: string example: "cf03b971-92bd-487b-b2a5-54b1fc613ce4" responses: '200': description: success content: application/json: schema: items: $ref: '#/components/schemas/ModelOutput' '404': $ref: '#/components/responses/404NotFound' put: tags: - Model summary: Update existing model parameters: - name: id in: path required: true schema: type: string example: "cf03b971-92bd-487b-b2a5-54b1fc613ce4" requestBody: content: application/json: schema: $ref: '#/components/schemas/ModelInput' responses: '200': $ref: '#/components/responses/ModelOutputResponse' /api/washing/{barcode}: delete: tags: - Washing parameters: - name: barcode in: path required: true schema: type: string example: "B-2020062320954" summary: Send units from specific box into washing and remove box responses: '204': $ref: '#/components/responses/204NoContent' '404': $ref: '#/components/responses/404NotFound' /api/user/{id}: get: tags: - User summary: Get user by ID parameters: - name: id in: path required: true schema: type: string example: "cf03b971-92bd-487b-b2a5-54b1fc613ce4" responses: '200': description: success content: application/json: schema: items: $ref: '#/components/schemas/UserOutput' '404': $ref: '#/components/responses/404NotFound' put: tags: - User summary: Update existing user parameters: - name: id in: path required: true schema: type: string example: "cf03b971-92bd-487b-b2a5-54b1fc613ce4" requestBody: content: application/json: schema: $ref: '#/components/schemas/UserInput' responses: '200': $ref: '#/components/responses/UserOutputResponse' components: schemas: HelloInput: type: object properties: androidId: type: string example: "ANDROID_ID" token: type: string example: "SUPER_TAJNY_TOKEN" HelloOutput: type: object properties: androidId: type: string example: "ANDROID_ID" status: type: boolean example: false logisticAppVersion: type: string example: "APP_VERSION" manipulationAppVersion: type: string example: "APP_VERSION" receptionAppVersion: type: string example: "APP_VERSION" sortingAppVersion: type: string example: "APP_VERSION" RefreshInput: type: object properties: refresh_token: type: string example: 'c27c22a781a12cf40ee25daf18ed1cc9bd37b5f02e069aac9d67211b08165b33d20555ef4e730cfbd1772e7606bc3bb95215fa4e4aa71e5de0051537f3d5d8e3' androidId: type: string example: "ANDORID_ID" workPlaceId: type: integer enum: [1,2,3,4,5,6] required: - refresh_token - andoridId - workPlaceId LoginUsernamePasswordInput: type: object properties: username: type: string example: 'ANowak' password: type: string example: test1234 androidId: type: string example: 'Do ustalenia z Maćkiem' workPlaceId: type: integer enum: [1,2,3,4,5,6] required: - username - password - androidId - workPlaceId LoginBarcodeInput: type: object properties: barcode: type: string example: '12903i2091as09id0910190a9i90209i' androidId: type: string example: 'Do ustalenia z Maćkiem' required: - barcode - androidId LoginOutput: type: object properties: token: type: string example: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE1NjE5NzM4MTYsImV4cCI6MTU2MTk3NzQxNiwicm9sZXMiOlsiUk9MRV9MT0dJU1RJQyIsIlJPTEVfVVNFUiJdLCJ1c2VybmFtZSI6ImFub3dhayJ9.TeRwAfqe512RVSmJpZaW3hylWgK8IgXMQbL4CSpHkU4TejB_2mkZSHwDS4_A3YzAhBTnHwdSupQwLvLYqbCXFYVkO1OzIkGx944BvuMteHoGDlB4cFdpzf3FISW-N72FvQrnXuJ2P0yYq0ZDTeJE5h50nqgEUYR6w00fjKx7UfUzXxBhW4XvbprSmx-gzueGeI4ZNUFsPFYnc3pRxGcIv8S5SGxpQQhU3s-7V8gryKLC_1LpaNhWnizYW-Gz4-s0Pv9RfP1lUkSHnW7l1wpk-zxhb6hgzacKtESkds0HhzCxigLnd-XpgPC2WAK-4O3gSnvd58LXYz_nVHbInyiMjhx1r5l9lhUtmb85EHFsPu47377EKvo73Cc5iLL4YdzmcdmqT-tO1WwtOFLTcfnBwkGM-JgFBlGGpMGm0fgEbrzLQRBUFZQ6fvcuG48FaMFenT9AK7l-qvjc_TpuHsHMWVnoW3mtywbPTOGgJSEiLbtudk0MBIdFgyHf-9478GpW1odNouc4n4Rn5oETAoaNM7687Zs-Kb8NLaXHoq-ojxdwJru6ipMvbd7NSDRprxwJ0Hj2xG-Pon9JFt2HIw11qwLbWed0PINUnq1SV6ivgiyfIfMb5CmkOxKj3TNBkQIrPj2IAoGr-RqoMwwDzjC3U4AFtx8aRGExVUFKPB6MrXI' refresh_token: type: string example: "c27c22a781a12cf40ee25daf18ed1cc9bd37b5f02e069aac9d67211b08165b33d20555ef4e730cfbd1772e7606bc3bb95215fa4e4aa71e5de0051537f3d5d8e3" PriceOutput: type: object properties: priceId: type: string nullable: true example: 000854f4-49c4-44eb-944f-43a8b57841af id: type: string nullable: true example: 000854f4-49c4-44eb-944f-43a8b57841af DictionaryAssortmentsOutput: type: object properties: id: type: string example: 000854f4-49c4-44eb-944f-43a8b57841af code: type: string nullable: false example: "Americanas(Blazers)" categoryOwnerId: type: string nullable: true example: 000854f4-49c4-44eb-944f-43a8b57841af name: type: string nullable: false example: "Americanas" displayMode: type: integer enum: [1,2] example: 1 DictionaryBrandOutput: type: object properties: id: type: string example: 000854f4-49c4-44eb-944f-43a8b57841af code: type: string example: "CRO" name: type: string nullable: false example: "Cropp" brandType: type: number nullable: false enum: [0,1,2,3,4,5,6] brandOwnerId: type: string example: 000854f4-49c4-44eb-944f-43a8b57841af DictionaryCategoriesOutput: type: object properties: id: type: string example: 000854f4-49c4-44eb-944f-43a8b57841af code: type: string example: "Text" name: type: string nullable: false example: "Textylia" DictionaryGenderOutput: type: object properties: id: type: string example: 000854f4-49c4-44eb-944f-43a8b57841af code: type: string example: "KID" name: type: string nullable: false example: "Dziecko" DictionarySeasonOutput: type: object properties: id: type: string example: 000854f4-49c4-44eb-944f-43a8b57841af name: type: string example: "Zima" code: type: string example: "ZI" mainSeason: type: boolean example: true PriceBrandDictionary: properties: cena: type: string example: "19.90" DictionaryPriceOutput: type: object properties: id: type: string example: 000854f4-49c4-44eb-944f-43a8b57841af displayMode: type: integer enum: [1,2] example: 1 pricePLN: type: string example: "19.90" DictionaryShopOutput: type: object properties: id: type: string example: 000854f4-49c4-44eb-944f-43a8b57841af name: type: string example: "Auchan" DictionaryMagazinePlacesOutput: type: object properties: id: type: string example: 000854f4-49c4-44eb-944f-43a8b57841af name: type: string example: "A1" BrandTypesOutput: type: object properties: id: type: integer example: 1 name: type: string example: "Bershka" pattern: type: string example: "[0000]{/}[000]{/}[000]" DictionaryOutput: type: object properties: assortments: type: array items: $ref: "#/components/schemas/DictionaryAssortmentsOutput" brands: type: array items: $ref: "#/components/schemas/DictionaryBrandOutput" categories: type: array items: $ref: "#/components/schemas/DictionaryCategoriesOutput" genders: type: array items: $ref: "#/components/schemas/DictionaryGenderOutput" seasons: type: array items: $ref: "#/components/schemas/DictionarySeasonOutput" prices: type: array items: $ref: "#/components/schemas/DictionaryPriceOutput" shops: type: array items: $ref: '#/components/schemas/DictionaryShopOutput' magazinePlaces: type: array items: $ref: '#/components/schemas/DictionaryMagazinePlacesOutput' brandTypes: type: array items: $ref: '#/components/schemas/BrandTypesOutput' TargetOutput: type: object properties: current: type: integer example: 100 goal: type: integer example: 400 AbstractBoxPutInput: type: object properties: weight: type: number example: 1.31 ReceptionBoxPutInput: allOf: - $ref: '#/components/schemas/AbstractBoxPutInput' - type: object required: - rootCause WasteBoxPutInput: allOf: - $ref: '#/components/schemas/AbstractBoxPutInput' - type: object required: - rootCause properties: units: type: array items: $ref: "#/components/schemas/BoxPutUnitInput" SecondhandBoxPutInput: allOf: - $ref: '#/components/schemas/AbstractBoxPutInput' - type: object required: - rootCause properties: units: type: array items: $ref: "#/components/schemas/BoxPutUnitInput" SeasonBoxPutInput: allOf: - $ref: '#/components/schemas/AbstractBoxPutInput' - type: object required: - rootCause properties: units: type: array items: $ref: "#/components/schemas/BoxPutUnitInput" BoxPutInput: allOf: - $ref: '#/components/schemas/AbstractBoxPutInput' - type: object required: - rootCause properties: units: type: array items: $ref: "#/components/schemas/BoxPutUnitInput" BoxOverwriteInput: type: object required: - rootCause properties: units: type: array items: $ref: "#/components/schemas/BoxPutUnitInput" ShopBoxPutInput: type: object properties: units: type: array items: $ref: "#/components/schemas/BoxPutUnitInput" BoxPutUnitInput: type: object properties: barcode: type: string example: U-2020031104921 DictionaryParametersOutput: type: object properties: assortmentId: type: string example: 000854f4-49c4-44eb-944f-43a8b57841af seasonId: type: string example: 000854f4-49c4-44eb-944f-43a8b57841af genderId: type: string example: 000854f4-49c4-44eb-944f-43a8b57841af categoryId: type: string example: 000854f4-49c4-44eb-944f-43a8b57841af DictionaryItemOutput: type: object properties: id: type: string example: 000854f4-49c4-44eb-944f-43a8b57841af name: type: string example: exampleName LogisticQueueOutput: type: object properties: pallet: type: object $ref: '#/components/schemas/AbstractPalletOutput' queuePriority: type: integer example: 3 magazineAreaBarcode: type: string example: MA-2020030584496 SupplyOutput: type: object properties: id: type: string example: 000854f4-49c4-44eb-944f-43a8b57841af brandId: type: string example: 000854f4-49c4-44eb-944f-43a8b57841af active: type: boolean example: true code: type: string example: "LPC6/30.08.2011" receptionPallets: type: array items: $ref: "#/components/schemas/ReceptionPalletOutput" OrderOutput: type: object properties: id: type: string example: 000854f4-49c4-44eb-944f-43a8b57841af truckNumber: type: integer example: 13 AbstractPalletInput: type: object properties: palletType: type: integer enum: [1,2] example: 1 LogisticPalletInput: allOf: - $ref: '#/components/schemas/AbstractPalletInput' - type: object required: - rootCause ReceptionPalletInput: allOf: - $ref: '#/components/schemas/AbstractPalletInput' - type: object required: - rootCause properties: supplyId: type: string example: 000854f4-49c4-44eb-944f-43a8b57841af boxCount: type: integer example: 3 weight: type: number example: 1.1 LogisticPalletPutInput: type: object properties: boxes: type: array items: $ref: "#/components/schemas/BoxPalletInput" ReceptionPalletPutInput: type: object properties: weight: type: number example: 1.1 nullable: true BoxPalletInput: type: object properties: barcode: type: string example: "B-123123123" EmptyInput: type: object BoxInput: type: object properties: boxTemplateBarcode: type: string example: "TMP-123123123" ReceptionBoxInput: type: object properties: boxTemplateBarcode: type: string example: "TMP-123123123" supplyId: type: string example: 000854f4-49c4-44eb-944f-43a8b57841af ModelBoxInput: type: object properties: boxTemplateBarcode: type: string example: "TMP-123123123" supplyId: type: string example: 000854f4-49c4-44eb-944f-43a8b57841af modelId: type: string example: 000854f4-49c4-44eb-944f-43a8b57841af unitCount: type: integer example: 20 weight: type: number example: 20.5 GoodBoxInput: type: object properties: boxTemplateBarcode: type: string example: "TMP-123123123" shopOrderId: type: string example: 000854f4-49c4-44eb-944f-43a8b57841af WasteBoxInput: type: object properties: boxTemplateBarcode: type: string example: "TMP-123123123" SecondhandBoxInput: type: object properties: boxTemplateBarcode: type: string example: "TMP-123123123" SeasonBoxInput: type: object properties: boxTemplateBarcode: type: string example: "TMP-123123123" MagazinePlaceOutput: type: object properties: barcode: type: string example: "MP-123123123" name: type: string example: "Magazine Place random name" pallets: type: array items: $ref: "#/components/schemas/PalletMagazinePlaceOutput" PalletMagazinePlaceOutput: type: object properties: barcode: type: string example: PL-1312321231 MagzinePlaceInput: type: object properties: palletBarcode: type: string example: "PL-86721937891" AbstractUnitInput: type: object properties: brandId: type: string example: "eb540e1e-ad52-4315-b022-cb7605bd4161" genderId: type: string example: "eb540e1e-ad52-4315-b022-cb7605bd4161" categoryId: type: string example: "eb540e1e-ad52-4315-b022-cb7605bd4161" assortmentId: type: string nullable: true example: "eb540e1e-ad52-4315-b022-cb7605bd4161" seasonId: type: string nullable: true example: "eb540e1e-ad52-4315-b022-cb7605bd4161" unitType: type: integer enum: [1,2,3,4] example: 1 ean: type: string nullable: true example: "32131241312" supplyId: type: string example: "eb540e1e-ad52-4315-b022-cb7605bd4161" UnitInput: allOf: - $ref: '#/components/schemas/AbstractUnitInput' - type: object required: - rootCause properties: supplyId: type: string example: "eb540e1e-ad52-4315-b022-cb7605bd4161" isLongSeries: type: boolean example: true default: true quality: type: integer enum: [1,2,3] capacity: type: integer example: 1 minimum: 1 default: 1 priceId: type: string nullable: true example: "eb540e1e-ad52-4315-b022-cb7605bd4161" defects: type: array default: [] items: type: integer enum: [1,2,3,4] unitType: type: integer enum: [1] boxBarcode: type: string example: "B-2020051527370" nullable: true isInWashing: type: boolean example: false default: false onSale: type: boolean example: false default: false UnitWasteInput: allOf: - $ref: '#/components/schemas/AbstractUnitInput' - type: object required: - rootCause properties: unitType: type: integer enum: [2] boxBarcode: type: string example: "BWT-2020051562161" nullable: true UnitSecondhandInput: allOf: - $ref: '#/components/schemas/AbstractUnitInput' - type: object required: - rootCause properties: unitType: type: integer enum: [3] boxBarcode: type: string example: "BSH-2020051514690" nullable: true UnitSeasonInput: allOf: - $ref: '#/components/schemas/AbstractUnitInput' - type: object required: - rootCause properties: unitType: type: integer enum: [4] seasonId: type: string nullable: false example: "eb540e1e-ad52-4315-b022-cb7605bd4161" boxBarcode: type: string example: "BSU-2020051599316" nullable: true UnitShopInput: type: object properties: priceId: type: string example: "eb540e1e-ad52-4315-b022-cb7605bd4161" shopOrderId: type: string example: "eb540e1e-ad52-4315-b022-cb7605bd4161" AbstractPalletOutput: type: object properties: barcode: type: string example: "RP-123123123" magazinePlaceBarcode: type: string example: "MP-123123123" palletType: type: integer enum: [1,2] example: 1 ReceptionPalletOutput: allOf: - $ref: '#/components/schemas/AbstractPalletOutput' - type: object required: - rootCause properties: supplyId: type: string example: "eb540e1e-ad52-4315-b022-cb7605bd4161" boxCount: type: integer example: 5 weight: type: number nullable: true example: 1.1 palletType: type: integer enum: [2] example: 1 PalletLogisticOutput: allOf: - $ref: '#/components/schemas/AbstractPalletOutput' - type: object required: - rootCause properties: boxes: type: array items: $ref: "#/components/schemas/AbstractBoxOutput" palletType: type: integer enum: [1] example: 1 AbstractBoxOutput: type: object properties: barcode: type: string example: "RB-123123123" dictionaryParameters: type: object $ref: '#/components/schemas/DictionaryParametersOutput' weight: type: number example: 1.2 boxType: type: integer enum: [1,2,3,4,5,6,7] example: 1 modelId: type: string example: "eb540e1e-ad52-4315-b022-cb7605bd4161" supplyId: type: string example: "eb540e1e-ad52-4315-b022-cb7605bd4161" unitQuality: type: integer enum: [1,2,3] nullable: true example: 1 ReceptionBoxOutput: allOf: - $ref: '#/components/schemas/AbstractBoxOutput' - type: object required: - rootCause properties: boxType: type: integer enum: [5] example: 5 receptionUnitCondition: type: integer enum: [1,2,3,4,5,20] nullable: true example: 1 defect: type: integer enum: [1,2,3,4] nullable: true example: 1 sale: type: integer enum: [-1,1,2,3,4] nullable: true example: 1 BoxOutput: allOf: - $ref: '#/components/schemas/AbstractBoxOutput' - type: object required: - rootCause properties: shopOrderId: type: string example: "eb540e1e-ad52-4315-b022-cb7605bd4161" defect: type: integer enum: [1,2,3,4] example: 1 units: type: array items: $ref: "#/components/schemas/AbstractUnitOutput" boxType: type: integer enum: [1] example: 1 sale: type: integer enum: [-1,1,2,3,4] nullable: true example: 1 SecondhandBoxOutput: allOf: - $ref: '#/components/schemas/AbstractBoxOutput' - type: object required: - rootCause properties: units: type: array items: $ref: "#/components/schemas/AbstractUnitOutput" boxType: type: integer enum: [3] example: 3 SeasonBoxOutput: allOf: - $ref: '#/components/schemas/AbstractBoxOutput' - type: object required: - rootCause properties: units: type: array items: $ref: "#/components/schemas/AbstractUnitOutput" boxType: type: integer enum: [4] example: 4 WasteBoxOutput: allOf: - $ref: '#/components/schemas/AbstractBoxOutput' - type: object required: - rootCause properties: units: type: array items: $ref: "#/components/schemas/AbstractUnitOutput" boxType: type: integer enum: [2] example: 2 AbstractUnitOutput: type: object properties: dictionaryParameters: type: object $ref: '#/components/schemas/DictionaryParametersOutput' barcode: type: string example: 'U-10102020AEXXX' supplyId: type: string example: "eb540e1e-ad52-4315-b022-cb7605bd4161" unitType: type: integer enum: [1,2,3,4,5, 99] example: 1 ean: type: string example: "32131241312" BoxTemplateOutput: type: object properties: dictionaryParameters: type: object $ref: '#/components/schemas/DictionaryParametersOutput' barcode: type: string example: 'U-10102020AEXXX' unitCondition: type: array items: type: integer example: [1,2,3,4,5,20] defects: type: array items: type: integer example: [1,2,3,4] longSeries: type: boolean unitQuality: type: integer enum: [1,2,3] nullable: true example: 1 ValuableUnitOutput: allOf: - $ref: '#/components/schemas/AbstractUnitOutput' - type: object required: - rootCouse properties: supplyId: type: string example: "eb540e1e-ad52-4315-b022-cb7605bd4161" isLongSeries: type: boolean quality: type: integer enum: [1,2,3] capacity: type: integer priceId: type: string example: "eb540e1e-ad52-4315-b022-cb7605bd4161" defectsTitle: type: string example: "PMR" UnitMissingOutput: allOf: - $ref: '#/components/schemas/ValuableUnitOutput' - type: object required: - rootCause properties: defects: type: array items: type: integer example: [1,2,3,4] shopOrderId: type: string example: "UUID" UnitOutput: allOf: - $ref: '#/components/schemas/ValuableUnitOutput' - type: object required: - rootCause properties: defectsTitle: type: string example: "PMR" unitType: type: integer enum: [1] boxBarcode: type: string example: "B-2020051527370" isInWashing: type: boolean onSale: type: boolean example: false default: false UnitShopOutput: allOf: - $ref: '#/components/schemas/ValuableUnitOutput' - type: object required: - rootCause properties: unitType: type: integer enum: [5] shopOrderId: type: string example: "UUID" UnitWasteOutput: allOf: - $ref: '#/components/schemas/AbstractUnitOutput' - type: object required: - rootCause properties: unitType: type: integer enum: [2] boxBarcode: type: string example: "BWT-2020051562161" UnitSecondhandOutput: allOf: - $ref: '#/components/schemas/AbstractUnitOutput' - type: object required: - rootCause properties: unitType: type: integer enum: [3] boxBarcode: type: string example: "BSH-2020051514690" UnitSeasonOutput: allOf: - $ref: '#/components/schemas/AbstractUnitOutput' - type: object required: - rootCause properties: unitType: type: integer enum: [4] boxBarcode: type: string example: "BSU-2020051599316" EanInput: type: object properties: barcode: type: string example: "123132-323132-32" priceId: type: string example: "eb540e1e-ad52-4315-b022-cb7605bd4161" nullable: true unitModelId: type: string example: "acd2e1d0-8575-487c-aa51-127afebac90b" nullable: true EanOutput: type: object properties: barcode: type: string example: "123132-323132-32" priceId: type: string example: "eb540e1e-ad52-4315-b022-cb7605bd4161" nullable: true unitModelId: type: string example: "acd2e1d0-8575-487c-aa51-127afebac90b" nullable: true ModelInput: type: object properties: id: type: string example: "cf03b971-92bd-487b-b2a5-54b1fc613ce4" nullable: true code: type: string example: "XC719-01X" nullable: true catalogPrice: type: string example: "7999" category: type: integer example: 2 nullable: true priceId: type: string example: "eb540e1e-ad52-4315-b022-cb7605bd4161" nullable: true brandId: type: string example: "208dd308-5b12-4284-83af-99fa35f68aa9" nullable: true genderId: type: string example: "208dd308-5b12-4284-83af-99fa35f68aa9" nullable: true assortmentId: type: string example: "208dd308-5b12-4284-83af-99fa35f68aa9" nullable: true seasonId: type: string example: "208dd308-5b12-4284-83af-99fa35f68aa9" nullable: true ModelOutput: type: object properties: id: type: string example: "cf03b971-92bd-487b-b2a5-54b1fc613ce4" name: type: string example: "Koszulka z bambusem" code: type: string example: "XC719-01X" catalogPrice: type: string example: "7999" categoryId: type: integer example: 2 brandId: type: string example: "208dd308-5b12-4284-83af-99fa35f68aa9" genderId: type: string example: "208dd308-5b12-4284-83af-99fa35f68aa9" assortmentId: type: string example: "208dd308-5b12-4284-83af-99fa35f68aa9" seasonId: type: string example: "208dd308-5b12-4284-83af-99fa35f68aa9" isFilled: type: boolean example: true|false UserInput: type: object properties: id: type: string example: "208dd308-5b12-4284-83af-99fa35f68aa9" nullable: true workplace: type: integer example: 3 nullable: false UserOutput: type: object properties: workplace: type: object properties: name: type: string example: "Naprawy" id: type: integer example: 5 responses: 200Success: description: No content response 204NoContent: description: No content response 404NotFound: description: Not found the resource on given id 400ValidationErrors: description: Validation errors 500Error: description: Internal Server error 401Unauthorized: description: Unauthorized UnitOutputResponse: description: Ouput of unit input. Ouput is depend of UnitType parameter content: application/json: schema: oneOf: - $ref: '#/components/schemas/UnitOutput' - $ref: '#/components/schemas/UnitSecondhandOutput' - $ref: '#/components/schemas/UnitWasteOutput' - $ref: '#/components/schemas/UnitSeasonOutput' - $ref: '#/components/schemas/UnitShopOutput' - $ref: '#/components/schemas/UnitMissingOutput' UnitGoodResponse: description: Output of good units content: application/json: schema: oneOf: - $ref: '#/components/schemas/UnitOutput' BoxTemplateResponse: description: success content: application/json: schema: $ref: '#/components/schemas/BoxTemplateOutput' BoxOutputResponse: description: success content: application/json: schema: oneOf: - $ref: '#/components/schemas/ReceptionBoxOutput' - $ref: '#/components/schemas/WasteBoxOutput' - $ref: '#/components/schemas/SecondhandBoxOutput' - $ref: '#/components/schemas/SeasonBoxOutput' - $ref: '#/components/schemas/BoxOutput' ShopBoxOutputResponse: description: success content: application/json: schema: $ref: '#/components/schemas/BoxOutput' RepairBoxOutputResponse: description: success content: application/json: schema: $ref: '#/components/schemas/BoxOutput' MagazinePlaceOutputResponse: description: success content: application/json: schema: $ref: '#/components/schemas/MagazinePlaceOutput' PalletOutputResponse: description: success content: application/json: schema: oneOf: - $ref: '#/components/schemas/PalletLogisticOutput' - $ref: '#/components/schemas/ReceptionPalletOutput' EanOutputResponse: description: Ouput of Ean input content: application/json: schema: $ref: '#/components/schemas/EanOutput' ModelOutputResponse: description: Ouput of Model input content: application/json: schema: $ref: '#/components/schemas/ModelOutput' UserOutputResponse: description: Ouput of User input content: application/json: schema: $ref: '#/components/schemas/UserOutput' requestBodies: UnitInputResponse: description: Ouput of unit input. Input is depend of UnitType parameter content: application/json: schema: oneOf: - $ref: '#/components/schemas/UnitInput' - $ref: '#/components/schemas/UnitSecondhandInput' - $ref: '#/components/schemas/UnitWasteInput' - $ref: '#/components/schemas/UnitSeasonInput' - $ref: '#/components/schemas/UnitShopInput' EanInputResponse: description: Input of ean input. content: application/json: schema: $ref: '#/components/schemas/EanInput'