{ "openapi": "3.1.0", "info": { "title": "MajorNet APIs", "version": "1.0" }, "paths": { "/auth/login": { "post": { "summary": "Login", "description": "Logs in the user provided by form_data.username and form_data.password", "operationId": "login_auth_login_post", "requestBody": { "content": { "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/Body_login_auth_login_post" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Token" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/user/profili": { "get": { "summary": "Get Profili", "operationId": "get_profili_user_profili_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } }, "security": [ { "MyLoginManager": [] } ] } }, "/user/{username}": { "get": { "summary": "Read User", "operationId": "read_user_user__username__get", "security": [ { "MyLoginManager": [ "required", "is_admin" ] }, { "MyLoginManager": [] } ], "parameters": [ { "name": "username", "in": "path", "required": true, "schema": { "title": "Username" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "delete": { "summary": "Delete User", "operationId": "delete_user_user__username__delete", "security": [ { "MyLoginManager": [ "required", "is_admin" ] }, { "MyLoginManager": [] } ], "parameters": [ { "name": "username", "in": "path", "required": true, "schema": { "type": "string", "title": "Username" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/presence/settings": { "get": { "tags": [ "Presense" ], "summary": "Route Ring", "operationId": "route_ring_presence_settings_get", "security": [ { "MyLoginManager": [] } ], "parameters": [ { "name": "calledNumber", "in": "query", "required": false, "schema": { "title": "Callednumber" } }, { "name": "calledId", "in": "query", "required": false, "schema": { "title": "Calledid" } }, { "name": "ringTime", "in": "query", "required": false, "schema": { "title": "Ringtime" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/majornet/users/": { "get": { "tags": [ "MajorNet" ], "summary": "Get Majornet Users", "operationId": "get_majornet_users_majornet_users__get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/httpResponse200" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/httpResponse400" } } } }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/httpResponse500" } } } } }, "security": [ { "MyLoginManager": [] } ] } }, "/majornet/users/add_user/": { "post": { "tags": [ "MajorNet" ], "summary": "Majornet Add User", "operationId": "majornet_add_user_majornet_users_add_user__post", "security": [ { "MyLoginManager": [] } ], "parameters": [ { "name": "mnuser", "in": "query", "required": true, "schema": { "type": "string", "title": "Mnuser" } }, { "name": "mnpasswd", "in": "query", "required": true, "schema": { "type": "string", "title": "Mnpasswd" } }, { "name": "mndisplayname", "in": "query", "required": true, "schema": { "type": "string", "title": "Mndisplayname" } }, { "name": "mnmail", "in": "query", "required": false, "schema": { "default": "", "title": "Mnmail" } }, { "name": "mnprofile", "in": "query", "required": false, "schema": { "default": "default", "title": "Mnprofile" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/post_mnuser" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/majortel/contacts/username/{username}/password/{password}/addressbook/{addressbook}/": { "get": { "tags": [ "Majortel" ], "summary": "Get Majortel Contacts", "operationId": "get_majortel_contacts_majortel_contacts_username__username__password__password__addressbook__addressbook___get", "parameters": [ { "name": "username", "in": "path", "required": true, "schema": { "title": "Username" } }, { "name": "password", "in": "path", "required": true, "schema": { "title": "Password" } }, { "name": "addressbook", "in": "path", "required": true, "schema": { "title": "Addressbook" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/httpResponse200" } } } }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/httpResponse400" } } }, "description": "Bad Request" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/httpResponse500" } } }, "description": "Internal Server Error" }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/majortel/contacts/username/{username}/password/{password}/addressbook/{addressbook}/microsip/": { "get": { "tags": [ "Majortel" ], "summary": "Get Majortel Contacts Microsip", "operationId": "get_majortel_contacts_microsip_majortel_contacts_username__username__password__password__addressbook__addressbook__microsip__get", "parameters": [ { "name": "username", "in": "path", "required": true, "schema": { "title": "Username" } }, { "name": "password", "in": "path", "required": true, "schema": { "title": "Password" } }, { "name": "addressbook", "in": "path", "required": true, "schema": { "title": "Addressbook" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/httpResponse200" } } } }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/httpResponse400" } } }, "description": "Bad Request" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/httpResponse500" } } }, "description": "Internal Server Error" }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/reslevis/getGateways": { "get": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Getgateways", "operationId": "getGateways_reslevis_getGateways_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/GatewayItem" }, "type": "array", "title": "Response Getgateways Reslevis Getgateways Get" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/postGateway": { "post": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Postgateway", "operationId": "postGateway_reslevis_postGateway_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GatewayItem" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/updateGateway": { "put": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Updategateway", "operationId": "updateGateway_reslevis_updateGateway_put", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GatewayItem" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/removeGateway/{gateway_id}": { "delete": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Removegateway", "operationId": "removeGateway_reslevis_removeGateway__gateway_id__delete", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "gateway_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Gateway Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/reslevis/getBuildings": { "get": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Getbuildings", "operationId": "getBuildings_reslevis_getBuildings_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/BuildingItem" }, "type": "array", "title": "Response Getbuildings Reslevis Getbuildings Get" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/postBuilding": { "post": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Postbuilding", "operationId": "postBuilding_reslevis_postBuilding_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BuildingItem" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/updateBuilding": { "put": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Updatebuilding", "operationId": "updateBuilding_reslevis_updateBuilding_put", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BuildingItem" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/removeBuilding/{building_id}": { "delete": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Removebuilding", "operationId": "removeBuilding_reslevis_removeBuilding__building_id__delete", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "building_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Building Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/reslevis/getFloors": { "get": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Getfloors", "operationId": "getFloors_reslevis_getFloors_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/FloorItem" }, "type": "array", "title": "Response Getfloors Reslevis Getfloors Get" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/postFloor": { "post": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Postfloor", "operationId": "postFloor_reslevis_postFloor_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FloorItem" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/updateFloor": { "put": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Updatefloor", "operationId": "updateFloor_reslevis_updateFloor_put", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FloorItem" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/removeFloor/{floor_id}": { "delete": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Removefloor", "operationId": "removeFloor_reslevis_removeFloor__floor_id__delete", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "floor_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Floor Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/reslevis/getZones": { "get": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Getzones", "operationId": "getZones_reslevis_getZones_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/ZoneItem" }, "type": "array", "title": "Response Getzones Reslevis Getzones Get" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/postZone": { "post": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Postzone", "operationId": "postZone_reslevis_postZone_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ZoneItem" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/updateZone": { "put": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Updatezone", "operationId": "updateZone_reslevis_updateZone_put", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ZoneItem" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/removeZone/{zone_id}": { "delete": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Removezone", "operationId": "removeZone_reslevis_removeZone__zone_id__delete", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "zone_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Zone Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/reslevis/getTrackers": { "get": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Gettrackers", "operationId": "getTrackers_reslevis_getTrackers_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/TrackerItem" }, "type": "array", "title": "Response Gettrackers Reslevis Gettrackers Get" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/postTracker": { "post": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Posttracker", "operationId": "postTracker_reslevis_postTracker_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TrackerItem" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/updateTracker": { "put": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Updatetracker", "operationId": "updateTracker_reslevis_updateTracker_put", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TrackerItem" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/removeTracker/{tracker_id}": { "delete": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Removetracker", "operationId": "removeTracker_reslevis_removeTracker__tracker_id__delete", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "tracker_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Tracker Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/reslevis/getTrackerZones": { "get": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Gettrackerzones", "operationId": "getTrackerZones_reslevis_getTrackerZones_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/TrackerZoneItem" }, "type": "array", "title": "Response Gettrackerzones Reslevis Gettrackerzones Get" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/postTrackerZone": { "post": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Posttrackerzone", "operationId": "postTrackerZone_reslevis_postTrackerZone_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TrackerZoneItem" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/updateTrackerZone": { "put": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Updatetrackerzone", "operationId": "updateTrackerZone_reslevis_updateTrackerZone_put", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TrackerZoneItem" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/removeTrackerZone/{tracker_zone_id}": { "delete": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Removetrackerzone", "operationId": "removeTrackerZone_reslevis_removeTrackerZone__tracker_zone_id__delete", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "tracker_zone_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Tracker Zone Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/reslevis/getTracks": { "get": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Gettracks", "operationId": "getTracks_reslevis_getTracks_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/TrackItem" }, "type": "array", "title": "Response Gettracks Reslevis Gettracks Get" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/postTrack": { "post": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Posttrack", "operationId": "postTrack_reslevis_postTrack_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TrackItem" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/updateTrack": { "put": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Updatetrack", "operationId": "updateTrack_reslevis_updateTrack_put", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TrackItem" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/removeTrack/{track_id}": { "delete": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Removetrack", "operationId": "removeTrack_reslevis_removeTrack__track_id__delete", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "track_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Track Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/reslevis/getOperators": { "get": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Getoperators", "operationId": "getOperators_reslevis_getOperators_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/OperatorItem" }, "type": "array", "title": "Response Getoperators Reslevis Getoperators Get" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/postOperator": { "post": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Postoperator", "operationId": "postOperator_reslevis_postOperator_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OperatorItem" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/updateOperator": { "put": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Updateoperator", "operationId": "updateOperator_reslevis_updateOperator_put", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OperatorItem" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/removeOperator/{operator_id}": { "delete": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Removeoperator", "operationId": "removeOperator_reslevis_removeOperator__operator_id__delete", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "operator_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Operator Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/reslevis/getSubjects": { "get": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Getsubjects", "operationId": "getSubjects_reslevis_getSubjects_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/SubjectItem" }, "type": "array", "title": "Response Getsubjects Reslevis Getsubjects Get" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/postSubject": { "post": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Postsubject", "operationId": "postSubject_reslevis_postSubject_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SubjectItem" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/updateSubject": { "put": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Updatesubject", "operationId": "updateSubject_reslevis_updateSubject_put", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SubjectItem" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/reslevis/removeSubject/{subject_id}": { "delete": { "tags": [ "Reslevis", "Reslevis" ], "summary": "Removesubject", "operationId": "removeSubject_reslevis_removeSubject__subject_id__delete", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "subject_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Subject Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/": { "get": { "summary": "Root", "operationId": "root__get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/openapi.json/": { "get": { "tags": [ "Documentation" ], "summary": "Get Open Api Endpoint", "operationId": "get_open_api_endpoint_openapi_json__get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/docs/": { "get": { "tags": [ "Documentation" ], "summary": "Get Documentation", "operationId": "get_documentation_docs__get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/majortel/call/": { "post": { "tags": [ "Majortel" ], "summary": "Route Call", "operationId": "route_call_majortel_call__post", "security": [ { "MyLoginManager": [] } ], "parameters": [ { "name": "callerNumber", "in": "query", "required": false, "schema": { "title": "Callernumber" } }, { "name": "calledNumber", "in": "query", "required": false, "schema": { "title": "Callednumber" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/majortel/ring/": { "post": { "tags": [ "Majortel" ], "summary": "Route Ring", "operationId": "route_ring_majortel_ring__post", "security": [ { "MyLoginManager": [] } ], "parameters": [ { "name": "calledNumber", "in": "query", "required": false, "schema": { "title": "Callednumber" } }, { "name": "calledId", "in": "query", "required": false, "schema": { "title": "Calledid" } }, { "name": "ringTime", "in": "query", "required": false, "schema": { "title": "Ringtime" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/majortel/hardware/": { "get": { "tags": [ "Majortel" ], "summary": "Majortel Hardware Get", "operationId": "majortel_hardware_get_majortel_hardware__get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/cellularHardwares" } } } } } } }, "/majortel/hardware/{item_id}": { "get": { "tags": [ "Majortel" ], "summary": "Majortel Hardware Id Get", "operationId": "majortel_hardware_id_get_majortel_hardware__item_id__get", "security": [ { "MyLoginManager": [] } ], "parameters": [ { "name": "item_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Item Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/cellularHardware" } } } }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/httpResponse400" } } }, "description": "Bad Request" }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/majortel/calls/": { "get": { "tags": [ "Majortel" ], "summary": "Majortel Calls Get", "operationId": "majortel_calls_get_majortel_calls__get", "security": [ { "MyLoginManager": [] } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/calls" } } } } } }, "delete": { "tags": [ "Majortel" ], "summary": "Majortel Calls Id Delete", "operationId": "majortel_calls_id_delete_majortel_calls__delete", "security": [ { "MyLoginManager": [] } ], "parameters": [ { "name": "call_id", "in": "query", "required": true, "schema": { "title": "Call Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/httpResponse200" } } } }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/httpResponse400" } } }, "description": "Bad Request" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/httpResponse500" } } }, "description": "Internal Server Error" }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/majortel/calls/{call_id}/": { "get": { "tags": [ "Majortel" ], "summary": "Majortel Calls Id Get", "operationId": "majortel_calls_id_get_majortel_calls__call_id___get", "security": [ { "MyLoginManager": [] } ], "parameters": [ { "name": "call_id", "in": "path", "required": true, "schema": { "title": "Call Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/call" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/majortel/calls": { "post": { "tags": [ "Majortel" ], "summary": "Majortel Calls Post", "operationId": "majortel_calls_post_majortel_calls_post", "security": [ { "MyLoginManager": [] } ], "parameters": [ { "name": "hw_id", "in": "query", "required": true, "schema": { "title": "Hw Id" } }, { "name": "ack_id", "in": "query", "required": true, "schema": { "title": "Ack Id" } }, { "name": "called_number", "in": "query", "required": true, "schema": { "title": "Called Number" } }, { "name": "text_message", "in": "query", "required": false, "schema": { "default": "codice di riscontro ", "title": "Text Message" } }, { "name": "timeout", "in": "query", "required": false, "schema": { "default": 30, "title": "Timeout" } }, { "name": "retry", "in": "query", "required": false, "schema": { "default": 1, "title": "Retry" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Body_majortel_calls_post_majortel_calls_post" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/post_call" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } } }, "components": { "schemas": { "Adr": { "properties": { "casellaPostale": { "type": "string", "title": "Casellapostale" }, "indirizzo": { "type": "string", "title": "Indirizzo" }, "indirizzoEsteso": { "type": "string", "title": "Indirizzoesteso" }, "cittaRegioneCAP": { "type": "string", "title": "Cittaregionecap" }, "stato": { "type": "string", "title": "Stato" } }, "type": "object", "required": [ "casellaPostale", "indirizzo", "indirizzoEsteso", "cittaRegioneCAP", "stato" ], "title": "Adr" }, "Body_login_auth_login_post": { "properties": { "grant_type": { "anyOf": [ { "type": "string", "pattern": "^password$" }, { "type": "null" } ], "title": "Grant Type" }, "username": { "type": "string", "title": "Username" }, "password": { "type": "string", "format": "password", "title": "Password" }, "scope": { "type": "string", "title": "Scope", "default": "" }, "client_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Client Id" }, "client_secret": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "format": "password", "title": "Client Secret" } }, "type": "object", "required": [ "username", "password" ], "title": "Body_login_auth_login_post" }, "Body_majortel_calls_post_majortel_calls_post": { "properties": { "file": { "type": "string", "format": "binary", "title": "File" } }, "type": "object", "title": "Body_majortel_calls_post_majortel_calls_post" }, "BuildingItem": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "name": { "type": "string", "title": "Name" }, "city": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "City" }, "address": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Address" }, "latitude": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Latitude" }, "longitude": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Longitude" } }, "type": "object", "required": [ "id", "name" ], "title": "BuildingItem" }, "FloorItem": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "name": { "type": "string", "title": "Name" }, "image": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Image" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Description" }, "scale": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Scale" }, "building": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Building" } }, "type": "object", "required": [ "id", "name" ], "title": "FloorItem" }, "GatewayItem": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "name": { "type": "string", "title": "Name" }, "mac": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Mac" }, "status": { "anyOf": [ { "type": "string" }, { "type": "boolean" }, { "type": "null" } ], "title": "Status" }, "model": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Model" }, "ip": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Ip" }, "position": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Position" }, "x": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "X" }, "y": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Y" }, "notes": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Notes" }, "floor": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Floor" }, "building": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Building" } }, "type": "object", "required": [ "id", "name" ], "title": "GatewayItem" }, "HTTPValidationError": { "properties": { "detail": { "items": { "$ref": "#/components/schemas/ValidationError" }, "type": "array", "title": "Detail" } }, "type": "object", "title": "HTTPValidationError" }, "OperatorItem": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "name": { "type": "string", "title": "Name" }, "phone": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Phone" }, "zones": { "items": { "type": "string", "format": "uuid" }, "type": "array", "title": "Zones" }, "groups": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Groups" }, "notes": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Notes" }, "building": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Building" } }, "type": "object", "required": [ "id", "name", "zones" ], "title": "OperatorItem" }, "SubjectItem": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "name": { "type": "string", "title": "Name" }, "role": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Role" }, "phone": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Phone" }, "tracker": { "type": "string", "format": "uuid", "title": "Tracker" }, "groups": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Groups" }, "notes": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Notes" }, "building": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Building" } }, "type": "object", "required": [ "id", "name", "tracker" ], "title": "SubjectItem" }, "Tel": { "properties": { "homeVoice": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Homevoice" }, "personalMobile": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Personalmobile" }, "workMobile": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Workmobile" }, "workVoice": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Workvoice" } }, "type": "object", "required": [ "homeVoice", "personalMobile", "workMobile", "workVoice" ], "title": "Tel" }, "Token": { "properties": { "access_token": { "type": "string", "title": "Access Token" }, "token_type": { "type": "string", "title": "Token Type", "default": "bearer" } }, "type": "object", "required": [ "access_token" ], "title": "Token" }, "TrackItem": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "timestamp": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Timestamp" }, "type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Type" }, "status": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Status" }, "gateway": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Gateway" }, "gatewayMac": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Gatewaymac" }, "tracker": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Tracker" }, "trackerMac": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Trackermac" }, "subject": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Subject" }, "subjectName": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Subjectname" }, "floor": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Floor" }, "signal": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Signal" }, "building": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Building" } }, "type": "object", "required": [ "id" ], "title": "TrackItem" }, "TrackerItem": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "name": { "type": "string", "title": "Name" }, "mac": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Mac" }, "status": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Status" }, "model": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Model" }, "position": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Position" }, "notes": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Notes" }, "x": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "X" }, "y": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Y" }, "floor": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Floor" }, "building": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Building" } }, "type": "object", "required": [ "id", "name" ], "title": "TrackerItem" }, "TrackerZoneItem": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "zoneList": { "items": { "type": "string", "format": "uuid" }, "type": "array", "title": "Zonelist" }, "tracker": { "type": "string", "format": "uuid", "title": "Tracker" }, "days": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Days" }, "time": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Time" } }, "type": "object", "required": [ "id", "zoneList", "tracker" ], "title": "TrackerZoneItem" }, "ValidationError": { "properties": { "loc": { "items": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] }, "type": "array", "title": "Location" }, "msg": { "type": "string", "title": "Message" }, "type": { "type": "string", "title": "Error Type" } }, "type": "object", "required": [ "loc", "msg", "type" ], "title": "ValidationError" }, "ZoneItem": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "name": { "type": "string", "title": "Name" }, "groups": { "items": { "type": "string", "format": "uuid" }, "type": "array", "title": "Groups" }, "floor": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Floor" }, "building": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Building" } }, "type": "object", "required": [ "id", "name", "groups" ], "title": "ZoneItem" }, "call": { "properties": { "id": { "type": "string", "title": "Id" }, "status": { "type": "string", "title": "Status" }, "called_number": { "type": "string", "title": "Called Number" }, "ack_id": { "type": "integer", "title": "Ack Id" } }, "type": "object", "required": [ "id" ], "title": "call" }, "calls": { "properties": { "Calls": { "items": { "$ref": "#/components/schemas/call" }, "type": "array", "title": "Calls" } }, "type": "object", "required": [ "Calls" ], "title": "calls" }, "cellularHardware": { "properties": { "id": { "type": "string", "title": "Id" }, "description": { "type": "string", "title": "Description", "example": "SIM Box 3301A" }, "status": { "type": "string", "title": "Status", "description": "The status of the hardware.", "example": "Free" }, "signal_level": { "type": "integer", "title": "Signal Level", "description": "The detected signal level of the network.", "example": "9" }, "registered_number": { "type": "string", "title": "Registered Number", "description": "The number associated with the SIM card used by the hardware." }, "operator": { "type": "string", "title": "Operator" } }, "type": "object", "required": [ "id" ], "title": "cellularHardware", "description": "Model containing hardware info for a single device.\n " }, "cellularHardwares": { "properties": { "CellularHardwares": { "items": { "$ref": "#/components/schemas/cellularHardware" }, "type": "array", "title": "Cellularhardwares" } }, "type": "object", "required": [ "CellularHardwares" ], "title": "cellularHardwares" }, "contact": { "properties": { "fn": { "type": "string", "title": "Fn" }, "tel": { "$ref": "#/components/schemas/Tel" }, "adr": { "$ref": "#/components/schemas/Adr" }, "email": { "type": "string", "title": "Email" }, "categories": { "items": { "type": "string" }, "type": "array", "title": "Categories" } }, "type": "object", "required": [ "fn", "tel", "adr", "email", "categories" ], "title": "contact" }, "contact_microsip": { "properties": { "firstname": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Firstname" }, "lastname": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Lastname" }, "phone": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Phone" }, "mobile": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Mobile" }, "email": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Email" }, "address": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Address" }, "city": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "City" }, "state": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "State" }, "zip": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Zip" } }, "type": "object", "required": [ "firstname", "lastname", "phone", "mobile", "email", "address", "city", "state", "zip" ], "title": "contact_microsip" }, "contacts": { "properties": { "contacts": { "items": { "$ref": "#/components/schemas/contact" }, "type": "array", "title": "Contacts" } }, "type": "object", "required": [ "contacts" ], "title": "contacts" }, "contacts_microsip": { "properties": { "items": { "items": { "$ref": "#/components/schemas/contact_microsip" }, "type": "array", "title": "Items" } }, "type": "object", "required": [ "items" ], "title": "contacts_microsip" }, "httpResponse200": { "properties": { "message": { "type": "string", "title": "Message", "example": "Success" } }, "type": "object", "title": "httpResponse200" }, "httpResponse400": { "properties": { "message": { "type": "string", "title": "Message", "example": "Not found" } }, "type": "object", "title": "httpResponse400" }, "httpResponse500": { "properties": { "message": { "type": "string", "title": "Message", "example": "Server error" } }, "type": "object", "title": "httpResponse500" }, "post_call": { "properties": { "id": { "type": "string", "title": "Id" } }, "type": "object", "required": [ "id" ], "title": "post_call" }, "post_mnuser": { "properties": { "return_code": { "type": "integer", "title": "Return Code" }, "return_str": { "type": "string", "title": "Return Str" } }, "type": "object", "required": [ "return_code", "return_str" ], "title": "post_mnuser" } }, "securitySchemes": { "MyLoginManager": { "type": "oauth2", "flows": { "password": { "scopes": {}, "tokenUrl": "/auth/login" } } }, "HTTPBearer": { "type": "http", "scheme": "bearer" } } } }