Документация предоставляет всю информацию, необходимую вам для работы с нашим API.
Этот API не аутентифицирован.
Получить список весов (с пагинацией) Стандартный листинг Одинна с возможностью фильтрации
Номер страницы.
Количество элементов, возвращаемых на странице. По умолчанию 50.
curl --request GET \
--get "https://ml.stage.odinn.cloud/api/weight?page=1&page-size=50" \
--header "Content-Type: application/json" \
--header "Accept: application/json" cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"current_page": 1,
"data": [],
"first_page_url": "https://ml.stage.odinn.cloud/api/weight?page=1",
"from": null,
"last_page": 1,
"last_page_url": "https://ml.stage.odinn.cloud/api/weight?page=1",
"links": [
{
"url": null,
"label": "« Назад",
"active": false
},
{
"url": "https://ml.stage.odinn.cloud/api/weight?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Вперёд »",
"active": false
}
],
"next_page_url": null,
"path": "https://ml.stage.odinn.cloud/api/weight",
"per_page": 50,
"prev_page_url": null,
"to": null,
"total": 0
}
Идентификатор (UUID)
curl --request GET \
--get "https://ml.stage.odinn.cloud/api/weight/8947c4bb-ac4d-3c11-b4a6-2566a0f2a55e" \
--header "Content-Type: application/json" \
--header "Accept: application/json" cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"message": "Weight #8947c4bb-ac4d-3c11-b4a6-2566a0f2a55e Not found"
}
Идентификатор (UUID)
curl --request GET \
--get "https://ml.stage.odinn.cloud/api/weight/f420d9e5-f8e6-3c7c-b31d-e90e44824e07/download" \
--header "Content-Type: application/json" \
--header "Accept: application/json" cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"message": ""
}
curl --request POST \
"https://ml.stage.odinn.cloud/api/weight" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=et"\
--form "notes=enim"\
--form "models[]=sit"\
--form "file=@/tmp/phpniCFNf" Идентификатор (UUID)
curl --request PUT \
"https://ml.stage.odinn.cloud/api/weight/9a9d67d3-0257-331b-af67-f5a988689208" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=deleniti"\
--form "notes=sit"\
--form "models[]=blanditiis"\
--form "file=@/tmp/php8rcxpi" Идентификатор (UUID)
curl --request DELETE \
"https://ml.stage.odinn.cloud/api/weight/4c2989f6-9f7d-3fd1-af7c-f946106703b2" \
--header "Content-Type: application/json" \
--header "Accept: application/json" Получить список весов (с пагинацией) Стандартный листинг Одинна с возможностью фильтрации
Номер страницы.
Количество элементов, возвращаемых на странице. По умолчанию 50.
curl --request GET \
--get "https://ml.stage.odinn.cloud/api/ai-model?page=1&page-size=50" \
--header "Content-Type: application/json" \
--header "Accept: application/json" cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"current_page": 1,
"data": [],
"first_page_url": "https://ml.stage.odinn.cloud/api/ai-model?page=1",
"from": null,
"last_page": 1,
"last_page_url": "https://ml.stage.odinn.cloud/api/ai-model?page=1",
"links": [
{
"url": null,
"label": "« Назад",
"active": false
},
{
"url": "https://ml.stage.odinn.cloud/api/ai-model?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Вперёд »",
"active": false
}
],
"next_page_url": null,
"path": "https://ml.stage.odinn.cloud/api/ai-model",
"per_page": 50,
"prev_page_url": null,
"to": null,
"total": 0
}
Идентификатор (UUID)
curl --request GET \
--get "https://ml.stage.odinn.cloud/api/ai-model/cae7c51c-e2ad-34db-8f3d-cd53f2aa1ed0" \
--header "Content-Type: application/json" \
--header "Accept: application/json" cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"message": "AI Model #cae7c51c-e2ad-34db-8f3d-cd53f2aa1ed0 Not found"
}
Идентификатор (UUID)
curl --request GET \
--get "https://ml.stage.odinn.cloud/api/ai-model/e8d65f86-3cd4-36ba-97e3-47e185cb004b/download" \
--header "Content-Type: application/json" \
--header "Accept: application/json" cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
{
"message": ""
}
curl --request POST \
"https://ml.stage.odinn.cloud/api/ai-model" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=iusto"\
--form "notes=dolorem"\
--form "classes[]=consequatur"\
--form "file=@/tmp/phphbR3ji" Идентификатор (UUID)
curl --request PUT \
"https://ml.stage.odinn.cloud/api/ai-model/52956a78-2d54-351c-aadc-8a104c4fba2b" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=delectus"\
--form "notes=et"\
--form "classes[]=et"\
--form "file=@/tmp/phpQ5zXBh" Идентификатор (UUID)
curl --request DELETE \
"https://ml.stage.odinn.cloud/api/ai-model/ef27b850-ee05-3430-bf8a-4ea16a094854" \
--header "Content-Type: application/json" \
--header "Accept: application/json"