Skip to content

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
{
}

Playground

Server
Authorization
Body

Samples


Get product by id

GET
/product/{id}

The route to get a product

Authorizations

bearer
Type
HTTP (bearer)

Parameters

Path Parameters

id*
Type
string
Required
Example""

Responses

application/json
JSON
{
"product": "string",
"stageGraph": [
]
}

Playground

Server
Authorization
Variables
Key
Value

Samples


Upload file for product

POST
/product/upload

The endpoint to upload a file

Authorizations

bearer
Type
HTTP (bearer)

Request Body

multipart/form-data
object
Format"binary"

The path to the FTP

The reference of the product

Responses

application/json
JSON
{
}

Playground

Server
Authorization
Body

Samples


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
JSON
[
{
"id": "string",
"reference": "string",
"name": "string",
"parts": [
{
"id": "string",
"reference": "string"
}
]
}
]

Playground

Server
Authorization
Headers

Samples


Delete product

DELETE
/product/{productId}

The endpoint to delete a product. It also deletes the file in the FTP linked to the product

Authorizations

bearer
Type
HTTP (bearer)

Parameters

Path Parameters

productId*
Type
string
Required

Responses

application/json
JSON
{
}

Playground

Server
Authorization
Variables
Key
Value

Samples


Powered by VitePress OpenAPI