{"openapi":"3.0.1","info":{"version":"1.0.0","title":"3CadControlPanel","description":"This is a simple API for managing 3CadSupervisor master"},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/c75364/3CadControlPanel/1.0.0"},{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/c75364/3CadSVMaster/1.0.0"},{"url":"https://localhost:44395/","description":"3cadsupervisor server local"},{"url":"https://ecad24.dau.it/3cadsupervisor","description":"Development environmment"},{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/c75364/3CadSupervisor/1"}],"paths":{"/Service/Get":{"get":{"security":[{"oauth2":[]}],"description":"Returns a list of all Sv configured services","responses":{"200":{"description":"List of all sv services","content":{"application/json":{"schema":{"$ref":"#/components/schemas/mServices"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/Service/GetMigrationId":{"get":{"security":[{"oauth2":[]}],"description":"Returns the version of promo db","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"},"required":true},{"in":"header","name":"progname","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"List of all sv services","content":{"application/json":{"schema":{"$ref":"#/components/schemas/mPromoVersions"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/Service/GetModulesList":{"get":{"security":[{"oauth2":[]}],"description":"Returns the list of Supervisor's modules","responses":{"200":{"description":"List the list of Supervisor's modules","content":{"application/json":{"schema":{"$ref":"#/components/schemas/mModulesList"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/Service/UpdateStatus":{"post":{"security":[{"oauth2":[]}],"description":"Enable or disable the specified Supervisor service","parameters":[{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"enabled","schema":{"type":"integer","example":"1 or 0"},"required":true}],"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/Service/UpdateModules":{"post":{"security":[{"oauth2":[]}],"description":"Enable or disable the specified Supervisor module","parameters":[{"in":"header","name":"progname","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mModules"}}}},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/Service/SetOwner":{"post":{"security":[{"oauth2":[]}],"description":"Add or update a supervisor owner","parameters":[{"in":"header","name":"progname","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Owner"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/Service/Add":{"post":{"security":[{"oauth2":[]}],"description":"Add a new supervisor service","requestBody":{"description":"json data to save","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mNewService"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/Service/TestProgramStoredVersion":{"post":{"security":[{"oauth2":[]}],"description":"Update db promo stored procedures if needed","parameters":[{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"}}],"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/Migration/GetAllMigrations":{"get":{"security":[{"oauth2":[]}],"description":"Returns the list of all migrazions database","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"},"required":true},{"in":"header","name":"progname","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"List the list of all migrazions database","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/Migration/UpdateDatabaseToVersion":{"post":{"security":[{"oauth2":[]}],"description":"Update database to version","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"},"required":true},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"header","name":"migrationname","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/Service/Del":{"post":{"security":[{"oauth2":[]}],"description":"Delete a supervisor service","requestBody":{"description":"json data","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mNewService"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"securitySchemes":{"oauth2":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"ErrorResponse":{"type":"object","properties":{"start_time":{"type":"string","format":"date-time","example":"2021-01-01T12:00:00"},"end_time":{"type":"string","format":"date-time","example":"2021-01-01T12:00:00"},"time_zone":{"type":"string","example":"America/Los_Angeles"},"mime_type":{"type":"string","example":"application/json"},"internal_error":{"type":"integer","example":0},"description":{"type":"string","example":"La risorsa specificata non � stata trovata"}}},"mServices":{"type":"array","items":{"$ref":"#/components/schemas/mService"}},"mService":{"type":"object","required":["serverid","progname"],"properties":{"serverid":{"type":"integer"},"progname":{"type":"string"},"serverdes":{"type":"string"},"enabled":{"type":"integer","enum":[0,1],"description":"* 0 - Disabled * 2 - Enabled\n"},"modules":{"type":"array","items":{"example":"#/components/schemas/mModules","$ref":"#/components/schemas/mModules"}}}},"mModules":{"type":"object","properties":{"cod":{"type":"string"},"des":{"type":"string"},"enabled":{"type":"integer","enum":[0,1],"description":"* 0 - Disabled * 2 - Enabled\n"},"migrationid":{"type":"integer"}}},"mPromoVersions":{"type":"array","items":{"type":"object","example":"#/components/schemas/mPromoVersion","$ref":"#/components/schemas/mPromoVersion"}},"mPromoVersion":{"type":"object","properties":{"catalog":{"type":"string"},"migrationid":{"type":"string"},"storedprocvers":{"type":"string"}}},"mModulesList":{"type":"array","items":{"type":"object","example":"#/components/schemas/mModulesListItem","$ref":"#/components/schemas/mModulesListItem"}},"mModulesListItem":{"type":"object","properties":{"cod":{"type":"string"},"des":{"type":"string"}}},"Owner":{"type":"object","required":["owner","progname"],"properties":{"owner":{"type":"string"},"progname":{"type":"string"},"isadmin":{"type":"integer"},"lang":{"type":"string"},"abilitations":{"type":"array","items":{"$ref":"#/components/schemas/OwnerAbilitations"}}}},"OwnerAbilitations":{"type":"object","required":["catalog","enabled"],"properties":{"catalog":{"type":"string"},"enabled":{"type":"integer"}}},"mNewServices":{"type":"array","items":{"type":"object","example":"#/components/schemas/mNewService","$ref":"#/components/schemas/mNewService"}},"mNewService":{"type":"object","properties":{"progname":{"type":"string"},"serverdes":{"type":"string"},"enabled":{"type":"integer","enum":[0,1],"description":"* 0 - Disabled * 2 - Enabled\n"},"modules":{"type":"array","items":{"example":"#/components/schemas/mModules","$ref":"#/components/schemas/mModules"}},"sqlconn":{"type":"string"},"sqlconndebug":{"type":"string"},"updatespath":{"type":"string"},"bakdbpath":{"type":"string"},"catremotepath":{"type":"string"},"url":{"type":"string"}}}}}}