{"openapi":"3.0.2","info":{"version":"1.0.0","title":"api","description":"api","termsOfService":"api","license":{"name":"MIT","url":"http://opensource.org/licenses/MIT"}},"tags":[{"name":"orders"},{"name":"personalData"},{"name":"deliveryAddress"},{"name":"sales"},{"name":"myShop"},{"name":"balanceAndBonus"},{"name":"filter"},{"name":"productDetailPage"}],"paths":{"/api/orders/list/{pagen}":{"get":{"tags":["orders"],"summary":"pagenation orders","operationId":"pagenOrders","parameters":[{"name":"pagen","in":"path","description":"pagenation orders","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"info about orders","content":{"application/json":{"schema":{"type":"object","properties":{"orders":{"type":"array","items":{"$ref":"#/components/schemas/order"}},"pagen":{"$ref":"#/components/schemas/pagen"}}}}}}}}},"/api/personal/data":{"get":{"tags":["personalData"],"responses":{"200":{"description":"info about orders","content":{"application/json":{"schema":{"$ref":"#/components/schemas/personalData"}}}}}}},"/api/personal/update":{"put":{"tags":["personalData"],"summary":"update Field","operationId":"personalDataDeleteFieldUpdate","parameters":[{"name":"name","in":"query","description":"update user name","schema":{"type":"string"}},{"name":"mail","in":"query","description":"update user mail","schema":{"type":"string"}},{"name":"phone","in":"query","description":"update user phone","schema":{"type":"string"}},{"name":"bitrh","in":"query","description":"update user bitrh","schema":{"type":"string"}},{"name":"gender","in":"query","description":"update user bitrh","schema":{"type":"string"}},{"name":"img","in":"query","description":"update user avatar","schema":{"type":"string"}}],"responses":{"200":{"description":"result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/personalData"}}}},"400":{"description":"result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}}}},"/api/address/list":{"get":{"tags":["deliveryAddress"],"responses":{"200":{"description":"info about orders","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/deliveryAddress"}}}}}}}},"/api/address/update/{id}":{"put":{"tags":["deliveryAddress"],"summary":"update delivery address","operationId":"deliveryAddressUpdatFeield","parameters":[{"name":"id","in":"path","description":"id address","required":true,"schema":{"type":"integer"}},{"name":"city","in":"query","description":"update city","schema":{"type":"string"}},{"name":"street","in":"query","description":"update street","schema":{"type":"string"}},{"name":"korpus","in":"query","description":"korpus city","schema":{"type":"integer"}},{"name":"porch","in":"query","description":"update porch","schema":{"type":"integer"}},{"name":"floor","in":"query","description":"update floor","schema":{"type":"integer"}},{"name":"flat","in":"query","description":"update flat","schema":{"type":"integer"}},{"name":"main adress","in":"query","description":"update main adress","schema":{"type":"boolean"}}],"responses":{"200":{"description":"result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deliveryAddress"}}}}}}},"/api/address/add":{"post":{"tags":["deliveryAddress"],"summary":"add new delivery address","operationId":"addNewAdress","parameters":[{"name":"city","in":"query","description":"update city","schema":{"type":"string"}},{"name":"street","in":"query","description":"update street","schema":{"type":"string"}},{"name":"korpus","in":"query","description":"korpus city","schema":{"type":"integer"}},{"name":"porch","in":"query","description":"update porch","schema":{"type":"integer"}},{"name":"floor","in":"query","description":"update floor","schema":{"type":"integer"}},{"name":"flat","in":"query","description":"update flat","schema":{"type":"integer"}},{"name":"main adress","in":"query","description":"update main adress","schema":{"type":"boolean"}}],"responses":{"200":{"description":"result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deliveryAddress"}}}}}}},"/api/shop/list":{"get":{"tags":["myShop"],"responses":{"200":{"description":"info about orders","content":{"application/json":{"schema":{"$ref":"#/components/schemas/myshops"}}}}}}},"/api/shop/list/{id}":{"get":{"tags":["myShop"],"parameters":[{"name":"id","in":"path","description":"shop detail id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"info about orders","content":{"application/json":{"schema":{"$ref":"#/components/schemas/myshop"}}}}}}},"/api/shop/delete/{shopId}":{"delete":{"tags":["myShop"],"summary":"delete by shopId","operationId":"myShopDeleteShopId","parameters":[{"name":"shopId","in":"path","description":"delete by shopId","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"result","content":{"application/json":{"schema":{"type":"boolean","default":true}}}},"400":{"description":"Invalid Field supplied"},"404":{"description":"Field not found"}}}},"/api/shop/add/{shopId}":{"post":{"tags":["myShop"],"summary":"add by shopId","operationId":"myShopAddShopId","parameters":[{"name":"shopId","in":"path","description":"add by shopId","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/myshopItem"}}}},"400":{"description":"Invalid Field supplied"},"404":{"description":"Field not found"}}}},"/api/sale/list":{"get":{"tags":["sales"],"responses":{"200":{"description":"info about orders","content":{"application/json":{"schema":{"$ref":"#/components/schemas/sales"}}}},"400":{"description":"empty orders"}}}},"/api/balanceAndBonus/list":{"get":{"tags":["balanceAndBonus"],"responses":{"200":{"description":"info about orders","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/balanceAndBonus"}}}}}}}},"/api/catalog/detailProduct/{id}":{"get":{"tags":["productDetailPage"],"description":"get information about product properties","parameters":[{"name":"id","in":"path","description":"product id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"object","properties":{"product":{"$ref":"#/components/schemas/DetailProduct"}}}}}}}}},"/api/catalog/sections":{"get":{"tags":["filter"],"description":"get all active sections","responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"object","properties":{"sections":{"type":"array","items":{"$ref":"#/components/schemas/Section"}}}}}}}}}},"/api/catalog/tags":{"get":{"tags":["filter"],"description":"tags for the current section","parameters":[{"name":"sectionCode","in":"query","description":"current section code","schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"type":"array","items":{"$ref":"#/components/schemas/Tag"}},"sectionTitle":{"type":"string"},"sectionDescription":{"type":"string"}}}}}}}}},"/api/catalog/filterParams":{"get":{"tags":["filter"],"description":"get filter params and value","parameters":[{"name":"sectionCode","in":"query","description":"current section code","schema":{"type":"string"}},{"name":"filter","in":"query","description":"filter string cnc / $GET param","schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"object","properties":{"params":{"type":"array","items":{"$ref":"#/components/schemas/FilterParameter"}}}}}}}}}},"/api/catalog/catalogProducts":{"post":{"tags":["filter"],"description":"get product by filter","parameters":[{"name":"sectionCode","in":"query","description":"current section code","schema":{"type":"string"}},{"name":"filter","in":"query","description":"filter string cnc / $GET param","schema":{"type":"string"}},{"name":"page","in":"query","description":"page pagen","schema":{"type":"integer"}},{"name":"sorting","in":"query","description":"sorting asc / desc / ...","schema":{"type":"string"}},{"name":"count","in":"query","description":"count first found","schema":{"type":"integer"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"object","properties":{"products":{"type":"array","items":{"$ref":"#/components/schemas/Product"}},"pagen":{"$ref":"#/components/schemas/pagen"},"sorting":{"type":"string"}}}}}}}}}},"components":{"schemas":{"order":{"type":"object","properties":{"id":{"type":"integer","description":"OrderId","format":"int64","default":49309},"date":{"type":"integer","description":"order date","format":"date-time","default":"11.03.2021"},"sum":{"type":"integer","description":"sum of order","format":"int64","default":42199},"payment":{"type":"string","description":"payment system","enum":["cash payment","Online installments","Apple Pay","Bank card"]},"delevery":{"type":"string","description":"delevery status","enum":["delivered to 13.03.2021","placed","approved"]},"status":{"type":"string","description":"status order","enum":["processing service","service","отгружен (доставлен)","shipped (delivered)","pending loan approval","refusal","confirmed","accepted","on agreement","not processed","payment online"]},"products":{"type":"array","items":{"$ref":"#/components/schemas/orderItem"}}}},"orderItem":{"type":"object","description":"order items","properties":{"id":{"type":"integer","description":"item id","format":"int64","default":91511},"previewPicture":{"type":"string","description":"item preview picture","default":"/upload/resize_cache/iblock/496/1000_1000_1/4960a1873aaa98f5178cefd0f4ac26ac.jpg"},"url":{"type":"string","description":"item url","format":"/catalog/divan-deli-next-120-svetlo-biryuzovyj-27395/","default":"/upload/resize_cache/iblock/496/1000_1000_1/4960a1873aaa98f5178cefd0f4ac26ac.jpg"},"name":{"type":"string","description":"item name","default":"Диван Дели NEXT 120"},"color":{"$ref":"#/components/schemas/Color"},"quantity":{"type":"integer","description":"item quantity","format":"int64","default":1},"price":{"type":"integer","description":"item price","format":"int64","default":42199}}},"personalData":{"type":"object","properties":{"id":{"type":"integer","format":"int64","default":21341},"name":{"type":"string","description":"user name","default":"Ivan Ivan Ivan"},"mail":{"type":"string","default":"ivan@ivan.ru"},"phone":{"type":"integer","format":"int64","default":89999999999},"bitrh":{"type":"integer","format":"date-time","default":"01.01.1980"},"gender":{"type":"string","description":"Gender selection","enum":["male","female","latent gay"]}}},"deliveryAddress":{"type":"object","properties":{"id":{"type":"integer","format":"int64","default":123213},"city":{"type":"string","default":"Gizel"},"street":{"type":"string","default":"top Gizel street"},"korpus":{"type":"string","default":"1/2"},"porch":{"type":"integer","default":4},"floor":{"type":"integer","default":23},"flat":{"type":"integer","default":456},"main":{"type":"integer","description":"main adress selection","enum":[1,0]}}},"sales":{"type":"array","items":{"$ref":"#/components/schemas/salesItems"}},"subwayItem":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"color":{"type":"string"}}},"myshop":{"type":"object","properties":{"id":{"type":"integer","format":"int64","default":23123},"name":{"type":"string","default":"shop 231"},"description":{"type":"string"},"subway":{"type":"array","items":{"$ref":"#/components/schemas/subwayItem"}},"email":{"type":"string"},"workDayWeekdays":{"type":"string","format":"int64","default":"mn-fr_9:00-20:00&st-sn_10:00-22:00"},"workDayWeekend":{"type":"string","format":"int64","default":"mn-fr_9:00-20:00&st-sn_10:00-22:00"},"phone":{"type":"integer","format":"date-time","default":899999}}},"myshopItem":{"type":"object","description":"sale items","properties":{"id":{"type":"integer","format":"int64","default":23123},"name":{"type":"string","default":"shop 231"},"subway":{"type":"array","items":{"$ref":"#/components/schemas/subwayItem"}},"email":{"type":"string"},"workDayWeekdays":{"type":"string","format":"int64","default":"mn-fr_9:00-20:00&st-sn_10:00-22:00"},"workDayWeekend":{"type":"string","format":"int64","default":"mn-fr_9:00-20:00&st-sn_10:00-22:00"},"phone":{"type":"integer","format":"date-time","default":899999}}},"myshops":{"type":"array","items":{"$ref":"#/components/schemas/myshopItem"}},"salesItems":{"type":"object","description":"sale items","properties":{"id":{"type":"integer","format":"int64","default":23123},"name":{"type":"string","default":"Купи один по цене двух"},"code":{"type":"string","format":"int64","default":"123xc23"},"date":{"type":"integer","format":"date-time","default":"23.12.2021"}}},"balanceAndBonus":{"type":"object","properties":{"id":{"type":"integer","format":"int64","default":1231231},"date":{"type":"integer","format":"date-time","default":"23.12.2021"},"bonus":{"type":"integer","format":"int64","default":1442}}},"Color":{"type":"object","properties":{"id":{"type":"integer","default":123325},"name":{"type":"string","default":"color"},"colorCode":{"type":"string","default":"colorCode"},"colorImage":{"type":"string","default":"colorImage"}}},"TagItem":{"type":"object","properties":{"name":{"type":"string","default":"tag"},"url":{"type":"string","default":"url"},"color":{"$ref":"#/components/schemas/Color"}}},"Tag":{"type":"object","properties":{"name":{"type":"string","default":"tag"},"subtags":{"type":"array","items":{"$ref":"#/components/schemas/TagItem"}}}},"Section":{"type":"object","properties":{"id":{"type":"integer","default":123},"name":{"type":"string","default":"section"},"url":{"type":"string","default":"url"},"elementCount":{"type":"integer","default":10},"parentId":{"type":"integer","default":1}}},"Comment":{"type":"object","properties":{"id":{"type":"integer","default":123},"rating":{"type":"integer","default":5},"title":{"type":"string","default":"title"},"benefits":{"type":"string","default":"benefits"},"disadvantages":{"type":"string","default":"disadvantages"},"text":{"type":"string","default":"text"},"productId":{"type":"integer","default":12312}}},"Collection":{"type":"object","properties":{"id":{"type":"integer","default":1},"name":{"type":"string","default":"name"},"price":{"type":"string","default":1242345},"section":{"$ref":"#/components/schemas/Section"}}},"Angle":{"type":"object","properties":{"id":{"type":"integer","default":1},"name":{"type":"string","default":"name"},"checked":{"type":"string","default":"Y"},"productId":{"type":"integer","default":213123}}},"Option":{"type":"object","properties":{"id":{"type":"integer","default":123},"name":{"type":"string","default":"name"},"checked":{"type":"string","default":"Y"},"productId":{"type":"integer","default":123124}}},"Properties":{"type":"object","properties":{"color":{"type":"string","default":"color"},"colors":{"type":"array","items":{"$ref":"#/components/schemas/Color"}},"detailPageUrl":{"type":"string","default":"detailPageUrl"},"previewPicture":{"type":"string","default":"previewPicture"},"inBasket":{"type":"string","default":"Y"},"inFavorites":{"type":"string","default":"Y"},"new":{"type":"string","default":"Y"},"theForm":{"type":"string","default":"theForm"},"skin":{"type":"string","default":"Y"},"width":{"type":"string","default":"width"},"height":{"type":"string","default":"height"},"depth":{"type":"string","default":"depth"},"deliveryTime":{"type":"string","default":20},"oldPriceProc":{"type":"string","default":10},"oldPrice":{"type":"string","default":1230},"price":{"type":"string","default":100},"quantity":{"type":"string","default":1}}},"DetailProperties":{"type":"object","properties":{"title":{"type":"string","default":"title"},"images":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"}}}},"activeFrom":{"type":"string","default":"05.09.2020"},"activeTo":{"type":"string","default":"05.09.2021"},"options":{"type":"array","items":{"$ref":"#/components/schemas/Option"}},"comments":{"type":"array","items":{"$ref":"#/components/schemas/Comment"}},"collections":{"type":"array","items":{"$ref":"#/components/schemas/Collection"}},"angles":{"type":"array","items":{"$ref":"#/components/schemas/Angle"}},"videoUrl":{"type":"string","default":"videoUrl"},"detailText":{"type":"string","default":"detailText"},"typeGear":{"type":"string","default":"typeGear"},"smartika":{"type":"string","default":"Y"},"next":{"type":"string","default":"Y"},"color":{"type":"string","default":"color"},"colors":{"type":"array","items":{"$ref":"#/components/schemas/Color"}},"detailPageUrl":{"type":"string"},"previewPicture":{"type":"string","default":"previewPicture"},"inBasket":{"type":"string","default":"Y"},"inFavorites":{"type":"string","default":"Y"},"new":{"type":"string","default":"Y"},"theForm":{"type":"string","default":"theForm"},"skin":{"type":"string","default":"Y"},"width":{"type":"string","default":"width"},"height":{"type":"string","default":"height"},"depth":{"type":"string","default":"height"},"deliveryTime":{"type":"string","default":10},"oldPriceProc":{"type":"string","default":10},"oldPrice":{"type":"string","default":200},"price":{"type":"string","default":100},"quantity":{"type":"string","default":1},"code1c":{"type":"string","default":"code123"},"cloth":{"type":"string","default":"cloth"},"coating":{"type":"string","default":"coating"},"rigidity":{"type":"string","default":"rigidity"},"facade":{"type":"string","default":"facade"},"apholstery":{"type":"string","default":"apholstery"},"sleepingArea":{"type":"string","default":"sleepingArea"},"filler":{"type":"string","default":"filler"},"burden":{"type":"string","default":"burden"},"housing":{"type":"string","default":"housing"},"sideArmrest":{"type":"string","default":"sideArmrest"},"sideTable":{"type":"string","default":"sideTable"},"fabricType":{"type":"string","default":"fabricType"},"frame":{"type":"string","default":"frame"},"boxLinen":{"type":"string","default":"Y"},"guarantee":{"type":"string","default":"guarantee"},"tradeOffers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","default":1}}}},"productsBuy":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","default":1}}}}}},"Product":{"type":"object","properties":{"id":{"type":"integer","default":12342},"name":{"type":"string","default":"divan bon"},"available":{"type":"string","default":"N"},"section":{"$ref":"#/components/schemas/Section"},"properties":{"$ref":"#/components/schemas/Properties"}}},"DetailProduct":{"type":"object","properties":{"id":{"type":"integer","default":123},"name":{"type":"string","default":"divan amsterdam"},"available":{"type":"string","default":"Y"},"section":{"$ref":"#/components/schemas/Section"},"properties":{"$ref":"#/components/schemas/DetailProperties"}}},"FilterProperty":{"type":"object","properties":{"name":{"type":"string"},"min":{"type":"string","default":0},"max":{"type":"string","default":100},"from":{"type":"string","default":0},"to":{"type":"string","default":100},"checked":{"type":"string","default":"Y"},"elementCount":{"type":"string","default":10},"color":{"$ref":"#/components/schemas/Color"}}},"pagen":{"type":"object","properties":{"page":{"type":"integer","default":1},"maxPageCount":{"type":"integer","default":10},"count":{"type":"integer","default":12}}},"error":{"type":"object","properties":{"code":{"type":"string"},"msg":{"type":"string"}}},"FilterParameter":{"type":"object","properties":{"name":{"type":"string"},"displayType":{"type":"string"},"code":{"type":"string"},"properties":{"type":"array","items":{"$ref":"#/components/schemas/FilterProperty"}}}}},"requestBodies":{"order":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/order"}}}}}},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/foxxoma/ZVET_API/1.0.0"},{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/Eressleep/zvetApiFinal/1.0.0"}]}