{"openapi":"3.0.0","info":{"version":"1.0.0","title":"Api in MDM for AA","contact":{"name":"Momot Maksym","email":"maxim.momot@auditsoft.com.ua"}},"paths":{"/user":{"post":{"tags":["User"],"description":"Creating/updating counterparties","operationId":"User","security":[{"basicAuth":[]}],"responses":{"200":{"description":"Correspondents successfully downloaded/updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses200"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses400"}}}},"505":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses505"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"required":true}}},"/auto":{"post":{"tags":["Auto"],"description":"Creating/updating auto","operationId":"Auto","security":[{"basicAuth":[]}],"responses":{"200":{"description":"Auto successfully downloaded/updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses200"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses400"}}}},"505":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses505"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Auto"}}},"required":true}}},"/job":{"post":{"tags":["Job"],"description":"Creating/updating job","operationId":"Job","security":[{"basicAuth":[]}],"responses":{"200":{"description":"Job successfully downloaded/updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses200"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses400"}}}},"505":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses505"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}},"required":true}}},"/model":{"post":{"tags":["Model"],"description":"Creating/updating model","operationId":"Model","security":[{"basicAuth":[]}],"responses":{"200":{"description":"Model successfully downloaded/updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses200"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses400"}}}},"505":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses505"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Model"}}},"required":true}}},"/brand":{"post":{"tags":["Brand"],"description":"Creating/updating brand","operationId":"Brand","security":[{"basicAuth":[]}],"responses":{"200":{"description":"Brand successfully downloaded/updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses200"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses400"}}}},"505":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses505"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Brand"}}},"required":true}}},"/part":{"post":{"tags":["Part"],"description":"Creating/updating part","operationId":"Part","security":[{"basicAuth":[]}],"responses":{"200":{"description":"Part successfully downloaded/updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses200"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses400"}}}},"505":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses505"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Part"}}},"required":true}}},"/autogroup":{"post":{"tags":["Autogroup"],"description":"Creating/updating autogroup","operationId":"Autogroup","security":[{"basicAuth":[]}],"responses":{"200":{"description":"Autogroup successfully downloaded/updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses200"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses400"}}}},"505":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses505"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Autogroup"}}},"required":true}}},"/repairtype":{"post":{"tags":["RepairType"],"description":"Creating/updating repair type","operationId":"RepairType","security":[{"basicAuth":[]}],"responses":{"200":{"description":"Repair type successfully downloaded/updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses200"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses400"}}}},"505":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses505"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepairType"}}},"required":true}}},"/workshops":{"post":{"tags":["Workshops"],"description":"Creating/updating workshops","operationId":"Workshops","security":[{"basicAuth":[]}],"responses":{"200":{"description":"Workshops successfully downloaded/updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses200"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses400"}}}},"505":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses505"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workshops"}}},"required":true}}},"/service":{"post":{"tags":["Service"],"description":"Creating/updating service","operationId":"Service","security":[{"basicAuth":[]}],"responses":{"200":{"description":"Service successfully downloaded/updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses200"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses400"}}}},"505":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses505"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Service"}}},"required":true}}},"/order":{"post":{"tags":["Order"],"description":"Creating/updating order","operationId":"Order","security":[{"basicAuth":[]}],"responses":{"200":{"description":"Order successfully downloaded/updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses200"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses400"}}}},"505":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Responses505"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}},"required":true}}}},"servers":[{"url":"http://alpha.auditsoft.com.ua:8057/arma_mdm/hs/api"}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic"}},"schemas":{"User":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier","default":"9712e912-d0b9-11e1-b37b-0050568458ce"},"name":{"type":"string","description":"Counterpart name","default":"Test"},"fullName":{"type":"string","default":"Test Test","description":"Counterpart full name"},"type":{"type":"string","enum":["Внутренный","ОбособленноеПодразделение","Прочее","ЧастноеЛицо","ЧастныйПредприниматель","ЮридическоеЛицо"],"description":"Type counterpart"},"codeOKPO":{"type":"string","default":"145698712","description":"OKPO code"},"surname":{"type":"string","default":"+Test","description":"surname"},"firstname":{"type":"string","default":"+Test","description":"first name"},"middleName":{"type":"string","default":"+Test","description":"middle name"},"consent":{"type":"boolean","default":true,"description":"Consent to the processing of personal data"},"verified":{"type":"boolean","default":true,"description":"Verified"},"base":{"type":"string","enum":["arma","viking"]},"information":{"type":"array","items":{"type":"object","title":"information","properties":{"type":{"type":"string","description":"type information","enum":["Адрес","АдресЭлектроннойПочты","ВебСтраница","Другое","НомерICQ","Телефон"]},"sort":{"type":"string","description":"sort information","enum":["АдресИностранный","АдресПочтовый","АдресФактический","АдресЭлектроннойПочтыДомашний","АдресЭлектроннойПочтыРабочий","АдресЮридический","ВебСтраницаОрганизации","ВебСтраницаФизЛица","НомерICQ","ПрочаяИнформация","ТелефонДомашний","ТелефонКонтактный","ТелефонРабочий","ТелефонСотовый","Факс"]},"view":{"type":"string","description":"view","default":"0149563215"}}}},"contact":{"type":"array","items":{"type":"string","description":"Unique identifier","default":"9712e512-d7b9-11e1-b37b-0040568458ce"}}}}},"xml":{"name":"Users"}},"Auto":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier","default":"9712e912-d0b9-11e1-b37b-0050568458ce"},"model":{"type":"string","description":"Model unique identifier","default":"9712e912-d0b9-11e1-b37b-0050568458ce"},"vin":{"type":"string","default":"YV1LC68UCK15047","description":"VIN"},"year":{"type":"string","default":"2019","description":"Year of issue"},"mileage":{"type":"integer","default":48690,"description":"mileage"},"modelYear":{"type":"string","default":"2019","description":"model year"},"bodyNumber":{"type":"string","default":"YV1LC68UCK","description":"body number"},"body":{"type":"string","default":"Універсал","description":"body"},"engine":{"type":"string","default":"D5","description":"engine"},"transmission":{"type":"string","default":"AT8","description":"transmission"},"owner":{"type":"string","description":"Owner unique identifier","default":"9712e912-d0b9-11e1-b37b-0050568458ce"},"equipment":{"type":"string","default":"Momentum","description":"equipment"},"colour":{"type":"string","default":"Twilight","description":"colour"},"number":{"type":"string","default":"АА5012ТВ","description":"number"},"orderNumber":{"type":"string","default":"0000006647","description":"order number"},"paymentStatusCar":{"type":"integer","enum":[1,2,3],"description":"payment status car"},"sum":{"type":"integer","default":591907,"description":"order number"},"sumDiscount":{"type":"integer","default":91907,"description":"order discount amount"},"statusCar":{"type":"boolean","default":true,"description":"status"},"personal":{"type":"boolean","default":true,"description":"personal"},"buy":{"type":"boolean","default":true,"description":"Sold"},"yearDeal":{"type":"string","default":"2017","description":"Year of sale"},"verified":{"type":"boolean","default":true,"description":"Verified"}}}},"xml":{"name":"Auto"}},"Job":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier","default":"9712e912-d0b9-11e1-b37b-0050568458ce"},"name":{"type":"string","description":"Job name","default":"Test"},"fullname":{"type":"string","default":"Test Test","description":"Job full name"},"ref":{"type":"string","default":"q1","description":"Catalog number"},"duration":{"type":"integer","default":2.0,"description":"lead time"}}}},"xml":{"name":"Job"}},"Model":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier","default":"8d69a30a-2fe8-11ec-8277-4cd98fc26f14"},"name":{"type":"string","description":"Model name","default":"F-PACE"},"fullName":{"type":"string","default":"F-PACE","description":"Model full name"},"vendorCode":{"type":"string","default":"ЦБ00000340","description":"vendor code"},"brand":{"type":"string","default":"be821bd2-2fe7-11ec-8277-4cd98fc26f14","description":"Brand unique identifier"},"autogroup":{"type":"string","default":"48e24836-2fe6-11ec-8277-4cd98fc26f14","description":"Nomenclature group unique identifier"}}}},"xml":{"name":"Model"}},"Brand":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier","default":"9712e912-d0b9-11e1-b37b-0050568458ce"},"name":{"type":"string","description":"Brand name","default":"RENAULT"},"brand":{"type":"string","default":"R","description":"Brand short name"}}}},"xml":{"name":"Brand"}},"Part":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier","default":"9712e912-d0b9-11e1-b37b-0050568458ce"},"name":{"type":"string","description":"Nomenclature name","default":"Test"}}}},"xml":{"name":"Part"}},"Autogroup":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier","default":"9712e912-d0b9-11e1-b37b-0050568458ce"},"name":{"type":"string","description":"Vehicle nomenclature group name","default":"Renault група"}}}},"xml":{"name":"Autogroup"}},"RepairType":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier","default":"9712e912-d0b9-11e1-b37b-0050568458ce"},"name":{"type":"string","description":"Repair type name","default":"Встановлення ГБО"}}}},"xml":{"name":"RepairType"}},"Workshops":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier","default":"9712e912-d0b9-11e1-b37b-0050568458ce"},"name":{"type":"string","description":"Workshops name","default":"Мех.Мітсубіші П №16"},"subdivision":{"type":"string","description":"subdivision","default":"Renault"},"schedule":{"type":"array","items":{"type":"object","title":"schedule","properties":{"date":{"type":"string","description":"day","default":"2022-04-10T00:00:00+02:00"},"dateStart":{"type":"string","description":"start date","default":"2022-04-10T08:00:00+02:00"},"dateEnd":{"type":"string","description":"end date","default":"2022-04-10T20:00:00+02:00"},"workingDay":{"type":"boolean","description":"view","default":true}}}}}}},"xml":{"name":"Workshops"}},"Service":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier","default":"9712e912-d0b9-11e1-b37b-0050568458ce"},"client":{"type":"string","description":"Counterpart unique identifier","default":"9712e912-d0b9-11e1-b37b-0050563648ce"},"auto":{"type":"string","description":"Auto unique identifier","default":"9712e912-d0b9-11e1-b37b-0045698458ce"},"type":{"type":"string","description":"Repair type unique identifier","default":"9712e915-d0b9-11e1-b37b-0050788458ce"},"dateStart":{"type":"string","description":"start date","default":"ГГГГ-ММ-ДДTЧЧ:ММ:ССZ"},"dateEnd":{"type":"string","description":"end date","default":"ГГГГ-ММ-ДДTЧЧ:ММ:ССZ"},"workshop":{"type":"string","description":"Workshop unique identifier","default":"9712e912-d0b9-11e1-b37b-0045698458ce"},"comment":{"type":"string","description":"Comment","default":"Test comment"},"author":{"type":"string","description":"author","default":"Могила Сергій Олександрович"},"authorPhone":{"type":"string","description":"Counterpart name","default":"+789789123123"},"verefy":{"type":"boolean","description":"verefy","default":true},"status":{"type":"string","description":"Service status","enum":["draft","created","in_Process","done","close","reject"]},"statusPayment":{"type":"string","description":"Payment status","enum":["not","part","full"]},"planning":{"type":"array","items":{"type":"object","title":"planning","properties":{"dateStart":{"type":"string","description":"start date","default":"ГГГГ-ММ-ДДTЧЧ:ММ:ССZ"},"dateEnd":{"type":"string","description":"end date","default":"ГГГГ-ММ-ДДTЧЧ:ММ:ССZ"},"workshop":{"type":"string","description":"Workshop unique identifier","default":"9712e912-d0b9-11e1-b37b-0045698458ce"},"subdivision":{"type":"string","description":"subdivision","enum":["Renault","Mitsubishi","Volvo"]}}}}}}},"xml":{"name":"Service"}},"Order":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier","default":"9712e912-d0b9-11e1-b37b-0050568458ce"},"client":{"type":"string","description":"Counterpart unique identifier","default":"9712e912-d0b9-11e1-b37b-0050563648ce"},"auto":{"type":"string","description":"Auto unique identifier","default":"9712e912-d0b9-11e1-b37b-0045698458ce"},"idRequest":{"type":"string","description":"Request unique identifier","default":"9712e912-d0b9-11e1-b37b-0045698458ce"},"VIN":{"type":"string","description":"VIN","default":"VF1FW14BD489409"},"number":{"type":"string","description":"state number","default":"KA7274BH"},"phone":{"type":"string","description":"Phone","default":"+380442599937"},"author":{"type":"string","description":"author","default":"Могила Сергій Олександрович"},"authorPhone":{"type":"string","description":"Phone author","default":"+380442599937"},"subdivision":{"type":"string","description":"subdivision","enum":["Renault","Mitsubishi","Volvo"]},"jobs":{"type":"array","items":{"type":"object","title":"job","properties":{"name":{"type":"string","description":"Nomenclature","default":"Олива Elf Evolution Full-Tech FE 5W30 208L"},"sum":{"type":"string","description":"Price","default":"885,600"}}}}}}},"xml":{"name":"Order"}},"Responses200":{"type":"object","properties":{"success":{"type":"boolean","description":"exchange success","default":true},"message":{"type":"string","default":"Object successfully downloaded/updated"}}},"Responses400":{"type":"object","properties":{"success":{"type":"boolean","description":"exchange success","default":false},"message":{"type":"string","default":"Description of errors in the data"}}},"Responses505":{"type":"object","properties":{"success":{"type":"boolean","description":"exchange success","default":false},"message":{"type":"string","default":"Something goes wrong"}}}}}}