Asset point updated for the vehicle and conveyor widget 3D update delete routing completed

This commit is contained in:
2025-04-04 16:50:39 +05:30
parent 7b8636c43b
commit 33d6519ece
10 changed files with 484 additions and 298 deletions

View File

@@ -5,14 +5,66 @@
"description": "Description",
"version": "1.0.0"
},
"host": "185.100.212.76:5000",
"basePath": "/api/v1",
"schemes": [
"http"
"host": "192.168.0.102:5000",
"schemes": ["http"],
"tags": [
{
"name": "Authentication",
"description": "User authentication endpoints"
},
{
"name": "Camera",
"description": "Camera management endpoints"
},
{
"name": "Environment",
"description": "Environment configuration"
},
{
"name": "Floor Items",
"description": "Floor items management"
},
{
"name": "Lines",
"description": "Line drawing operations"
},
{
"name": "Walls",
"description": "Wall items management"
},
{
"name": "Zones",
"description": "Zone operations"
},
{
"name": "Users Management",
"description": "User sharing and permissions"
},
{
"name": "3D widgets",
"description": "3D widgets operations"
},
{
"name": "Panels",
"description": "Panels operations"
},
{
"name": "Floating Widgets",
"description": "Floating widgets operations"
},
{
"name": "Assets",
"description": "ModelAssets operations"
},
{
"name": "Asset Points",
"description": "Asset based structure Points"
}
],
"paths": {
"/signup": {
"/api/v1/signup": {
"post": {
"tags": ["Authentication"],
"description": "",
"parameters": [
{
@@ -50,8 +102,9 @@
}
}
},
"/login": {
"/api/v1/login": {
"post": {
"tags": ["Authentication"],
"description": "",
"parameters": [
{
@@ -86,8 +139,9 @@
}
}
},
"/setCamera": {
"/api/v1/setCamera": {
"post": {
"tags": ["Camera"],
"description": "",
"parameters": [
{
@@ -125,8 +179,9 @@
}
}
},
"/getCamera/{organization}/{userId}": {
"/api/v1/getCamera/{organization}/{userId}": {
"get": {
"tags": ["Camera"],
"description": "",
"parameters": [
{
@@ -155,8 +210,9 @@
}
}
},
"/activeCameras/{organization}": {
"/api/v1/activeCameras/{organization}": {
"get": {
"tags": ["Camera"],
"description": "",
"parameters": [
{
@@ -176,8 +232,9 @@
}
}
},
"/setEvironments": {
"/api/v1/setEvironments": {
"post": {
"tags": ["Environment"],
"description": "",
"parameters": [
{
@@ -212,8 +269,9 @@
}
}
},
"/findEnvironments/{organization}/{userId}": {
"/api/v1/findEnvironments/{organization}/{userId}": {
"get": {
"tags": ["Environment"],
"description": "",
"parameters": [
{
@@ -242,8 +300,9 @@
}
}
},
"/setfloorItems": {
"/api/v1/setfloorItems": {
"post": {
"tags": ["Floor Items"],
"description": "",
"parameters": [
{
@@ -290,8 +349,9 @@
}
}
},
"/findfloorItems/{organization}": {
"/api/v1/findfloorItems/{organization}": {
"get": {
"tags": ["Floor Items"],
"description": "",
"parameters": [
{
@@ -314,8 +374,9 @@
}
}
},
"/deletefloorItem": {
"/api/v1/deletefloorItem": {
"delete": {
"tags": ["Floor Items"],
"description": "",
"parameters": [
{
@@ -350,8 +411,9 @@
}
}
},
"/setLine": {
"/api/v1/setLine": {
"post": {
"tags": ["Lines"],
"description": "",
"parameters": [
{
@@ -386,8 +448,9 @@
}
}
},
"/updatePoint": {
"/api/v1/updatePoint": {
"post": {
"tags": ["Lines"],
"description": "",
"parameters": [
{
@@ -419,8 +482,9 @@
}
}
},
"/findLines/{organization}": {
"/api/v1/findLines/{organization}": {
"get": {
"tags": ["Lines"],
"description": "",
"parameters": [
{
@@ -443,8 +507,9 @@
}
}
},
"/deleteLine": {
"/api/v1/deleteLine": {
"delete": {
"tags": ["Lines"],
"description": "",
"parameters": [
{
@@ -482,8 +547,9 @@
}
}
},
"/deletePoint": {
"/api/v1/deletePoint": {
"delete": {
"tags": ["Lines"],
"description": "",
"parameters": [
{
@@ -521,8 +587,9 @@
}
}
},
"/deleteLayer": {
"/api/v1/deleteLayer": {
"post": {
"tags": ["Lines"],
"description": "",
"parameters": [
{
@@ -554,8 +621,9 @@
}
}
},
"/shareUser": {
"/api/v1/shareUser": {
"post": {
"tags": ["Users Management"],
"description": "",
"parameters": [
{
@@ -590,8 +658,9 @@
}
}
},
"/findshareUsers": {
"/api/v1/findshareUsers": {
"get": {
"tags": ["Users Management"],
"description": "",
"parameters": [
{
@@ -613,8 +682,9 @@
}
}
},
"/setWallItems": {
"/api/v1/setWallItems": {
"post": {
"tags": ["Walls"],
"description": "",
"parameters": [
{
@@ -664,8 +734,9 @@
}
}
},
"/findWallItems/{organization}": {
"/api/v1/findWallItems/{organization}": {
"get": {
"tags": ["Walls"],
"description": "",
"parameters": [
{
@@ -688,8 +759,9 @@
}
}
},
"/deleteWallItem": {
"/api/v1/deleteWallItem": {
"delete": {
"tags": ["Walls"],
"description": "",
"parameters": [
{
@@ -723,6 +795,149 @@
}
}
}
},
"/api/v2/zone/save": {
"post": {
"tags": ["Zones"],
"description": "Create or update a zone",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"type": "object",
"properties": {
"organization": {
"type": "string",
"example": "NEWORG"
},
"zonesdata": {
"type": "object",
"properties": {
"zonename": {
"type": "string",
"example": "Zone 2"
},
"zoneId": {
"type": "string",
"example": "576-65-6-659"
},
"points": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"x": { "type": "number" },
"y": { "type": "number" }
}
}
},
"example": [
[{ "x": 5, "y": 5 }],
[{ "x": 5, "y": 5 }],
[{ "x": 0, "y": 0 }]
]
},
"viewportPosition": {
"type": "array",
"items": {
"type": "object",
"properties": {
"x": { "type": "number" }
}
},
"example": [{ "x": 0 }]
},
"viewPortCenter": {
"type": "object",
"properties": {
"x": { "type": "number" },
"y": { "type": "number" }
}
},
"userid": {
"type": "string"
},
"layer": {
"type": "number",
"example": 1
},
"sceneID": {
"type": "string"
}
},
"required": [
"zonename",
"zoneId",
"points",
"viewportPosition",
"layer"
]
}
},
"required": ["organization", "zonesdata"]
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object",
"properties": {
"message": { "type": "string" },
"zoneData": {
"type": "object",
"properties": {
"zoneName": { "type": "string" },
"points": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"x": { "type": "number" },
"y": { "type": "number" }
}
}
}
},
"viewPortposition": {
"type": "array",
"items": {
"type": "object",
"properties": {
"x": { "type": "number" }
}
}
},
"viewPortCenter": {
"type": "object",
"properties": {
"x": { "type": "number" },
"y": { "type": "number" }
}
}
}
}
}
}
},
"201": {
"description": "Created"
},
"404": {
"description": "Zone not updated"
},
"500": {
"description": "Internal Server Error"
}
}
}
}
}
}
}