Facebook
From Chartreuse Curlew, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 61
  1. openapi: 3.0.2
  2. info:
  3.     title: outlet-store
  4.     version: "1.0"
  5.  
  6. paths:
  7.     /api/hello:
  8.         post:
  9.             requestBody:
  10.                 content:
  11.                     application/json:
  12.                         schema:
  13.                             $ref: '#/components/schemas/HelloInput'
  14.                     text/html:
  15.                         schema:
  16.                             $ref: '#/components/schemas/HelloInput'
  17.             tags:
  18.                 - Initial
  19.             summary: Request after turnOn application.
  20.             responses:
  21.                 '200':
  22.                     description: Device is added and have status active
  23.                     content:
  24.                         application/json:
  25.                             schema:
  26.                                 $ref: '#/components/schemas/HelloOutput'
  27.     /api/login_check:
  28.         post:
  29.             requestBody:
  30.                 content:
  31.                     application/json:
  32.                         schema:
  33.                             oneOf:
  34.                                 -   $ref: '#/components/schemas/LoginUsernamePasswordInput'
  35.                                 -   $ref: '#/components/schemas/LoginBarcodeInput'
  36.                     text/html:
  37.                         schema:
  38.                             oneOf:
  39.                                 -   $ref: '#/components/schemas/LoginUsernamePasswordInput'
  40.                                 -   $ref: '#/components/schemas/LoginBarcodeInput'
  41.             tags:
  42.                 - Default
  43.             summary: Login request
  44.             responses:
  45.                 '400':
  46.                     description: 'Information about bad creditentials or missiing androidId or invalid androidId or androidId is not assigned to user'
  47.                 '401':
  48.                     description: 'Unauthorized'
  49.                 '200':
  50.                     description: success
  51.                     content:
  52.                         application/json:
  53.                             schema:
  54.                                 $ref: '#/components/schemas/LoginOutput'
  55.                         text/html:
  56.                             schema:
  57.                                 $ref: '#/components/schemas/LoginOutput'
  58.     /api/logout:
  59.         post:
  60.             requestBody:
  61.                 content: {}
  62.             tags:
  63.                 - Default
  64.             responses:
  65.                 '200':
  66.                     description: Success logout
  67.  
  68.     /api/pause/start:
  69.         post:
  70.             tags:
  71.                 - Default
  72.             summary: Start reporting pause
  73.             responses:
  74.                 '204':
  75.                     $ref: '#/components/responses/204NoContent'
  76.                 '401':
  77.                     $ref: '#/components/responses/401Unauthorized'
  78.  
  79.     /api/pause/stop:
  80.         post:
  81.             tags:
  82.                 - Default
  83.             summary: Stop reporting pause
  84.             responses:
  85.                 '204':
  86.                     $ref: '#/components/responses/204NoContent'
  87.                 '401':
  88.                     $ref: '#/components/responses/401Unauthorized'
  89.  
  90.  
  91.  
  92.     /api/clear-washing:
  93.         post:
  94.             tags:
  95.                 - Washing
  96.             summary: Start reporting pause
  97.             responses:
  98.                 '204':
  99.                     $ref: '#/components/responses/204NoContent'
  100.                 '401':
  101.                     $ref: '#/components/responses/401Unauthorized'
  102.  
  103.  
  104.  
  105.     /api/token/refresh:
  106.         post:
  107.             requestBody:
  108.                 content:
  109.                     application/json:
  110.                         schema:
  111.                             $ref: '#/components/schemas/RefreshInput'
  112.                     text/html:
  113.                         schema:
  114.                             $ref: '#/components/schemas/RefreshInput'
  115.             tags:
  116.                 - Initial
  117.             summary: Reflesh token request
  118.             responses:
  119.                 '400':
  120.                     description: 'Information about bad creditentials or missiing androidId or invalid androidId or androidId is not assigned to user'
  121.                 '200':
  122.                     description: success
  123.                     content:
  124.                         application/json:
  125.                             schema:
  126.                                 $ref: '#/components/schemas/LoginOutput'
  127.                         text/html:
  128.                             schema:
  129.                                 $ref: '#/components/schemas/LoginOutput'
  130.  
  131.     /api/dictionary:
  132.         get:
  133.             tags:
  134.                 - Initial
  135.             summary: Get dictionaries for manipulation
  136.             responses:
  137.                 '200':
  138.                     description: success
  139.                     content:
  140.                         application/json:
  141.                             schema:
  142.                                 $ref: '#/components/schemas/DictionaryOutput'
  143.                         text/hmtl:
  144.                             schema:
  145.                                 $ref: '#/components/schemas/DictionaryOutput'
  146.  
  147.     /api/box:
  148.         post:
  149.             tags:
  150.                 - Box
  151.             summary: "Create box"
  152.             requestBody:
  153.                 content:
  154.                     application/json:
  155.                         schema:
  156.                             oneOf:
  157.                                 -   $ref: '#/components/schemas/BoxInput'
  158.                                 -   $ref: '#/components/schemas/ReceptionBoxInput'
  159.                                 -   $ref: '#/components/schemas/GoodBoxInput'
  160.                                 -   $ref: '#/components/schemas/WasteBoxInput'
  161.                                 -   $ref: '#/components/schemas/SecondhandBoxInput'
  162.                                 -   $ref: '#/components/schemas/SeasonBoxInput'
  163.                                 -   $ref: '#/components/schemas/ModelBoxInput'
  164.             responses:
  165.                 '200':
  166.                     $ref: '#/components/responses/BoxOutputResponse'
  167.                 '400':
  168.                     $ref: '#/components/responses/400ValidationErrors'
  169.  
  170.     /api/box/{barcode}:
  171.         get:
  172.             tags:
  173.                 - Box
  174.             parameters:
  175.                 -   name: barcode
  176.                     in: path
  177.                     required: true
  178.                     schema:
  179.                         type: string
  180.                     example: "BR-12312312"
  181.             summary: Get box info
  182.             responses:
  183.                 '200':
  184.                     $ref: '#/components/responses/BoxOutputResponse'
  185.                 '404':
  186.                     $ref: '#/components/responses/404NotFound'
  187.  
  188.         put:
  189.             tags:
  190.                 - Box
  191.             summary: Update weight and units
  192.             parameters:
  193.                 -   name: barcode
  194.                     in: path
  195.                     required: true
  196.                     schema:
  197.                         type: string
  198.                     example: "BR-12312312"
  199.             requestBody:
  200.                 content:
  201.                     application/json:
  202.                         schema:
  203.                             oneOf:
  204.                                 -   $ref: '#/components/schemas/BoxPutInput'
  205.                                 -   $ref: '#/components/schemas/ReceptionBoxPutInput'
  206.                                 -   $ref: '#/components/schemas/SecondhandBoxPutInput'
  207.                                 -   $ref: '#/components/schemas/WasteBoxPutInput'
  208.                                 -   $ref: '#/components/schemas/SeasonBoxPutInput'
  209.             responses:
  210.                 '200':
  211.                     $ref: '#/components/responses/BoxOutputResponse'
  212.                 '400':
  213.                     $ref: '#/components/responses/400ValidationErrors'
  214.                 '404':
  215.                     $ref: '#/components/responses/404NotFound'
  216.  
  217.     /api/box/{barcode}/overwrite:
  218.         put:
  219.             tags:
  220.                 - Box
  221.             summary: Update weight and units
  222.             parameters:
  223.                 -   name: barcode
  224.                     in: path
  225.                     required: true
  226.                     schema:
  227.                         type: string
  228.                     example: "BR-12312312"
  229.             requestBody:
  230.                 content:
  231.                     application/json:
  232.                         schema:
  233.                             oneOf:
  234.                                 -   $ref: '#/components/schemas/BoxOverwriteInput'
  235.             responses:
  236.                 '200':
  237.                     $ref: '#/components/responses/BoxOutputResponse'
  238.                 '400':
  239.                     $ref: '#/components/responses/400ValidationErrors'
  240.                 '404':
  241.                     $ref: '#/components/responses/404NotFound'
  242.  
  243.     /api/shop/box/{barcode}:
  244.         put:
  245.             tags:
  246.                 - Box
  247.             summary: Add shop to units
  248.             parameters:
  249.                 -   name: barcode
  250.                     in: path
  251.                     required: true
  252.                     schema:
  253.                         type: string
  254.                     example: "BR-12312312"
  255.             requestBody:
  256.                 content:
  257.                     application/json:
  258.                         schema:
  259.                             $ref: '#/components/schemas/ShopBoxPutInput'
  260.             responses:
  261.                 '200':
  262.                     $ref: '#/components/responses/ShopBoxOutputResponse'
  263.                 '400':
  264.                     $ref: '#/components/responses/400ValidationErrors'
  265.                 '404':
  266.                     $ref: '#/components/responses/404NotFound'
  267.  
  268.     /api/repair/box/{barcode}:
  269.         put:
  270.             tags:
  271.                 - Box Repair
  272.             summary: Remove box defect and remove all defects from box units
  273.             parameters:
  274.                 -   name: barcode
  275.                     in: path
  276.                     required: true
  277.                     schema:
  278.                         type: string
  279.                     example: "B-12312312"
  280.             requestBody:
  281.                 content:
  282.                     application/json:
  283.                         schema:
  284.                             $ref: '#/components/schemas/EmptyInput'
  285.  
  286.             responses:
  287.                 '200':
  288.                     $ref: '#/components/responses/RepairBoxOutputResponse'
  289.                 '404':
  290.                     $ref: '#/components/responses/404NotFound'
  291.  
  292.     /api/logistic-queue:
  293.         get:
  294.             tags:
  295.                 - Logistic Queue
  296.             summary: Get list of queue elements
  297.             responses:
  298.                 '200':
  299.                     description: success
  300.                     content:
  301.                         application/json:
  302.                             schema:
  303.                                 items:
  304.                                     $ref: '#/components/schemas/LogisticQueueOutput'
  305.  
  306.     /api/supply:
  307.         get:
  308.             tags:
  309.                 - Supply
  310.             summary: Get list of supplies
  311.             parameters:
  312.                 -   in: query
  313.                     name: active
  314.                     schema:
  315.                         type: boolean
  316.                         example: true, false
  317.                 -   in: query
  318.                     name: createdAt[before]
  319.                     schema:
  320.                         type: string
  321.                         example: 28-10-2020
  322.                 -   in: query
  323.                     name: orderId
  324.                     schema:
  325.                         type: string
  326.                         example: ec598040-48fa-467c-9e0f-dcef43d93461
  327.                 -   in: query
  328.                     name: createdAt[after]
  329.                     schema:
  330.                         type: string
  331.                         example: 28-10-2020
  332.                 -  in: query
  333.                    name: brandId
  334.                    schema:
  335.                        type: string
  336.                        example: ec598040-48fa-467c-9e0f-dcef43d93461
  337.                 -   in: query
  338.                     name: supplyCode
  339.                     schema:
  340.                         type: string
  341.                         example: RES13/14.10.2020
  342.  
  343.             responses:
  344.                 '200':
  345.                     description: success
  346.                     content:
  347.                         application/json:
  348.                             schema:
  349.                                 items:
  350.                                     $ref: '#/components/schemas/SupplyOutput'
  351.  
  352.     /api/supply/{id}:
  353.         get:
  354.             tags:
  355.                 - Supply
  356.             summary: Get supply information
  357.             parameters:
  358.                 -   name: id
  359.                     in: path
  360.                     required: true
  361.                     schema:
  362.                         type: string
  363.                     example: "000854f4-49c4-44eb-944f-43a8b57841af"
  364.             responses:
  365.                 '200':
  366.                     description: success
  367.                     content:
  368.                         application/json:
  369.                             schema:
  370.                                 items:
  371.                                     $ref: '#/components/schemas/SupplyOutput'
  372.                 '404':
  373.                     $ref: '#/components/responses/404NotFound'
  374.  
  375.  
  376.     /api/order:
  377.         get:
  378.             tags:
  379.                 - Order
  380.             summary: Get list of orders
  381.             parameters:
  382.                 -   in: query
  383.                     name: active
  384.                     schema:
  385.                         type: boolean
  386.                         example: true, false
  387.             responses:
  388.                 '200':
  389.                     description: success
  390.                     content:
  391.                         application/json:
  392.                             schema:
  393.                                 items:
  394.                                     $ref: '#/components/schemas/OrderOutput'
  395.  
  396.     /api/order/{id}:
  397.         get:
  398.             tags:
  399.                 - Order
  400.             summary: Get order information
  401.             parameters:
  402.                 -   name: id
  403.                     in: path
  404.                     required: true
  405.                     schema:
  406.                         type: string
  407.                     example: "000854f4-49c4-44eb-944f-43a8b57841af"
  408.             responses:
  409.                 '200':
  410.                     description: success
  411.                     content:
  412.                         application/json:
  413.                             schema:
  414.                                 items:
  415.                                     $ref: '#/components/schemas/OrderOutput'
  416.                 '404':
  417.                     $ref: '#/components/responses/404NotFound'
  418.  
  419.  
  420.  
  421.  
  422.  
  423.     /api/pallet:
  424.         post:
  425.             tags:
  426.                 - Pallet
  427.             summary: "Create pallet"
  428.             requestBody:
  429.                 content:
  430.                     application/json:
  431.                         schema:
  432.                             oneOf:
  433.                                 -   $ref: '#/components/schemas/ReceptionPalletInput'
  434.                                 -   $ref: '#/components/schemas/LogisticPalletInput'
  435.             responses:
  436.                 '200':
  437.                     $ref: '#/components/responses/PalletOutputResponse'
  438.                 '400':
  439.                     $ref: '#/components/responses/400ValidationErrors'
  440.  
  441.  
  442.     /api/pallet/{barcode}:
  443.         get:
  444.             tags:
  445.                 - Pallet
  446.             summary: Get pallet information
  447.             parameters:
  448.                 -   name: barcode
  449.                     in: path
  450.                     required: true
  451.                     schema:
  452.                         type: string
  453.                     example: "P-123112231"
  454.             responses:
  455.                 '200':
  456.                     $ref: '#/components/responses/PalletOutputResponse'
  457.                 '404':
  458.                     $ref: '#/components/responses/404NotFound'
  459.  
  460.         put:
  461.             tags:
  462.                 - Pallet
  463.             summary: Add boxes to pallet
  464.             parameters:
  465.                 -   name: barcode
  466.                     in: path
  467.                     required: true
  468.                     schema:
  469.                         type: string
  470.                     example: "P-123112231"
  471.             requestBody:
  472.                 content:
  473.                     application/json:
  474.                         schema:
  475.                             oneOf:
  476.                                 -   $ref: '#/components/schemas/ReceptionPalletPutInput'
  477.                                 -   $ref: '#/components/schemas/LogisticPalletPutInput'
  478.             responses:
  479.                 '200':
  480.                     description: succcess
  481.                     content:
  482.                         application/json:
  483.                             schema:
  484.                                 $ref: '#/components/schemas/PalletLogisticOutput'
  485.                 '400':
  486.                     $ref: '#/components/responses/400ValidationErrors'
  487.                 '404':
  488.                     $ref: '#/components/responses/404NotFound'
  489.         delete:
  490.             tags:
  491.                 - Pallet
  492.             summary: "Delete reception pallet"
  493.             parameters:
  494.                 -   name: barcode
  495.                     in: path
  496.                     required: true
  497.                     schema:
  498.                         type: string
  499.                     example: "RP-1231231"
  500.             responses:
  501.                 '204':
  502.                     $ref: '#/components/responses/204NoContent'
  503.                 '404':
  504.                     $ref: '#/components/responses/404NotFound'
  505.  
  506.     /api/magazine-place/{barcode}:
  507.         get:
  508.             tags:
  509.                 - Magazine Place
  510.             summary: Get magzine place information
  511.             parameters:
  512.                 -   name: barcode
  513.                     in: path
  514.                     required: true
  515.                     schema:
  516.                         type: string
  517.                     example: "MP-123112231"
  518.             responses:
  519.                 '200':
  520.                     $ref: '#/components/responses/MagazinePlaceOutputResponse'
  521.                 '404':
  522.                     $ref: '#/components/responses/404NotFound'
  523.         put:
  524.             tags:
  525.                 - Magazine Place
  526.             summary: Add boxes to pallet
  527.             parameters:
  528.                 -   name: barcode
  529.                     in: path
  530.                     required: true
  531.                     schema:
  532.                         type: string
  533.                     example: "MP-123112231"
  534.             requestBody:
  535.                 content:
  536.                     application/json:
  537.                         schema:
  538.                             $ref: '#/components/schemas/MagzinePlaceInput'
  539.             responses:
  540.                 '200':
  541.                     $ref: '#/components/responses/MagazinePlaceOutputResponse'
  542.                 '400':
  543.                     $ref: '#/components/responses/400ValidationErrors'
  544.                 '404':
  545.                     $ref: '#/components/responses/404NotFound'
  546.  
  547.     /api/unit:
  548.         post:
  549.             tags:
  550.                 - Unit
  551.             summary: Create new unit
  552.             requestBody:
  553.                 $ref: '#/components/requestBodies/UnitInputResponse'
  554.             responses:
  555.                 '200':
  556.                     $ref: '#/components/responses/UnitOutputResponse'
  557.                 '400':
  558.                     $ref: '#/components/responses/400ValidationErrors'
  559.  
  560.     /api/unit/{barcode}:
  561.         put:
  562.             tags:
  563.                 - Unit
  564.             parameters:
  565.                 -   name: barcode
  566.                     in: path
  567.                     required: true
  568.                     schema:
  569.                         type: string
  570.                     example: "U-123112231"
  571.             summary: Update old unit.
  572.             requestBody:
  573.                 $ref: '#/components/requestBodies/UnitInputResponse'
  574.             responses:
  575.                 '200':
  576.                     $ref: '#/components/responses/UnitOutputResponse'
  577.                 '400':
  578.                     $ref: '#/components/responses/400ValidationErrors'
  579.         get:
  580.             tags:
  581.                 - Unit
  582.             parameters:
  583.                 -   name: barcode
  584.                     in: path
  585.                     required: true
  586.                     schema:
  587.                         type: string
  588.                     example: "U-123112231"
  589.             summary: Get unit.
  590.             responses:
  591.                 '200':
  592.                     $ref: '#/components/responses/UnitOutputResponse'
  593.                 '404':
  594.                     $ref: '#/components/responses/404NotFound'
  595.  
  596.         delete:
  597.             tags:
  598.                 - Unit
  599.             parameters:
  600.                 -   name: barcode
  601.                     in: path
  602.                     required: true
  603.                     schema:
  604.                         type: string
  605.                     example: "U-123112231"
  606.             summary: Delete unit.
  607.             responses:
  608.                 '204':
  609.                     $ref: '#/components/responses/204NoContent'
  610.                 '404':
  611.                     $ref: '#/components/responses/404NotFound'
  612.  
  613.     /api/box-template/{barcode}:
  614.         get:
  615.             tags:
  616.                 - Box Template
  617.             parameters:
  618.                 -   name: barcode
  619.                     in: path
  620.                     required: true
  621.                     schema:
  622.                         type: string
  623.                     example: "TMP-123112231"
  624.             summary: Get box template.
  625.             responses:
  626.                 '200':
  627.                     $ref: '#/components/responses/BoxTemplateResponse'
  628.                 '404':
  629.                     $ref: '#/components/responses/404NotFound'
  630.  
  631.     /api/unit-good:
  632.         get:
  633.             tags:
  634.                 - UnitGood
  635.             parameters:
  636.                 -   in: query
  637.                     name: inWashing
  638.                     schema:
  639.                         type: boolean
  640.                         example: true, false
  641.             summary: Get list of all good units
  642.             responses:
  643.                 '200':
  644.                     $ref: '#/components/responses/UnitGoodResponse'
  645.  
  646.     /api/history-unit:
  647.         get:
  648.             tags:
  649.                 - History
  650.             responses:
  651.                 '200':
  652.                     $ref: '#/components/responses/UnitOutputResponse'
  653.  
  654.     /api/history-box:
  655.         get:
  656.             tags:
  657.                 - History
  658.             responses:
  659.                 '200':
  660.                     $ref: '#/components/responses/BoxOutputResponse'
  661.  
  662.     /api/history-pallet:
  663.         get:
  664.             tags:
  665.                 - History
  666.             responses:
  667.                 '200':
  668.                     $ref: '#/components/responses/PalletOutputResponse'
  669.  
  670.     /api/ean:
  671.         post:
  672.             tags:
  673.                 - Ean
  674.             summary: Create new ean
  675.             requestBody:
  676.                 content:
  677.                     application/json:
  678.                         schema:
  679.                             $ref: '#/components/schemas/EanInput'
  680.             responses:
  681.                 '201':
  682.                     $ref: '#/components/responses/EanOutputResponse'
  683.  
  684.     /api/ean/{barcode}:
  685.         get:
  686.             tags:
  687.                 - Ean
  688.             summary: Get information about ean
  689.             parameters:
  690.                 -   name: barcode
  691.                     in: path
  692.                     required: true
  693.                     schema:
  694.                         type: string
  695.                     example: "123132-323132-32"
  696.             responses:
  697.                 '200':
  698.                     $ref: '#/components/responses/EanOutputResponse'
  699.                 '404':
  700.                     $ref: '#/components/responses/404NotFound'
  701.  
  702.         put:
  703.             tags:
  704.                 - Ean
  705.             summary: Set proposed price for ean
  706.             parameters:
  707.                 -   name: barcode
  708.                     in: path
  709.                     required: true
  710.                     schema:
  711.                         type: string
  712.                     example: "123132-323132-32"
  713.             requestBody:
  714.                 content:
  715.                     application/json:
  716.                         schema:
  717.                             $ref: '#/components/schemas/EanInput'
  718.             responses:
  719.                 '200':
  720.                     $ref: '#/components/responses/EanOutputResponse'
  721.                 '400':
  722.                     $ref: '#/components/responses/400ValidationErrors'
  723.                 '404':
  724.                     $ref: '#/components/responses/404NotFound'
  725.  
  726.         delete:
  727.             tags:
  728.                 - Ean
  729.             parameters:
  730.                 -   name: barcode
  731.                     in: path
  732.                     required: true
  733.                     schema:
  734.                         type: string
  735.                     example: "123132-323132-32"
  736.             summary: Remove ean
  737.             responses:
  738.                 '204':
  739.                     $ref: '#/components/responses/204NoContent'
  740.                 '404':
  741.                     $ref: '#/components/responses/404NotFound'
  742.  
  743.  
  744.     /api/model:
  745.         get:
  746.             tags:
  747.                 - Model
  748.             summary: Get list of models
  749.             parameters:
  750.                 -   in: query
  751.                     name: code
  752.                     schema:
  753.                         type: string
  754.                         example: "XC719-01X"
  755.                 -   in: query
  756.                     name: brandType
  757.                     schema:
  758.                         type: integer
  759.                         enum: [0,1,2,3,4,5,6,7,8]
  760.             responses:
  761.                 '200':
  762.                     description: success
  763.                     content:
  764.                         application/json:
  765.                             schema:
  766.                                 items:
  767.                                     $ref: '#/components/schemas/ModelOutput'
  768.         post:
  769.             tags:
  770.                 - Model
  771.             summary: Create new model
  772.             requestBody:
  773.                 content:
  774.                     application/json:
  775.                         schema:
  776.                             $ref: '#/components/schemas/ModelInput'
  777.             responses:
  778.                 '201':
  779.                     $ref: '#/components/responses/ModelOutputResponse'
  780.  
  781.     /api/model/{id}:
  782.         get:
  783.             tags:
  784.                 - Model
  785.             summary: Get model information
  786.             parameters:
  787.                 -   name: id
  788.                     in: path
  789.                     required: true
  790.                     schema:
  791.                         type: string
  792.                     example: "cf03b971-92bd-487b-b2a5-54b1fc613ce4"
  793.             responses:
  794.                 '200':
  795.                     description: success
  796.                     content:
  797.                         application/json:
  798.                             schema:
  799.                                 items:
  800.                                     $ref: '#/components/schemas/ModelOutput'
  801.                 '404':
  802.                     $ref: '#/components/responses/404NotFound'
  803.         put:
  804.             tags:
  805.                 - Model
  806.             summary: Update existing model
  807.             parameters:
  808.                 -   name: id
  809.                     in: path
  810.                     required: true
  811.                     schema:
  812.                         type: string
  813.                         example: "cf03b971-92bd-487b-b2a5-54b1fc613ce4"
  814.             requestBody:
  815.                 content:
  816.                     application/json:
  817.                         schema:
  818.                             $ref: '#/components/schemas/ModelInput'
  819.             responses:
  820.                 '200':
  821.                     $ref: '#/components/responses/ModelOutputResponse'
  822.  
  823.     /api/washing/{barcode}:
  824.         delete:
  825.             tags:
  826.                 - Washing
  827.             parameters:
  828.                 -   name: barcode
  829.                     in: path
  830.                     required: true
  831.                     schema:
  832.                         type: string
  833.                     example: "B-2020062320954"
  834.             summary: Send units from specific box into washing and remove box
  835.             responses:
  836.                 '204':
  837.                     $ref: '#/components/responses/204NoContent'
  838.                 '404':
  839.                     $ref: '#/components/responses/404NotFound'
  840.  
  841.     /api/user/{id}:
  842.         get:
  843.             tags:
  844.                 - User
  845.             summary: Get user by ID
  846.             parameters:
  847.                 -   name: id
  848.                     in: path
  849.                     required: true
  850.                     schema:
  851.                         type: string
  852.                         example: "cf03b971-92bd-487b-b2a5-54b1fc613ce4"
  853.             responses:
  854.                 '200':
  855.                     description: success
  856.                     content:
  857.                         application/json:
  858.                             schema:
  859.                                 items:
  860.                                     $ref: '#/components/schemas/UserOutput'
  861.                 '404':
  862.                     $ref: '#/components/responses/404NotFound'
  863.         put:
  864.             tags:
  865.                 - User
  866.             summary: Update existing user
  867.             parameters:
  868.                 -   name: id
  869.                     in: path
  870.                     required: true
  871.                     schema:
  872.                         type: string
  873.                         example: "cf03b971-92bd-487b-b2a5-54b1fc613ce4"
  874.             requestBody:
  875.                 content:
  876.                     application/json:
  877.                         schema:
  878.                             $ref: '#/components/schemas/UserInput'
  879.             responses:
  880.                 '200':
  881.                     $ref: '#/components/responses/UserOutputResponse'
  882.  
  883. components:
  884.     schemas:
  885.         HelloInput:
  886.             type: object
  887.             properties:
  888.                 androidId:
  889.                     type: string
  890.                     example: "ANDROID_ID"
  891.                 token:
  892.                     type: string
  893.                     example: "SUPER_TAJNY_TOKEN"
  894.         HelloOutput:
  895.             type: object
  896.             properties:
  897.                 androidId:
  898.                     type: string
  899.                     example: "ANDROID_ID"
  900.                 status:
  901.                     type: boolean
  902.                     example: false
  903.                 logisticAppVersion:
  904.                     type: string
  905.                     example: "APP_VERSION"
  906.                 manipulationAppVersion:
  907.                     type: string
  908.                     example: "APP_VERSION"
  909.                 receptionAppVersion:
  910.                     type: string
  911.                     example: "APP_VERSION"
  912.                 sortingAppVersion:
  913.                     type: string
  914.                     example: "APP_VERSION"
  915.         RefreshInput:
  916.             type: object
  917.             properties:
  918.                 refresh_token:
  919.                     type: string
  920.                     example: 'c27c22a781a12cf40ee25daf18ed1cc9bd37b5f02e069aac9d67211b08165b33d20555ef4e730cfbd1772e7606bc3bb95215fa4e4aa71e5de0051537f3d5d8e3'
  921.                 androidId:
  922.                     type: string
  923.                     example: "ANDORID_ID"
  924.                 workPlaceId:
  925.                     type: integer
  926.                     enum: [1,2,3,4,5,6]
  927.  
  928.             required:
  929.                 - refresh_token
  930.                 - andoridId
  931.                 - workPlaceId
  932.         LoginUsernamePasswordInput:
  933.             type: object
  934.             properties:
  935.                 username:
  936.                     type: string
  937.                     example: 'ANowak'
  938.                 password:
  939.                     type: string
  940.                     example: test1234
  941.                 androidId:
  942.                     type: string
  943.                     example: 'Do ustalenia z Maćkiem'
  944.                 workPlaceId:
  945.                     type: integer
  946.                     enum: [1,2,3,4,5,6]
  947.             required:
  948.                 - username
  949.                 - password
  950.                 - androidId
  951.                 - workPlaceId
  952.  
  953.         LoginBarcodeInput:
  954.             type: object
  955.             properties:
  956.                 barcode:
  957.                     type: string
  958.                     example: '12903i2091as09id0910190a9i90209i'
  959.                 androidId:
  960.                     type: string
  961.                     example: 'Do ustalenia z Maćkiem'
  962.             required:
  963.                 - barcode
  964.                 - androidId
  965.  
  966.         LoginOutput:
  967.             type: object
  968.             properties:
  969.                 token:
  970.                     type: string
  971.                     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'
  972.                 refresh_token:
  973.                     type: string
  974.                     example: "c27c22a781a12cf40ee25daf18ed1cc9bd37b5f02e069aac9d67211b08165b33d20555ef4e730cfbd1772e7606bc3bb95215fa4e4aa71e5de0051537f3d5d8e3"
  975.         PriceOutput:
  976.             type: object
  977.             properties:
  978.                 priceId:
  979.                     type: string
  980.                     nullable: true
  981.                     example: 000854f4-49c4-44eb-944f-43a8b57841af
  982.                 id:
  983.                     type: string
  984.                     nullable: true
  985.                     example: 000854f4-49c4-44eb-944f-43a8b57841af
  986.         DictionaryAssortmentsOutput:
  987.             type: object
  988.             properties:
  989.                 id:
  990.                     type: string
  991.                     example: 000854f4-49c4-44eb-944f-43a8b57841af
  992.                 code:
  993.                     type: string
  994.                     nullable: false
  995.                     example: "Americanas(Blazers)"
  996.                 categoryOwnerId:
  997.                     type: string
  998.                     nullable: true
  999.                     example: 000854f4-49c4-44eb-944f-43a8b57841af
  1000.                 name:
  1001.                     type: string
  1002.                     nullable: false
  1003.                     example: "Americanas"
  1004.                 displayMode:
  1005.                     type:  integer
  1006.                     enum: [1,2]
  1007.                     example: 1
  1008.  
  1009.         DictionaryBrandOutput:
  1010.             type: object
  1011.             properties:
  1012.                 id:
  1013.                     type: string
  1014.                     example: 000854f4-49c4-44eb-944f-43a8b57841af
  1015.                 code:
  1016.                     type: string
  1017.                     example: "CRO"
  1018.                 name:
  1019.                     type: string
  1020.                     nullable: false
  1021.                     example: "Cropp"
  1022.                 brandType:
  1023.                     type: number
  1024.                     nullable: false
  1025.                     enum: [0,1,2,3,4,5,6]
  1026.                 brandOwnerId:
  1027.                     type: string
  1028.                     example: 000854f4-49c4-44eb-944f-43a8b57841af
  1029.  
  1030.         DictionaryCategoriesOutput:
  1031.             type: object
  1032.             properties:
  1033.                 id:
  1034.                     type: string
  1035.                     example: 000854f4-49c4-44eb-944f-43a8b57841af
  1036.                 code:
  1037.                     type: string
  1038.                     example: "Text"
  1039.                 name:
  1040.                     type: string
  1041.                     nullable: false
  1042.                     example: "Textylia"
  1043.  
  1044.         DictionaryGenderOutput:
  1045.             type: object
  1046.             properties:
  1047.                 id:
  1048.                     type: string
  1049.                     example: 000854f4-49c4-44eb-944f-43a8b57841af
  1050.                 code:
  1051.                     type: string
  1052.                     example: "KID"
  1053.                 name:
  1054.                     type: string
  1055.                     nullable: false
  1056.                     example: "Dziecko"
  1057.  
  1058.         DictionarySeasonOutput:
  1059.             type: object
  1060.             properties:
  1061.                 id:
  1062.                     type: string
  1063.                     example: 000854f4-49c4-44eb-944f-43a8b57841af
  1064.                 name:
  1065.                     type: string
  1066.                     example: "Zima"
  1067.                 code:
  1068.                     type: string
  1069.                     example: "ZI"
  1070.                 mainSeason:
  1071.                     type: boolean
  1072.                     example: true
  1073.  
  1074.         PriceBrandDictionary:
  1075.             properties:
  1076.                 cena:
  1077.                     type: string
  1078.                     example: "19.90"
  1079.  
  1080.         DictionaryPriceOutput:
  1081.             type: object
  1082.             properties:
  1083.                 id:
  1084.                     type: string
  1085.                     example: 000854f4-49c4-44eb-944f-43a8b57841af
  1086.                 displayMode:
  1087.                     type:  integer
  1088.                     enum: [1,2]
  1089.                     example: 1
  1090.                 pricePLN:
  1091.                     type: string
  1092.                     example: "19.90"
  1093.  
  1094.         DictionaryShopOutput:
  1095.             type: object
  1096.             properties:
  1097.                 id:
  1098.                     type: string
  1099.                     example: 000854f4-49c4-44eb-944f-43a8b57841af
  1100.                 name:
  1101.                     type: string
  1102.                     example: "Auchan"
  1103.  
  1104.         DictionaryMagazinePlacesOutput:
  1105.             type: object
  1106.             properties:
  1107.                 id:
  1108.                     type: string
  1109.                     example: 000854f4-49c4-44eb-944f-43a8b57841af
  1110.                 name:
  1111.                     type: string
  1112.                     example: "A1"
  1113.  
  1114.         BrandTypesOutput:
  1115.             type: object
  1116.             properties:
  1117.                 id:
  1118.                     type: integer
  1119.                     example: 1
  1120.                 name:
  1121.                     type: string
  1122.                     example: "Bershka"
  1123.                 pattern:
  1124.                     type: string
  1125.                     example: "[0000]{/}[000]{/}[000]"
  1126.  
  1127.         DictionaryOutput:
  1128.             type: object
  1129.             properties:
  1130.                 assortments:
  1131.                     type: array
  1132.                     items:
  1133.                         $ref: "#/components/schemas/DictionaryAssortmentsOutput"
  1134.                 brands:
  1135.                     type: array
  1136.                     items:
  1137.                         $ref: "#/components/schemas/DictionaryBrandOutput"
  1138.                 categories:
  1139.                     type: array
  1140.                     items:
  1141.                         $ref: "#/components/schemas/DictionaryCategoriesOutput"
  1142.                 genders:
  1143.                     type: array
  1144.                     items:
  1145.                         $ref: "#/components/schemas/DictionaryGenderOutput"
  1146.                 seasons:
  1147.                     type: array
  1148.                     items:
  1149.                         $ref: "#/components/schemas/DictionarySeasonOutput"
  1150.                 prices:
  1151.                     type: array
  1152.                     items:
  1153.                         $ref: "#/components/schemas/DictionaryPriceOutput"
  1154.                 shops:
  1155.                     type: array
  1156.                     items:
  1157.                         $ref: '#/components/schemas/DictionaryShopOutput'
  1158.                 magazinePlaces:
  1159.                     type: array
  1160.                     items:
  1161.                         $ref: '#/components/schemas/DictionaryMagazinePlacesOutput'
  1162.                 brandTypes:
  1163.                     type: array
  1164.                     items:
  1165.                         $ref: '#/components/schemas/BrandTypesOutput'
  1166.         TargetOutput:
  1167.             type: object
  1168.             properties:
  1169.                 current:
  1170.                     type: integer
  1171.                     example: 100
  1172.                 goal:
  1173.                     type: integer
  1174.                     example: 400
  1175.  
  1176.         AbstractBoxPutInput:
  1177.             type: object
  1178.             properties:
  1179.                 weight:
  1180.                     type: number
  1181.                     example: 1.31
  1182.  
  1183.         ReceptionBoxPutInput:
  1184.             allOf:
  1185.                 -   $ref: '#/components/schemas/AbstractBoxPutInput'
  1186.                 -   type: object
  1187.                     required:
  1188.                         - rootCause
  1189.  
  1190.         WasteBoxPutInput:
  1191.             allOf:
  1192.                 -   $ref: '#/components/schemas/AbstractBoxPutInput'
  1193.                 -   type: object
  1194.                     required:
  1195.                         - rootCause
  1196.                     properties:
  1197.                         units:
  1198.                             type: array
  1199.                             items:
  1200.                                 $ref: "#/components/schemas/BoxPutUnitInput"
  1201.  
  1202.         SecondhandBoxPutInput:
  1203.             allOf:
  1204.                 -   $ref: '#/components/schemas/AbstractBoxPutInput'
  1205.                 -   type: object
  1206.                     required:
  1207.                         - rootCause
  1208.                     properties:
  1209.                         units:
  1210.                             type: array
  1211.                             items:
  1212.                                 $ref: "#/components/schemas/BoxPutUnitInput"
  1213.  
  1214.         SeasonBoxPutInput:
  1215.             allOf:
  1216.                 -   $ref: '#/components/schemas/AbstractBoxPutInput'
  1217.                 -   type: object
  1218.                     required:
  1219.                         - rootCause
  1220.                     properties:
  1221.                         units:
  1222.                             type: array
  1223.                             items:
  1224.                                 $ref: "#/components/schemas/BoxPutUnitInput"
  1225.  
  1226.         BoxPutInput:
  1227.             allOf:
  1228.                 -   $ref: '#/components/schemas/AbstractBoxPutInput'
  1229.                 -   type: object
  1230.                     required:
  1231.                         - rootCause
  1232.                     properties:
  1233.                         units:
  1234.                             type: array
  1235.                             items:
  1236.                                 $ref: "#/components/schemas/BoxPutUnitInput"
  1237.  
  1238.         BoxOverwriteInput:
  1239.             type: object
  1240.             required:
  1241.                 - rootCause
  1242.             properties:
  1243.                 units:
  1244.                     type: array
  1245.                     items:
  1246.                         $ref: "#/components/schemas/BoxPutUnitInput"
  1247.  
  1248.         ShopBoxPutInput:
  1249.             type: object
  1250.             properties:
  1251.                 units:
  1252.                     type: array
  1253.                     items:
  1254.                         $ref: "#/components/schemas/BoxPutUnitInput"
  1255.         BoxPutUnitInput:
  1256.             type: object
  1257.             properties:
  1258.                 barcode:
  1259.                     type: string
  1260.                     example: U-2020031104921
  1261.  
  1262.         DictionaryParametersOutput:
  1263.             type: object
  1264.             properties:
  1265.                 assortmentId:
  1266.                     type: string
  1267.                     example: 000854f4-49c4-44eb-944f-43a8b57841af
  1268.                 seasonId:
  1269.                     type: string
  1270.                     example: 000854f4-49c4-44eb-944f-43a8b57841af
  1271.                 genderId:
  1272.                     type: string
  1273.                     example: 000854f4-49c4-44eb-944f-43a8b57841af
  1274.                 categoryId:
  1275.                     type: string
  1276.                     example: 000854f4-49c4-44eb-944f-43a8b57841af
  1277.  
  1278.         DictionaryItemOutput:
  1279.             type: object
  1280.             properties:
  1281.                 id:
  1282.                     type: string
  1283.                     example: 000854f4-49c4-44eb-944f-43a8b57841af
  1284.                 name:
  1285.                     type: string
  1286.                     example: exampleName
  1287.  
  1288.  
  1289.         LogisticQueueOutput:
  1290.             type: object
  1291.             properties:
  1292.                 pallet:
  1293.                     type: object
  1294.                     $ref: '#/components/schemas/AbstractPalletOutput'
  1295.                 queuePriority:
  1296.                     type: integer
  1297.                     example: 3
  1298.                 magazineAreaBarcode:
  1299.                     type: string
  1300.                     example: MA-2020030584496
  1301.  
  1302.         SupplyOutput:
  1303.             type: object
  1304.             properties:
  1305.                 id:
  1306.                     type: string
  1307.                     example:  000854f4-49c4-44eb-944f-43a8b57841af
  1308.                 brandId:
  1309.                     type: string
  1310.                     example:  000854f4-49c4-44eb-944f-43a8b57841af
  1311.                 active:
  1312.                     type: boolean
  1313.                     example: true
  1314.                 code:
  1315.                     type: string
  1316.                     example: "LPC6/30.08.2011"
  1317.                 receptionPallets:
  1318.                     type: array
  1319.                     items:
  1320.                         $ref: "#/components/schemas/ReceptionPalletOutput"
  1321.  
  1322.         OrderOutput:
  1323.             type: object
  1324.             properties:
  1325.                 id:
  1326.                     type: string
  1327.                     example:  000854f4-49c4-44eb-944f-43a8b57841af
  1328.                 truckNumber:
  1329.                     type: integer
  1330.                     example:  13
  1331.  
  1332.         AbstractPalletInput:
  1333.             type: object
  1334.             properties:
  1335.                 palletType:
  1336.                     type:  integer
  1337.                     enum: [1,2]
  1338.                     example: 1
  1339.  
  1340.  
  1341.  
  1342.         LogisticPalletInput:
  1343.             allOf:
  1344.                 -   $ref: '#/components/schemas/AbstractPalletInput'
  1345.                 -   type: object
  1346.                     required:
  1347.                         - rootCause
  1348.  
  1349.         ReceptionPalletInput:
  1350.             allOf:
  1351.                 -   $ref: '#/components/schemas/AbstractPalletInput'
  1352.                 -   type: object
  1353.                     required:
  1354.                         - rootCause
  1355.                     properties:
  1356.                         supplyId:
  1357.                             type: string
  1358.                             example:  000854f4-49c4-44eb-944f-43a8b57841af
  1359.                         boxCount:
  1360.                             type: integer
  1361.                             example: 3
  1362.                         weight:
  1363.                             type: number
  1364.                             example: 1.1
  1365.  
  1366.         LogisticPalletPutInput:
  1367.             type: object
  1368.             properties:
  1369.                 boxes:
  1370.                     type: array
  1371.                     items:
  1372.                         $ref: "#/components/schemas/BoxPalletInput"
  1373.  
  1374.         ReceptionPalletPutInput:
  1375.             type: object
  1376.             properties:
  1377.                 weight:
  1378.                     type: number
  1379.                     example: 1.1
  1380.                     nullable: true
  1381.  
  1382.  
  1383.         BoxPalletInput:
  1384.             type: object
  1385.             properties:
  1386.                 barcode:
  1387.                     type: string
  1388.                     example: "B-123123123"
  1389.         EmptyInput:
  1390.             type: object
  1391.  
  1392.         BoxInput:
  1393.             type: object
  1394.             properties:
  1395.                 boxTemplateBarcode:
  1396.                     type: string
  1397.                     example: "TMP-123123123"
  1398.  
  1399.         ReceptionBoxInput:
  1400.             type: object
  1401.             properties:
  1402.                 boxTemplateBarcode:
  1403.                     type: string
  1404.                     example: "TMP-123123123"
  1405.                 supplyId:
  1406.                     type: string
  1407.                     example: 000854f4-49c4-44eb-944f-43a8b57841af
  1408.  
  1409.         ModelBoxInput:
  1410.             type: object
  1411.             properties:
  1412.                 boxTemplateBarcode:
  1413.                     type: string
  1414.                     example: "TMP-123123123"
  1415.                 supplyId:
  1416.                     type: string
  1417.                     example: 000854f4-49c4-44eb-944f-43a8b57841af
  1418.                 modelId:
  1419.                     type: string
  1420.                     example: 000854f4-49c4-44eb-944f-43a8b57841af
  1421.                 unitCount:
  1422.                     type: integer
  1423.                     example: 20
  1424.                 weight:
  1425.                     type: number
  1426.                     example: 20.5
  1427.  
  1428.         GoodBoxInput:
  1429.             type: object
  1430.             properties:
  1431.                 boxTemplateBarcode:
  1432.                     type: string
  1433.                     example: "TMP-123123123"
  1434.                 shopOrderId:
  1435.                     type: string
  1436.                     example: 000854f4-49c4-44eb-944f-43a8b57841af
  1437.  
  1438.         WasteBoxInput:
  1439.             type: object
  1440.             properties:
  1441.                 boxTemplateBarcode:
  1442.                     type: string
  1443.                     example: "TMP-123123123"
  1444.  
  1445.         SecondhandBoxInput:
  1446.             type: object
  1447.             properties:
  1448.                 boxTemplateBarcode:
  1449.                     type: string
  1450.                     example: "TMP-123123123"
  1451.  
  1452.         SeasonBoxInput:
  1453.             type: object
  1454.             properties:
  1455.                 boxTemplateBarcode:
  1456.                     type: string
  1457.                     example: "TMP-123123123"
  1458.  
  1459.  
  1460.         MagazinePlaceOutput:
  1461.             type: object
  1462.             properties:
  1463.                 barcode:
  1464.                     type: string
  1465.                     example: "MP-123123123"
  1466.                 name:
  1467.                     type: string
  1468.                     example: "Magazine Place random name"
  1469.                 pallets:
  1470.                     type: array
  1471.                     items:
  1472.                         $ref: "#/components/schemas/PalletMagazinePlaceOutput"
  1473.  
  1474.         PalletMagazinePlaceOutput:
  1475.             type: object
  1476.             properties:
  1477.                 barcode:
  1478.                     type: string
  1479.                     example: PL-1312321231
  1480.  
  1481.         MagzinePlaceInput:
  1482.             type: object
  1483.             properties:
  1484.                 palletBarcode:
  1485.                     type: string
  1486.                     example: "PL-86721937891"
  1487.  
  1488.  
  1489.         AbstractUnitInput:
  1490.             type: object
  1491.             properties:
  1492.                 brandId:
  1493.                     type: string
  1494.                     example: "eb540e1e-ad52-4315-b022-cb7605bd4161"
  1495.                 genderId:
  1496.                     type: string
  1497.                     example: "eb540e1e-ad52-4315-b022-cb7605bd4161"
  1498.                 categoryId:
  1499.                     type: string
  1500.                     example: "eb540e1e-ad52-4315-b022-cb7605bd4161"
  1501.                 assortmentId:
  1502.                     type: string
  1503.                     nullable: true
  1504.                     example: "eb540e1e-ad52-4315-b022-cb7605bd4161"
  1505.                 seasonId:
  1506.                     type: string
  1507.                     nullable: true
  1508.                     example: "eb540e1e-ad52-4315-b022-cb7605bd4161"
  1509.                 unitType:
  1510.                     type:  integer
  1511.                     enum: [1,2,3,4]
  1512.                     example: 1
  1513.                 ean:
  1514.                     type: string
  1515.                     nullable: true
  1516.                     example: "32131241312"
  1517.                 supplyId:
  1518.                     type: string
  1519.                     example: "eb540e1e-ad52-4315-b022-cb7605bd4161"
  1520.  
  1521.         UnitInput:
  1522.             allOf:
  1523.                 -   $ref: '#/components/schemas/AbstractUnitInput'
  1524.                 -   type: object
  1525.                     required:
  1526.                         - rootCause
  1527.                     properties:
  1528.                         supplyId:
  1529.                             type: string
  1530.                             example: "eb540e1e-ad52-4315-b022-cb7605bd4161"
  1531.                         isLongSeries:
  1532.                             type: boolean
  1533.                             example: true
  1534.                             default: true
  1535.                         quality:
  1536.                             type: integer
  1537.                             enum: [1,2,3]
  1538.                         capacity:
  1539.                             type: integer
  1540.                             example: 1
  1541.                             minimum: 1
  1542.                             default: 1
  1543.                         priceId:
  1544.                             type: string
  1545.                             nullable: true
  1546.                             example: "eb540e1e-ad52-4315-b022-cb7605bd4161"
  1547.                         defects:
  1548.                             type: array
  1549.                             default: []
  1550.                             items:
  1551.                                 type: integer
  1552.                                 enum: [1,2,3,4]
  1553.                         unitType:
  1554.                             type: integer
  1555.                             enum: [1]
  1556.                         boxBarcode:
  1557.                             type: string
  1558.                             example: "B-2020051527370"
  1559.                             nullable: true
  1560.                         isInWashing:
  1561.                             type: boolean
  1562.                             example: false
  1563.                             default: false
  1564.                         onSale:
  1565.                             type: boolean
  1566.                             example: false
  1567.                             default: false
  1568.  
  1569.         UnitWasteInput:
  1570.             allOf:
  1571.                 -   $ref: '#/components/schemas/AbstractUnitInput'
  1572.                 -   type: object
  1573.                     required:
  1574.                         - rootCause
  1575.                     properties:
  1576.                         unitType:
  1577.                             type: integer
  1578.                             enum: [2]
  1579.                         boxBarcode:
  1580.                             type: string
  1581.                             example: "BWT-2020051562161"
  1582.                             nullable: true
  1583.  
  1584.         UnitSecondhandInput:
  1585.             allOf:
  1586.                 -   $ref: '#/components/schemas/AbstractUnitInput'
  1587.                 -   type: object
  1588.                     required:
  1589.                         - rootCause
  1590.                     properties:
  1591.                         unitType:
  1592.                             type: integer
  1593.                             enum: [3]
  1594.                         boxBarcode:
  1595.                             type: string
  1596.                             example: "BSH-2020051514690"
  1597.                             nullable: true
  1598.  
  1599.         UnitSeasonInput:
  1600.             allOf:
  1601.                 -   $ref: '#/components/schemas/AbstractUnitInput'
  1602.                 -   type: object
  1603.                     required:
  1604.                         - rootCause
  1605.                     properties:
  1606.                         unitType:
  1607.                             type: integer
  1608.                             enum: [4]
  1609.                         seasonId:
  1610.                             type: string
  1611.                             nullable: false
  1612.                             example: "eb540e1e-ad52-4315-b022-cb7605bd4161"
  1613.                         boxBarcode:
  1614.                             type: string
  1615.                             example: "BSU-2020051599316"
  1616.                             nullable: true
  1617.  
  1618.         UnitShopInput:
  1619.             type: object
  1620.             properties:
  1621.                 priceId:
  1622.                     type: string
  1623.                     example: "eb540e1e-ad52-4315-b022-cb7605bd4161"
  1624.                 shopOrderId:
  1625.                     type: string
  1626.                     example: "eb540e1e-ad52-4315-b022-cb7605bd4161"
  1627.  
  1628.  
  1629.         AbstractPalletOutput:
  1630.             type: object
  1631.             properties:
  1632.                 barcode:
  1633.                     type: string
  1634.                     example: "RP-123123123"
  1635.                 magazinePlaceBarcode:
  1636.                     type: string
  1637.                     example: "MP-123123123"
  1638.                 palletType:
  1639.                     type: integer
  1640.                     enum: [1,2]
  1641.                     example: 1
  1642.  
  1643.  
  1644.         ReceptionPalletOutput:
  1645.             allOf:
  1646.                 -   $ref: '#/components/schemas/AbstractPalletOutput'
  1647.                 -   type: object
  1648.                     required:
  1649.                         - rootCause
  1650.                     properties:
  1651.                         supplyId:
  1652.                             type: string
  1653.                             example: "eb540e1e-ad52-4315-b022-cb7605bd4161"
  1654.                         boxCount:
  1655.                             type: integer
  1656.                             example: 5
  1657.                         weight:
  1658.                             type: number
  1659.                             nullable: true
  1660.                             example: 1.1
  1661.                         palletType:
  1662.                             type: integer
  1663.                             enum: [2]
  1664.                             example: 1
  1665.  
  1666.         PalletLogisticOutput:
  1667.             allOf:
  1668.                 -   $ref: '#/components/schemas/AbstractPalletOutput'
  1669.                 -   type: object
  1670.                     required:
  1671.                         - rootCause
  1672.                     properties:
  1673.                         boxes:
  1674.                             type: array
  1675.                             items:
  1676.                                 $ref: "#/components/schemas/AbstractBoxOutput"
  1677.                         palletType:
  1678.                             type: integer
  1679.                             enum: [1]
  1680.                             example: 1
  1681.  
  1682.         AbstractBoxOutput:
  1683.             type: object
  1684.             properties:
  1685.                 barcode:
  1686.                     type: string
  1687.                     example: "RB-123123123"
  1688.                 dictionaryParameters:
  1689.                     type: object
  1690.                     $ref: '#/components/schemas/DictionaryParametersOutput'
  1691.                 weight:
  1692.                     type: number
  1693.                     example: 1.2
  1694.                 boxType:
  1695.                     type:  integer
  1696.                     enum: [1,2,3,4,5,6,7]
  1697.                     example: 1
  1698.                 modelId:
  1699.                     type: string
  1700.                     example: "eb540e1e-ad52-4315-b022-cb7605bd4161"
  1701.                 supplyId:
  1702.                     type: string
  1703.                     example: "eb540e1e-ad52-4315-b022-cb7605bd4161"
  1704.                 unitQuality:
  1705.                     type:  integer
  1706.                     enum: [1,2,3]
  1707.                     nullable: true
  1708.                     example: 1
  1709.  
  1710.         ReceptionBoxOutput:
  1711.             allOf:
  1712.                 -   $ref: '#/components/schemas/AbstractBoxOutput'
  1713.                 -   type: object
  1714.                     required:
  1715.                         - rootCause
  1716.                     properties:
  1717.                         boxType:
  1718.                             type:  integer
  1719.                             enum: [5]
  1720.                             example: 5
  1721.                         receptionUnitCondition:
  1722.                             type:  integer
  1723.                             enum: [1,2,3,4,5,20]
  1724.                             nullable: true
  1725.                             example: 1
  1726.                         defect:
  1727.                             type:  integer
  1728.                             enum: [1,2,3,4]
  1729.                             nullable: true
  1730.                             example: 1
  1731.                         sale:
  1732.                             type:  integer
  1733.                             enum: [-1,1,2,3,4]
  1734.                             nullable: true
  1735.                             example: 1
  1736.  
  1737.         BoxOutput:
  1738.             allOf:
  1739.                 -   $ref: '#/components/schemas/AbstractBoxOutput'
  1740.                 -   type: object
  1741.                     required:
  1742.                         - rootCause
  1743.                     properties:
  1744.                         shopOrderId:
  1745.                             type: string
  1746.                             example: "eb540e1e-ad52-4315-b022-cb7605bd4161"
  1747.                         defect:
  1748.                             type:  integer
  1749.                             enum: [1,2,3,4]
  1750.                             example: 1
  1751.                         units:
  1752.                             type: array
  1753.                             items:
  1754.                                 $ref: "#/components/schemas/AbstractUnitOutput"
  1755.                         boxType:
  1756.                             type:  integer
  1757.                             enum: [1]
  1758.                             example: 1
  1759.                         sale:
  1760.                             type:  integer
  1761.                             enum: [-1,1,2,3,4]
  1762.                             nullable: true
  1763.                             example: 1
  1764.  
  1765.         SecondhandBoxOutput:
  1766.             allOf:
  1767.                 -   $ref: '#/components/schemas/AbstractBoxOutput'
  1768.                 -   type: object
  1769.                     required:
  1770.                         - rootCause
  1771.                     properties:
  1772.                         units:
  1773.                             type: array
  1774.                             items:
  1775.                                 $ref: "#/components/schemas/AbstractUnitOutput"
  1776.                         boxType:
  1777.                             type:  integer
  1778.                             enum: [3]
  1779.                             example: 3
  1780.  
  1781.         SeasonBoxOutput:
  1782.             allOf:
  1783.                 -   $ref: '#/components/schemas/AbstractBoxOutput'
  1784.                 -   type: object
  1785.                     required:
  1786.                         - rootCause
  1787.                     properties:
  1788.                         units:
  1789.                             type: array
  1790.                             items:
  1791.                                 $ref: "#/components/schemas/AbstractUnitOutput"
  1792.                         boxType:
  1793.                             type:  integer
  1794.                             enum: [4]
  1795.                             example: 4
  1796.  
  1797.         WasteBoxOutput:
  1798.             allOf:
  1799.                 -   $ref: '#/components/schemas/AbstractBoxOutput'
  1800.                 -   type: object
  1801.                     required:
  1802.                         - rootCause
  1803.                     properties:
  1804.                         units:
  1805.                             type: array
  1806.                             items:
  1807.                                 $ref: "#/components/schemas/AbstractUnitOutput"
  1808.                         boxType:
  1809.                             type:  integer
  1810.                             enum: [2]
  1811.                             example: 2
  1812.  
  1813.  
  1814.  
  1815.         AbstractUnitOutput:
  1816.             type: object
  1817.             properties:
  1818.                 dictionaryParameters:
  1819.                     type: object
  1820.                     $ref: '#/components/schemas/DictionaryParametersOutput'
  1821.                 barcode:
  1822.                     type: string
  1823.                     example: 'U-10102020AEXXX'
  1824.                 supplyId:
  1825.                     type: string
  1826.                     example: "eb540e1e-ad52-4315-b022-cb7605bd4161"
  1827.                 unitType:
  1828.                     type: integer
  1829.                     enum: [1,2,3,4,5, 99]
  1830.                     example: 1
  1831.                 ean:
  1832.                     type: string
  1833.                     example: "32131241312"
  1834.  
  1835.         BoxTemplateOutput:
  1836.             type: object
  1837.             properties:
  1838.                 dictionaryParameters:
  1839.                     type: object
  1840.                     $ref: '#/components/schemas/DictionaryParametersOutput'
  1841.                 barcode:
  1842.                     type: string
  1843.                     example: 'U-10102020AEXXX'
  1844.                 unitCondition:
  1845.                     type: array
  1846.                     items:
  1847.                         type: integer
  1848.                         example: [1,2,3,4,5,20]
  1849.                 defects:
  1850.                     type: array
  1851.                     items:
  1852.                         type: integer
  1853.                         example: [1,2,3,4]
  1854.                 longSeries:
  1855.                     type: boolean
  1856.                 unitQuality:
  1857.                     type:  integer
  1858.                     enum: [1,2,3]
  1859.                     nullable: true
  1860.                     example: 1
  1861.  
  1862.         ValuableUnitOutput:
  1863.             allOf:
  1864.                 -   $ref:  '#/components/schemas/AbstractUnitOutput'
  1865.                 -   type: object
  1866.                     required:
  1867.                         - rootCouse
  1868.                     properties:
  1869.                         supplyId:
  1870.                             type: string
  1871.                             example: "eb540e1e-ad52-4315-b022-cb7605bd4161"
  1872.                         isLongSeries:
  1873.                             type: boolean
  1874.                         quality:
  1875.                             type: integer
  1876.                             enum: [1,2,3]
  1877.                         capacity:
  1878.                             type: integer
  1879.                         priceId:
  1880.                             type: string
  1881.                             example: "eb540e1e-ad52-4315-b022-cb7605bd4161"
  1882.                         defectsTitle:
  1883.                             type: string
  1884.                             example: "PMR"
  1885.  
  1886.         UnitMissingOutput:
  1887.             allOf:
  1888.                 -   $ref: '#/components/schemas/ValuableUnitOutput'
  1889.                 -   type: object
  1890.                     required:
  1891.                         - rootCause
  1892.                     properties:
  1893.                         defects:
  1894.                             type: array
  1895.                             items:
  1896.                                 type: integer
  1897.                                 example: [1,2,3,4]
  1898.                         shopOrderId:
  1899.                             type: string
  1900.                             example: "UUID"
  1901.         UnitOutput:
  1902.             allOf:
  1903.                 -   $ref: '#/components/schemas/ValuableUnitOutput'
  1904.                 -   type: object
  1905.                     required:
  1906.                         - rootCause
  1907.                     properties:
  1908.                         defectsTitle:
  1909.                             type: string
  1910.                             example: "PMR"
  1911.                         unitType:
  1912.                             type: integer
  1913.                             enum: [1]
  1914.                         boxBarcode:
  1915.                             type: string
  1916.                             example: "B-2020051527370"
  1917.                         isInWashing:
  1918.                             type: boolean
  1919.                         onSale:
  1920.                             type: boolean
  1921.                             example: false
  1922.                             default: false
  1923.  
  1924.         UnitShopOutput:
  1925.             allOf:
  1926.                 -   $ref: '#/components/schemas/ValuableUnitOutput'
  1927.                 -   type: object
  1928.                     required:
  1929.                         - rootCause
  1930.                     properties:
  1931.                         unitType:
  1932.                             type: integer
  1933.                             enum: [5]
  1934.                         shopOrderId:
  1935.                             type: string
  1936.                             example: "UUID"
  1937.  
  1938.         UnitWasteOutput:
  1939.             allOf:
  1940.                 -   $ref: '#/components/schemas/AbstractUnitOutput'
  1941.                 -   type: object
  1942.                     required:
  1943.                         - rootCause
  1944.                     properties:
  1945.                         unitType:
  1946.                             type: integer
  1947.                             enum: [2]
  1948.                         boxBarcode:
  1949.                             type: string
  1950.                             example: "BWT-2020051562161"
  1951.  
  1952.         UnitSecondhandOutput:
  1953.             allOf:
  1954.                 -   $ref: '#/components/schemas/AbstractUnitOutput'
  1955.                 -   type: object
  1956.                     required:
  1957.                         - rootCause
  1958.                     properties:
  1959.                         unitType:
  1960.                             type: integer
  1961.                             enum: [3]
  1962.                         boxBarcode:
  1963.                             type: string
  1964.                             example: "BSH-2020051514690"
  1965.  
  1966.         UnitSeasonOutput:
  1967.             allOf:
  1968.                 -   $ref: '#/components/schemas/AbstractUnitOutput'
  1969.                 -   type: object
  1970.                     required:
  1971.                         - rootCause
  1972.                     properties:
  1973.                         unitType:
  1974.                             type: integer
  1975.                             enum: [4]
  1976.                         boxBarcode:
  1977.                             type: string
  1978.                             example: "BSU-2020051599316"
  1979.  
  1980.  
  1981.         EanInput:
  1982.             type: object
  1983.             properties:
  1984.                 barcode:
  1985.                     type: string
  1986.                     example: "123132-323132-32"
  1987.                 priceId:
  1988.                     type: string
  1989.                     example: "eb540e1e-ad52-4315-b022-cb7605bd4161"
  1990.                     nullable: true
  1991.                 unitModelId:
  1992.                     type: string
  1993.                     example: "acd2e1d0-8575-487c-aa51-127afebac90b"
  1994.                     nullable: true
  1995.  
  1996.         EanOutput:
  1997.             type: object
  1998.             properties:
  1999.                 barcode:
  2000.                     type: string
  2001.                     example: "123132-323132-32"
  2002.                 priceId:
  2003.                     type: string
  2004.                     example: "eb540e1e-ad52-4315-b022-cb7605bd4161"
  2005.                     nullable: true
  2006.                 unitModelId:
  2007.                     type: string
  2008.                     example: "acd2e1d0-8575-487c-aa51-127afebac90b"
  2009.                     nullable: true
  2010.  
  2011.         ModelInput:
  2012.             type: object
  2013.             properties:
  2014.                 id:
  2015.                     type: string
  2016.                     example: "cf03b971-92bd-487b-b2a5-54b1fc613ce4"
  2017.                     nullable: true
  2018.                 code:
  2019.                     type: string
  2020.                     example: "XC719-01X"
  2021.                     nullable: true
  2022.                 catalogPrice:
  2023.                     type: string
  2024.                     example: "7999"
  2025.                 category:
  2026.                     type: integer
  2027.                     example: 2
  2028.                     nullable: true
  2029.                 priceId:
  2030.                     type: string
  2031.                     example: "eb540e1e-ad52-4315-b022-cb7605bd4161"
  2032.                     nullable: true
  2033.                 brandId:
  2034.                     type: string
  2035.                     example: "208dd308-5b12-4284-83af-99fa35f68aa9"
  2036.                     nullable: true
  2037.                 genderId:
  2038.                     type: string
  2039.                     example: "208dd308-5b12-4284-83af-99fa35f68aa9"
  2040.                     nullable: true
  2041.                 assortmentId:
  2042.                     type: string
  2043.                     example: "208dd308-5b12-4284-83af-99fa35f68aa9"
  2044.                     nullable: true
  2045.                 seasonId:
  2046.                     type: string
  2047.                     example: "208dd308-5b12-4284-83af-99fa35f68aa9"
  2048.                     nullable: true
  2049.         ModelOutput:
  2050.             type: object
  2051.             properties:
  2052.                 id:
  2053.                     type: string
  2054.                     example: "cf03b971-92bd-487b-b2a5-54b1fc613ce4"
  2055.                 name:
  2056.                     type: string
  2057.                     example: "Koszulka z bambusem"
  2058.                 code:
  2059.                     type: string
  2060.                     example: "XC719-01X"
  2061.                 catalogPrice:
  2062.                     type: string
  2063.                     example: "7999"
  2064.                 categoryId:
  2065.                     type: integer
  2066.                     example: 2
  2067.                 brandId:
  2068.                     type: string
  2069.                     example: "208dd308-5b12-4284-83af-99fa35f68aa9"
  2070.                 genderId:
  2071.                     type: string
  2072.                     example: "208dd308-5b12-4284-83af-99fa35f68aa9"
  2073.                 assortmentId:
  2074.                     type: string
  2075.                     example: "208dd308-5b12-4284-83af-99fa35f68aa9"
  2076.                 seasonId:
  2077.                     type: string
  2078.                     example: "208dd308-5b12-4284-83af-99fa35f68aa9"
  2079.                 isFilled:
  2080.                     type: boolean
  2081.                     example: true|false
  2082.  
  2083.         UserInput:
  2084.             type: object
  2085.             properties:
  2086.                 id:
  2087.                     type: string
  2088.                     example: "208dd308-5b12-4284-83af-99fa35f68aa9"
  2089.                     nullable: true
  2090.                 workplace:
  2091.                     type: integer
  2092.                     example: 3
  2093.                     nullable: false
  2094.  
  2095.         UserOutput:
  2096.             type: object
  2097.             properties:
  2098.                 workplace:
  2099.                     type: object
  2100.                     properties:
  2101.                         name:
  2102.                             type: string
  2103.                             example: "Naprawy"
  2104.                         id:
  2105.                             type: integer
  2106.                             example: 5
  2107.  
  2108.     responses:
  2109.         200Success:
  2110.             description: No content response
  2111.  
  2112.         204NoContent:
  2113.             description: No content response
  2114.  
  2115.         404NotFound:
  2116.             description: Not found the resource on given id
  2117.  
  2118.         400ValidationErrors:
  2119.             description: Validation errors
  2120.  
  2121.         500Error:
  2122.             description: Internal Server error
  2123.  
  2124.         401Unauthorized:
  2125.             description: Unauthorized
  2126.  
  2127.  
  2128.         UnitOutputResponse:
  2129.             description: Ouput of unit input. Ouput is depend of UnitType parameter
  2130.             content:
  2131.                 application/json:
  2132.                     schema:
  2133.                         oneOf:
  2134.                             -   $ref: '#/components/schemas/UnitOutput'
  2135.                             -   $ref: '#/components/schemas/UnitSecondhandOutput'
  2136.                             -   $ref: '#/components/schemas/UnitWasteOutput'
  2137.                             -   $ref: '#/components/schemas/UnitSeasonOutput'
  2138.                             -   $ref: '#/components/schemas/UnitShopOutput'
  2139.                             -   $ref: '#/components/schemas/UnitMissingOutput'
  2140.  
  2141.         UnitGoodResponse:
  2142.             description: Output of good units
  2143.             content:
  2144.                 application/json:
  2145.                     schema:
  2146.                         oneOf:
  2147.                             -   $ref: '#/components/schemas/UnitOutput'
  2148.  
  2149.         BoxTemplateResponse:
  2150.             description: success
  2151.             content:
  2152.                 application/json:
  2153.                     schema:
  2154.                         $ref: '#/components/schemas/BoxTemplateOutput'
  2155.  
  2156.         BoxOutputResponse:
  2157.             description: success
  2158.             content:
  2159.                 application/json:
  2160.                     schema:
  2161.                         oneOf:
  2162.                             -   $ref: '#/components/schemas/ReceptionBoxOutput'
  2163.                             -   $ref: '#/components/schemas/WasteBoxOutput'
  2164.                             -   $ref: '#/components/schemas/SecondhandBoxOutput'
  2165.                             -   $ref: '#/components/schemas/SeasonBoxOutput'
  2166.                             -   $ref: '#/components/schemas/BoxOutput'
  2167.  
  2168.         ShopBoxOutputResponse:
  2169.             description: success
  2170.             content:
  2171.                 application/json:
  2172.                     schema:
  2173.                         $ref: '#/components/schemas/BoxOutput'
  2174.  
  2175.         RepairBoxOutputResponse:
  2176.             description: success
  2177.             content:
  2178.                 application/json:
  2179.                     schema:
  2180.                         $ref: '#/components/schemas/BoxOutput'
  2181.  
  2182.         MagazinePlaceOutputResponse:
  2183.             description: success
  2184.             content:
  2185.                 application/json:
  2186.                     schema:
  2187.                         $ref: '#/components/schemas/MagazinePlaceOutput'
  2188.  
  2189.         PalletOutputResponse:
  2190.             description: success
  2191.             content:
  2192.                 application/json:
  2193.                     schema:
  2194.                         oneOf:
  2195.                             -   $ref: '#/components/schemas/PalletLogisticOutput'
  2196.                             -   $ref: '#/components/schemas/ReceptionPalletOutput'
  2197.  
  2198.         EanOutputResponse:
  2199.             description: Ouput of Ean input
  2200.             content:
  2201.                 application/json:
  2202.                     schema:
  2203.                         $ref: '#/components/schemas/EanOutput'
  2204.  
  2205.         ModelOutputResponse:
  2206.             description: Ouput of Model input
  2207.             content:
  2208.                 application/json:
  2209.                     schema:
  2210.                         $ref: '#/components/schemas/ModelOutput'
  2211.         UserOutputResponse:
  2212.             description: Ouput of User input
  2213.             content:
  2214.                 application/json:
  2215.                     schema:
  2216.                         $ref: '#/components/schemas/UserOutput'
  2217.  
  2218.     requestBodies:
  2219.         UnitInputResponse:
  2220.             description: Ouput of unit input. Input is depend of UnitType parameter
  2221.             content:
  2222.                 application/json:
  2223.                     schema:
  2224.                         oneOf:
  2225.                             -   $ref: '#/components/schemas/UnitInput'
  2226.                             -   $ref: '#/components/schemas/UnitSecondhandInput'
  2227.                             -   $ref: '#/components/schemas/UnitWasteInput'
  2228.                             -   $ref: '#/components/schemas/UnitSeasonInput'
  2229.                             -   $ref: '#/components/schemas/UnitShopInput'
  2230.  
  2231.         EanInputResponse:
  2232.             description: Input of ean input.
  2233.             content:
  2234.                 application/json:
  2235.                     schema:
  2236.                         $ref: '#/components/schemas/EanInput'
  2237.