Appearance
needAuth/Product
Create Product
POST
/product/create
The route to upload a new product in database and on the FTP
Authorizations
bearer
Type
HTTP (bearer)
Request Body
application/json
JSON
{
"name": "test",
"reference": "AA001",
"stageGraph": [
{
"id": "1",
"name": "import_cao",
"dependencies": [
]
},
{
"id": "2",
"name": "cad_convertion",
"dependencies": [
"1"
]
},
{
"id": "3",
"name": "cad_segmentation",
"dependencies": [
"1"
]
},
{
"id": "4",
"name": "model_target",
"dependencies": [
"2"
]
}
]
}
Responses
application/json
JSON
{
}
Get product by id
Upload file for product
POST
/product/upload
The endpoint to upload a file
Authorizations
bearer
Type
HTTP (bearer)
Request Body
multipart/form-data
product
string
Required
Format
"binary"filePath
string
Required
The path to the FTP
reference
string
Required
The reference of the product
Responses
application/json
{
}
Get list of products ready to scan
GET
/product/scannable-list
This endpoint is used to get a list of the products that have parts ready to scan, alongside the filepath to get the model target.
Authorizations
bearer
Type
HTTP (bearer)
Parameters
Header Parameters
Authorization
Type
string
Example
""Responses
application/json
[
{
"id": "string",
"reference": "string",
"name": "string",
"parts": [
{
"id": "string",
"reference": "string"
}
]
}
]