GET /v1/objects/{objectName}
curl --location --request GET 'http://localhost:8080/v1/objects/main.jpeg'
POST /v1/objects/{objectName}
curl --location --request POST 'http://localhost:8080/v1/objects/test.png' \
--form 'file=@"/test.pdf"'
{
"success": true,
"message": "Object created"
}
PATCH /v1/objects/{objectName}
curl --location --request PATCH 'http://localhost:8080/v1/objects/test.png' \
--form
{
"success": true,
"message": "Object created"
}
DELETE /v1/objects/{objectName}
curl --location --request DELETE 'http://localhost:8080/v1/objects/test.png'
{
"success": true,
"message": "Object deleted"
}
GET /v1/objects/{objectName}/link
curl --location --request GET 'http://localhost:8080/v1/objects/main.jpeg/link' \
--header 'Content-Type: application/json' \
--data-raw '{
"imageUrl": "https://upload.wikimedia.org/wikipedia/commons/9/9d/NYC_Montage_2014_4_-_Jleon.jpg",
"maxLabels": 5,
"minConfidence": 0.99
}'
{
"url": "https://...",
"expirationDate": "21-12-2022 08:48:10"
}
GET /v1/root-objects/{objectName}
curl --location --request POST 'http://localhost:8080/v1/root-objects'
{
"success": true,
"message": "Root object created"
}
ou
{
"success": false,
"message": "Root object already exists"
}